mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Provide a binary export/import mechanism for histograms. Since there is no standard interchange format for histograms, using CBOR is meant to make the format as platform/runtime agnostic as possible while producing a compact/efficient result. No new dependency is introduced, we just encode the CBOR directly. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode/Opus PR-URL: https://github.com/nodejs/node/pull/65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
const {
|
|
ObjectDefineProperty,
|
|
} = primordials;
|
|
|
|
const {
|
|
constants,
|
|
} = internalBinding('performance');
|
|
|
|
const { PerformanceEntry } = require('internal/perf/performance_entry');
|
|
const { PerformanceResourceTiming } = require('internal/perf/resource_timing');
|
|
const {
|
|
PerformanceObserver,
|
|
PerformanceObserverEntryList,
|
|
} = require('internal/perf/observe');
|
|
const {
|
|
PerformanceMark,
|
|
PerformanceMeasure,
|
|
} = require('internal/perf/usertiming');
|
|
const {
|
|
Performance,
|
|
performance,
|
|
} = require('internal/perf/performance');
|
|
|
|
const {
|
|
createHistogram,
|
|
importHistogram,
|
|
} = require('internal/histogram');
|
|
|
|
const monitorEventLoopDelay = require('internal/perf/event_loop_delay');
|
|
const { eventLoopUtilization } = require('internal/perf/event_loop_utilization');
|
|
const timerify = require('internal/perf/timerify');
|
|
|
|
module.exports = {
|
|
Performance,
|
|
PerformanceEntry,
|
|
PerformanceMark,
|
|
PerformanceMeasure,
|
|
PerformanceObserver,
|
|
PerformanceObserverEntryList,
|
|
PerformanceResourceTiming,
|
|
monitorEventLoopDelay,
|
|
eventLoopUtilization,
|
|
timerify,
|
|
createHistogram,
|
|
importHistogram,
|
|
performance,
|
|
};
|
|
|
|
ObjectDefineProperty(module.exports, 'constants', {
|
|
__proto__: null,
|
|
configurable: false,
|
|
enumerable: true,
|
|
value: constants,
|
|
});
|