-
public final class LongTaskEvent.LongTaskLong Task properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLongTaskEvent.LongTask.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final NumberstartTimeprivate final LongTaskEvent.EntryTypeentryTypeprivate final Longdurationprivate final LongblockingDurationprivate final NumberrenderStartprivate final NumberstyleAndLayoutStartprivate final NumberfirstUiEventTimestampprivate final BooleanisFrozenFrameprivate final List<LongTaskEvent.Script>scripts
-
Constructor Summary
Constructors Constructor Description LongTaskEvent.LongTask(String id, Number startTime, LongTaskEvent.EntryType entryType, Long duration, Long blockingDuration, Number renderStart, Number styleAndLayoutStart, Number firstUiEventTimestamp, Boolean isFrozenFrame, List<LongTaskEvent.Script> scripts)
-
Method Summary
Modifier and Type Method Description final StringgetId()final NumbergetStartTime()final LongTaskEvent.EntryTypegetEntryType()final LonggetDuration()final LonggetBlockingDuration()final NumbergetRenderStart()final NumbergetStyleAndLayoutStart()final NumbergetFirstUiEventTimestamp()final BooleangetIsFrozenFrame()final List<LongTaskEvent.Script>getScripts()final JsonElementtoJson()-
-
Constructor Detail
-
LongTaskEvent.LongTask
LongTaskEvent.LongTask(String id, Number startTime, LongTaskEvent.EntryType entryType, Long duration, Long blockingDuration, Number renderStart, Number styleAndLayoutStart, Number firstUiEventTimestamp, Boolean isFrozenFrame, List<LongTaskEvent.Script> scripts)
- Parameters:
id- UUID of the long task or long animation framestartTime- Start time of the long animation frameentryType- Type of the event: long task or long animation frameduration- Duration in ns of the long task or long animation frameblockingDuration- Duration in ns for which the animation frame was being blockedrenderStart- Start time of the rendering cycle, which includes requestAnimationFrame callbacks, style and layout calculation, resize observer and intersection observer callbacksstyleAndLayoutStart- Start time of the time period spent in style and layout calculationsfirstUiEventTimestamp- Start time of of the first UI event (mouse/keyboard and so on) to be handled during the course of this frameisFrozenFrame- Whether this long task is considered a frozen framescripts- A list of long scripts that were executed over the course of the long frame
-
-
Method Detail
-
getStartTime
final Number getStartTime()
-
getEntryType
final LongTaskEvent.EntryType getEntryType()
-
getDuration
final Long getDuration()
-
getBlockingDuration
final Long getBlockingDuration()
-
getRenderStart
final Number getRenderStart()
-
getStyleAndLayoutStart
final Number getStyleAndLayoutStart()
-
getFirstUiEventTimestamp
final Number getFirstUiEventTimestamp()
-
getIsFrozenFrame
final Boolean getIsFrozenFrame()
-
getScripts
final List<LongTaskEvent.Script> getScripts()
-
toJson
final JsonElement toJson()
-
-
-
-