We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13abca3 commit 5936cefCopy full SHA for 5936cef
test/parallel/test-perf-hooks-histogram.js
@@ -97,6 +97,17 @@ const { inspect } = require('util');
97
}, 50);
98
}
99
100
+{
101
+ // Tests that the ELD histogram is disposable
102
+ let histogram;
103
+ {
104
+ using hi = monitorEventLoopDelay();
105
+ histogram = hi;
106
+ }
107
+ // The histogram should already be disabled.
108
+ strictEqual(histogram.disable(), false);
109
+}
110
+
111
{
112
const h = createHistogram();
113
ok(inspect(h, { depth: null }).startsWith('Histogram'));
0 commit comments