-
public final class ProfilerDomain
-
-
Method Summary
Modifier and Type Method Description final Flow<ProfilerEvent>events()Subscribes to all events related to this domain. final Flow<ProfilerEvent.ConsoleProfileFinishedEvent>consoleProfileFinished()Official doc final Flow<ProfilerEvent.ConsoleProfileStartedEvent>consoleProfileStarted()Sent when new profile recording is started using console.profile() call. final Flow<ProfilerEvent.PreciseCoverageDeltaUpdateEvent>preciseCoverageDeltaUpdate()Reports coverage delta since the last poll (either from an event like this, or from takePreciseCoveragefor the current isolate.final Unitdisable()Official doc final Unitenable()Official doc final GetBestEffortCoverageResponsegetBestEffortCoverage()Collect coverage data for the current isolate. final UnitsetSamplingInterval(SetSamplingIntervalRequest input)Changes CPU profiler sampling interval. final Unitstart()Official doc final StartPreciseCoverageResponsestartPreciseCoverage(StartPreciseCoverageRequest input)Enable precise code coverage. final UnitstartTypeProfile()Enable type profile. final StopResponsestop()Official doc final UnitstopPreciseCoverage()Disable precise code coverage. final UnitstopTypeProfile()Disable type profile. final TakePreciseCoverageResponsetakePreciseCoverage()Collect coverage data for the current isolate, and resets execution counters. final TakeTypeProfileResponsetakeTypeProfile()Collect type profile. final UnitenableCounters()Enable counters collection. final UnitdisableCounters()Disable counters collection. final GetCountersResponsegetCounters()Retrieve counters. final UnitenableRuntimeCallStats()Enable run time call stats collection. final UnitdisableRuntimeCallStats()Disable run time call stats collection. final GetRuntimeCallStatsResponsegetRuntimeCallStats()Retrieve run time call stats. -
-
Method Detail
-
events
final Flow<ProfilerEvent> events()
Subscribes to all events related to this domain.
-
consoleProfileFinished
final Flow<ProfilerEvent.ConsoleProfileFinishedEvent> consoleProfileFinished()
-
consoleProfileStarted
final Flow<ProfilerEvent.ConsoleProfileStartedEvent> consoleProfileStarted()
Sent when new profile recording is started using console.profile() call.
-
preciseCoverageDeltaUpdate
final Flow<ProfilerEvent.PreciseCoverageDeltaUpdateEvent> preciseCoverageDeltaUpdate()
Reports coverage delta since the last poll (either from an event like this, or from
takePreciseCoveragefor the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediatelly at a certain point in time.
-
getBestEffortCoverage
final GetBestEffortCoverageResponse getBestEffortCoverage()
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
-
setSamplingInterval
final Unit setSamplingInterval(SetSamplingIntervalRequest input)
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
-
startPreciseCoverage
final StartPreciseCoverageResponse startPreciseCoverage(StartPreciseCoverageRequest input)
Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
-
startTypeProfile
final Unit startTypeProfile()
Enable type profile.
-
stop
final StopResponse stop()
-
stopPreciseCoverage
final Unit stopPreciseCoverage()
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
-
stopTypeProfile
final Unit stopTypeProfile()
Disable type profile. Disabling releases type profile data collected so far.
-
takePreciseCoverage
final TakePreciseCoverageResponse takePreciseCoverage()
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
-
takeTypeProfile
final TakeTypeProfileResponse takeTypeProfile()
Collect type profile.
-
enableCounters
final Unit enableCounters()
Enable counters collection.
-
disableCounters
final Unit disableCounters()
Disable counters collection.
-
getCounters
final GetCountersResponse getCounters()
Retrieve counters.
-
enableRuntimeCallStats
final Unit enableRuntimeCallStats()
Enable run time call stats collection.
-
disableRuntimeCallStats
final Unit disableRuntimeCallStats()
Disable run time call stats collection.
-
getRuntimeCallStats
final GetRuntimeCallStatsResponse getRuntimeCallStats()
Retrieve run time call stats.
-
-
-
-