Class Profiler


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

      • Profiler

        public Profiler()
    • Method Detail

      • disable

        public static Command<java.lang.Void> disable()
      • enable

        public static Command<java.lang.Void> enable()
      • getBestEffortCoverage

        public static 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 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 Command<java.lang.Void> start()
      • startPreciseCoverage

        public static Command<java.lang.Void> startPreciseCoverage​(java.util.Optional<java.lang.Boolean> callCount,
                                                                   java.util.Optional<java.lang.Boolean> detailed)
        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 Command<java.lang.Void> startTypeProfile()
        Enable type profile.
      • stopPreciseCoverage

        public static Command<java.lang.Void> stopPreciseCoverage()
        Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
      • stopTypeProfile

        @Beta
        public static Command<java.lang.Void> stopTypeProfile()
        Disable type profile. Disabling releases type profile data collected so far.
      • takePreciseCoverage

        public static Command<java.util.List<ScriptCoverage>> takePreciseCoverage()
        Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
      • takeTypeProfile

        @Beta
        public static Command<java.util.List<ScriptTypeProfile>> takeTypeProfile()
        Collect type profile.