Lines Matching refs:histogram
12 const histogram = monitorEventLoopDelay(); constant
13 assert(histogram);
14 assert(histogram.enable());
15 assert(!histogram.enable());
16 histogram.reset();
17 assert(histogram.disable());
18 assert(!histogram.disable());
54 const histogram = monitorEventLoopDelay({ resolution: 1 }); constant
55 histogram.enable();
62 histogram.disable();
65 assert(histogram.min > 0);
66 assert(histogram.max > 0);
67 assert(histogram.stddev > 0);
68 assert(histogram.mean > 0);
69 assert(histogram.percentiles.size > 0);
71 assert(histogram.percentile(n) >= 0);
73 histogram.reset();
74 assert.strictEqual(histogram.min, 9223372036854776000);
75 assert.strictEqual(histogram.max, 0);
76 assert(Number.isNaN(histogram.stddev));
77 assert(Number.isNaN(histogram.mean));
78 assert.strictEqual(histogram.percentiles.size, 1);
82 () => histogram.percentile(i),
91 () => histogram.percentile(i),