src/domains/performance

This module provides a direct mapping of CDP events and commands for v1.3 (stable) of the Performance Domain.

Types

Performance {.pure.} = enum
  metrics = "Performance.metrics"
Performance Domain events

Procs

proc disablePerformanceDomain(tab: Tab): owned(Future[void]) {.
    ...stackTrace: false, raises: [Exception],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}

Performance.disable

Disable collecting and reporting metrics.

proc enablePerformanceDomain(tab: Tab): owned(Future[void]) {....stackTrace: false,
    raises: [Exception],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
proc enablePerformanceDomain(tab: Tab; timeDomain: string): owned(
    Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect,
    WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}

Performance.enable

Enable collecting and reporting metrics.

proc getMetrics(tab: Tab): Future[JsonNode] {....stackTrace: false,
    raises: [Exception, ValueError],
    tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}

Performance.getMetrics

Retrieve current values of run-time metrics.