Skip to main content

getBottlenecks()

getBottlenecks(graphs): Bottleneck[]

Defined in: process-mining.ts:240

Identify performance bottlenecks by aggregating node durations across graphs.

Collects duration samples per node name (grouped by type:name), computes percentile statistics, and returns results sorted by p95 descending.

Parameters

ParameterTypeDescription
graphsExecutionGraph[]Array of execution graphs.

Returns

Bottleneck[]

Bottleneck entries sorted by p95 duration descending.

Example

const bottlenecks = getBottlenecks(graphs);
console.log(`Slowest: ${bottlenecks[0].nodeName} (p95: ${bottlenecks[0].durations.p95}ms)`);