public class Profiler
extends java.lang.Object
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
static Event<ConsoleProfileFinished> |
consoleProfileFinished() |
static Event<ConsoleProfileStarted> |
consoleProfileStarted()
Sent when new profile recording is started using console.profile() call.
|
static Command<java.lang.Void> |
disable()
Disable Profiling
|
static Command<java.lang.Void> |
enable()
Enable Profiling
|
static Command<java.util.List<ScriptCoverage>> |
getBestEffortCoverage()
Collect coverage data for the current isolate.
|
static Command<java.lang.Void> |
setSamplingInterval(int interval)
Changes CPU profiler sampling interval.
|
static Command<java.lang.Void> |
start()
start Profiling process
|
static Command<java.lang.Void> |
startPreciseCoverage(java.util.Optional<java.lang.Boolean> callCount,
java.util.Optional<java.lang.Boolean> detailed)
Enable precise code coverage.
|
static Command<java.lang.Void> |
startTypeProfile()
Enable type profile
|
static Command<Profile> |
stop()
stop Profiling process
|
static Command<java.lang.Void> |
stopPreciseCoverage()
Disable precise code coverage.
|
static Command<java.lang.Void> |
stopTypeProfile()
Disable type profile.
|
static Command<java.util.List<ScriptCoverage>> |
takePreciseCoverage()
Collect coverage data for the current isolate, and resets execution counters.
|
static Command<java.util.List<ScriptCoverage>> |
takeTypeProfile()
Collect type profile.EXPERIMENTAL
|
public static Command<java.lang.Void> disable()
public static Command<java.lang.Void> enable()
public static Command<java.lang.Void> start()
public static Command<java.util.List<ScriptCoverage>> getBestEffortCoverage()
public static Command<java.lang.Void> setSamplingInterval(int interval)
interval
- New sampling interval in microseconds.public static Command<java.lang.Void> startPreciseCoverage(java.util.Optional<java.lang.Boolean> callCount, java.util.Optional<java.lang.Boolean> detailed)
callCount
- Collect accurate call counts beyond simple 'covered' or 'not covered'.detailed
- Collect block-based coverage.@Beta public static Command<java.lang.Void> startTypeProfile()
public static Command<java.lang.Void> stopPreciseCoverage()
@Beta public static Command<java.lang.Void> stopTypeProfile()
public static Command<java.util.List<ScriptCoverage>> takePreciseCoverage()
@Beta public static Command<java.util.List<ScriptCoverage>> takeTypeProfile()
public static Event<ConsoleProfileFinished> consoleProfileFinished()
public static Event<ConsoleProfileStarted> consoleProfileStarted()