mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00

PR-URL: https://github.com/nodejs/node/pull/39532 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe>
43 lines
937 B
JavaScript
43 lines
937 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
ObjectDefineProperty,
|
|
} = primordials;
|
|
|
|
const {
|
|
constants,
|
|
} = internalBinding('performance');
|
|
|
|
const { PerformanceEntry } = require('internal/perf/performance_entry');
|
|
const {
|
|
PerformanceObserver,
|
|
PerformanceObserverEntryList,
|
|
} = require('internal/perf/observe');
|
|
const {
|
|
PerformanceMark,
|
|
PerformanceMeasure,
|
|
} = require('internal/perf/usertiming');
|
|
const { InternalPerformance } = require('internal/perf/performance');
|
|
|
|
const {
|
|
createHistogram
|
|
} = require('internal/histogram');
|
|
|
|
const monitorEventLoopDelay = require('internal/perf/event_loop_delay');
|
|
|
|
module.exports = {
|
|
PerformanceEntry,
|
|
PerformanceMark,
|
|
PerformanceMeasure,
|
|
PerformanceObserver,
|
|
PerformanceObserverEntryList,
|
|
monitorEventLoopDelay,
|
|
createHistogram,
|
|
performance: new InternalPerformance(),
|
|
};
|
|
|
|
ObjectDefineProperty(module.exports, 'constants', {
|
|
configurable: false,
|
|
enumerable: true,
|
|
value: constants
|
|
});
|