Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents abstraction that can measure the difference between time moments and create new performance timers

Hierarchy

  • default

Index

Constructors

Properties

An engine's instance that sends metrics to the target destination

filter?: PerfPredicate

Predicate to filter metrics by their names. If it returns false, the metrics will not send to the engine.

idToMeasurement: Dictionary<PerfTimerMeasurement> = ...

Internal storage for the current start/finish metrics

nsToCounter: Dictionary<number> = ...

Internal storage for the following identifier of each namespace

salt: number = ...

Salt for each runner instance. It is used to generate a time, so the times from the different runners cannot be used interchangeably. It prevents sending start/finish metrics by mistake.

timeOrigin: number

Time offset from the application start. It may be considered as the time from which all metrics are measured for the current runner instance.

Methods

  • createTimer(group: "network" | "components" | "tools" | "manual"): PerfTimer
  • getTimestamp(): number
  • markTimestamp(name: string, additional?: Dictionary<unknown>): void
  • combineNamespaces(...namespaces: CanUndef<string>[]): string