mirror of https://github.com/nodejs/node.git
36 lines
823 B
JavaScript
36 lines
823 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
ObjectDefineProperty,
|
|
} = primordials;
|
|
|
|
const {
|
|
constants,
|
|
} = internalBinding('performance');
|
|
|
|
const { PerformanceEntry } = require('internal/perf/performance_entry');
|
|
const { PerformanceObserver } = require('internal/perf/observe');
|
|
const { PerformanceMark } = 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,
|
|
PerformanceObserver,
|
|
monitorEventLoopDelay,
|
|
createHistogram,
|
|
performance: new InternalPerformance(),
|
|
};
|
|
|
|
ObjectDefineProperty(module.exports, 'constants', {
|
|
configurable: false,
|
|
enumerable: true,
|
|
value: constants
|
|
});
|