ProfilerApi class

Constructors

ProfilerApi(Client _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
onConsoleProfileFinished Stream<ConsoleProfileFinishedEvent>
no setter
onConsoleProfileStarted Stream<ConsoleProfileStartedEvent>
Sent when new profile recording is started using console.profile() call.
no setter
onPreciseCoverageDeltaUpdate Stream<PreciseCoverageDeltaUpdateEvent>
Reports coverage delta since the last poll (either from an event like this, or from takePreciseCoverage for 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 immediately at a certain point in time.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable() Future<void>
enable() Future<void>
getBestEffortCoverage() Future<List<ScriptCoverage>>
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. Returns: Coverage data for the current isolate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSamplingInterval(int interval) Future<void>
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. interval New sampling interval in microseconds.
start() Future<void>
startPreciseCoverage({bool? callCount, bool? detailed, bool? allowTriggeredUpdates}) Future<num>
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. callCount Collect accurate call counts beyond simple 'covered' or 'not covered'. detailed Collect block-based coverage. allowTriggeredUpdates Allow the backend to send updates on its own initiative Returns: Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
stop() Future<Profile>
Returns: Recorded profile.
stopPreciseCoverage() Future<void>
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
takePreciseCoverage() Future<TakePreciseCoverageResult>
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited