public interface Profiler
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
List<ScriptCoverage> |
getBestEffortCoverage()
Collect coverage data for the current isolate.
|
EventListener |
onConsoleProfileFinished(EventHandler<ConsoleProfileFinished> eventListener) |
EventListener |
onConsoleProfileStarted(EventHandler<ConsoleProfileStarted> eventListener)
Sent when new profile recording is started using console.profile() call.
|
void |
setSamplingInterval(Integer interval)
Changes CPU profiler sampling interval.
|
void |
start() |
void |
startPreciseCoverage()
Enable precise code coverage.
|
void |
startPreciseCoverage(Boolean callCount,
Boolean detailed)
Enable precise code coverage.
|
void |
startTypeProfile()
Enable type profile.
|
Profile |
stop() |
void |
stopPreciseCoverage()
Disable precise code coverage.
|
void |
stopTypeProfile()
Disable type profile.
|
List<ScriptCoverage> |
takePreciseCoverage()
Collect coverage data for the current isolate, and resets execution counters.
|
List<ScriptTypeProfile> |
takeTypeProfile()
Collect type profile.
|
void disable()
void enable()
List<ScriptCoverage> getBestEffortCoverage()
void setSamplingInterval(Integer interval)
interval - New sampling interval in microseconds.void start()
void startPreciseCoverage()
void startPreciseCoverage(Boolean callCount, Boolean detailed)
callCount - Collect accurate call counts beyond simple 'covered' or 'not covered'.detailed - Collect block-based coverage.void startTypeProfile()
Profile stop()
void stopPreciseCoverage()
void stopTypeProfile()
List<ScriptCoverage> takePreciseCoverage()
List<ScriptTypeProfile> takeTypeProfile()
EventListener onConsoleProfileFinished(EventHandler<ConsoleProfileFinished> eventListener)
EventListener onConsoleProfileStarted(EventHandler<ConsoleProfileStarted> eventListener)
Copyright © 2020. All rights reserved.