Class Profiler
java.lang.Object
org.openqa.selenium.devtools.v136.profiler.Profiler
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Event
<ConsoleProfileFinished> static org.openqa.selenium.devtools.Event
<ConsoleProfileStarted> static org.openqa.selenium.devtools.Command
<Void> disable()
static org.openqa.selenium.devtools.Command
<Void> enable()
static org.openqa.selenium.devtools.Command
<List<ScriptCoverage>> Collect coverage data for the current isolate.static org.openqa.selenium.devtools.Event
<PreciseCoverageDeltaUpdate> static org.openqa.selenium.devtools.Command
<Void> setSamplingInterval
(Integer interval) Changes CPU profiler sampling interval.static org.openqa.selenium.devtools.Command
<Void> start()
static org.openqa.selenium.devtools.Command
<Number> startPreciseCoverage
(Optional<Boolean> callCount, Optional<Boolean> detailed, Optional<Boolean> allowTriggeredUpdates) Enable precise code coverage.static org.openqa.selenium.devtools.Command
<Profile> stop()
static org.openqa.selenium.devtools.Command
<Void> Disable precise code coverage.static org.openqa.selenium.devtools.Command
<Profiler.TakePreciseCoverageResponse> Collect coverage data for the current isolate, and resets execution counters.
-
Constructor Details
-
Profiler
public Profiler()
-
-
Method Details
-
disable
-
enable
-
getBestEffortCoverage
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. -
setSamplingInterval
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. -
start
-
startPreciseCoverage
public static org.openqa.selenium.devtools.Command<Number> startPreciseCoverage(Optional<Boolean> callCount, Optional<Boolean> detailed, Optional<Boolean> allowTriggeredUpdates) 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. -
stop
-
stopPreciseCoverage
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. -
takePreciseCoverage
public static org.openqa.selenium.devtools.Command<Profiler.TakePreciseCoverageResponse> takePreciseCoverage()Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. -
consoleProfileFinished
-
consoleProfileStarted
-
preciseCoverageDeltaUpdate
public static org.openqa.selenium.devtools.Event<PreciseCoverageDeltaUpdate> preciseCoverageDeltaUpdate()
-