http2: perf_hooks integration
Collect and report basic timing information about Http2Session
and Http2Stream
instances.
This is just the initial impl. Additional stats to be added.
const { PerformanceObserver } = require('perf_hooks');
const obs = new PerformanceObserver((items) => {
const entry = items.getEntries()[0];
console.log(entry);
});
obs.observe({ entryTypes: ['http2'] });
ping @nodejs/http2
Refs: https://github.com/nodejs/node/issues/17746
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
http2