CDPotion.Domain.Profiler (cdpotion v0.1.0)
Summary
Functions
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
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.
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
Functions
disable()
enable()
get_best_effort_coverage()
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
set_sampling_interval(interval)
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
Parameters:
interval:integer
: New sampling interval in microseconds.
start()
start_precise_coverage(call_count \\ nil, detailed \\ nil, allow_triggered_updates \\ nil)
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.
Parameters:
callCount:boolean
: (Optional) Collect accurate call counts beyond simple 'covered' or 'not covered'.detailed:boolean
: (Optional) Collect block-based coverage.allowTriggeredUpdates:boolean
: (Optional) Allow the backend to send updates on its own initiative
stop()
stop_precise_coverage()
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
take_precise_coverage()
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.