Class Profiler
- java.lang.Object
-
- org.openqa.selenium.devtools.v107.profiler.Profiler
-
public class Profiler extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Profiler.TakePreciseCoverageResponse
-
Constructor Summary
Constructors Constructor Description Profiler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.openqa.selenium.devtools.Event<ConsoleProfileFinished>
consoleProfileFinished()
static org.openqa.selenium.devtools.Event<ConsoleProfileStarted>
consoleProfileStarted()
static org.openqa.selenium.devtools.Command<java.lang.Void>
disable()
static org.openqa.selenium.devtools.Command<java.lang.Void>
enable()
static org.openqa.selenium.devtools.Command<java.util.List<ScriptCoverage>>
getBestEffortCoverage()
Collect coverage data for the current isolate.static org.openqa.selenium.devtools.Event<PreciseCoverageDeltaUpdate>
preciseCoverageDeltaUpdate()
static org.openqa.selenium.devtools.Command<java.lang.Void>
setSamplingInterval(java.lang.Integer interval)
Changes CPU profiler sampling interval.static org.openqa.selenium.devtools.Command<java.lang.Void>
start()
static org.openqa.selenium.devtools.Command<java.lang.Number>
startPreciseCoverage(java.util.Optional<java.lang.Boolean> callCount, java.util.Optional<java.lang.Boolean> detailed, java.util.Optional<java.lang.Boolean> allowTriggeredUpdates)
Enable precise code coverage.static org.openqa.selenium.devtools.Command<java.lang.Void>
startTypeProfile()
Enable type profile.static org.openqa.selenium.devtools.Command<Profile>
stop()
static org.openqa.selenium.devtools.Command<java.lang.Void>
stopPreciseCoverage()
Disable precise code coverage.static org.openqa.selenium.devtools.Command<java.lang.Void>
stopTypeProfile()
Disable type profile.static org.openqa.selenium.devtools.Command<Profiler.TakePreciseCoverageResponse>
takePreciseCoverage()
Collect coverage data for the current isolate, and resets execution counters.static org.openqa.selenium.devtools.Command<java.util.List<ScriptTypeProfile>>
takeTypeProfile()
Collect type profile.
-
-
-
Method Detail
-
disable
public static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
-
enable
public static org.openqa.selenium.devtools.Command<java.lang.Void> enable()
-
getBestEffortCoverage
public static org.openqa.selenium.devtools.Command<java.util.List<ScriptCoverage>> getBestEffortCoverage()
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
-
setSamplingInterval
public static org.openqa.selenium.devtools.Command<java.lang.Void> setSamplingInterval(java.lang.Integer interval)
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
-
start
public static org.openqa.selenium.devtools.Command<java.lang.Void> start()
-
startPreciseCoverage
public static org.openqa.selenium.devtools.Command<java.lang.Number> startPreciseCoverage(java.util.Optional<java.lang.Boolean> callCount, java.util.Optional<java.lang.Boolean> detailed, java.util.Optional<java.lang.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.
-
startTypeProfile
@Beta public static org.openqa.selenium.devtools.Command<java.lang.Void> startTypeProfile()
Enable type profile.
-
stop
public static org.openqa.selenium.devtools.Command<Profile> stop()
-
stopPreciseCoverage
public static org.openqa.selenium.devtools.Command<java.lang.Void> stopPreciseCoverage()
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
-
stopTypeProfile
@Beta public static org.openqa.selenium.devtools.Command<java.lang.Void> stopTypeProfile()
Disable type profile. Disabling releases type profile data collected so far.
-
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.
-
takeTypeProfile
@Beta public static org.openqa.selenium.devtools.Command<java.util.List<ScriptTypeProfile>> takeTypeProfile()
Collect type profile.
-
consoleProfileFinished
public static org.openqa.selenium.devtools.Event<ConsoleProfileFinished> consoleProfileFinished()
-
consoleProfileStarted
public static org.openqa.selenium.devtools.Event<ConsoleProfileStarted> consoleProfileStarted()
-
preciseCoverageDeltaUpdate
public static org.openqa.selenium.devtools.Event<PreciseCoverageDeltaUpdate> preciseCoverageDeltaUpdate()
-
-