MCPcopy Create free account
hub / github.com/code-pushup/cli / getProfilerId

Function getProfilerId

packages/utils/src/lib/profiler/profiler.ts:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 * Generates a unique profiler ID based on performance time origin, process ID, thread ID, and instance count.
23 */
24export function getProfilerId() {
25 // eslint-disable-next-line functional/immutable-data
26 return `${Math.round(performance.timeOrigin)}.${process.pid}.${threadId}.${++Profiler.instanceCount}`;
27}
28
29/**
30 * Configuration options for creating a Profiler instance.

Callers 2

ProfilerClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected