Package io.webfolder.cdp.command
Interface PerformanceAsync
public interface PerformanceAsync
-
Method Summary
Modifier and TypeMethodDescriptiondisable()
Disable collecting and reporting metrics.enable()
Enable collecting and reporting metrics.enable
(TimeDomain timeDomain) Enable collecting and reporting metrics.Retrieve current values of run-time metrics.setTimeDomain
(TimeDomain timeDomain) Deprecated.
-
Method Details
-
disable
CompletableFuture<Void> disable()Disable collecting and reporting metrics. -
enable
CompletableFuture<Void> enable()Enable collecting and reporting metrics. -
enable
Enable collecting and reporting metrics.- Parameters:
timeDomain
- Time domain to use for collecting and reporting duration metrics.
-
getMetrics
CompletableFuture<List<Metric>> getMetrics()Retrieve current values of run-time metrics.- Returns:
- Current values for run-time metrics.
-
setTimeDomain
Deprecated.Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.- Parameters:
timeDomain
- Time domain
-