Class Profiler


  • public class Profiler
    extends java.lang.Object
    • Constructor Detail

      • Profiler

        public Profiler()
    • 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.
      • enableRuntimeCallStats

        @Beta
        public static org.openqa.selenium.devtools.Command<java.lang.Void> enableRuntimeCallStats()
        Enable run time call stats collection.
      • disableRuntimeCallStats

        @Beta
        public static org.openqa.selenium.devtools.Command<java.lang.Void> disableRuntimeCallStats()
        Disable run time call stats collection.
      • getRuntimeCallStats

        @Beta
        public static org.openqa.selenium.devtools.Command<java.util.List<CounterInfo>> getRuntimeCallStats()
        Retrieve run time call stats.
      • 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()