2017-08-07 22:53:24 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-11-22 17:04:46 +00:00
|
|
|
const {
|
|
|
|
ObjectDefineProperty,
|
|
|
|
} = primordials;
|
2019-04-09 07:55:53 +00:00
|
|
|
|
2017-08-07 22:53:24 +00:00
|
|
|
const {
|
2019-01-31 17:04:44 +00:00
|
|
|
constants,
|
2018-07-30 08:34:51 +00:00
|
|
|
} = internalBinding('performance');
|
2017-08-07 22:53:24 +00:00
|
|
|
|
2021-06-08 16:03:19 +00:00
|
|
|
const { PerformanceEntry } = require('internal/perf/performance_entry');
|
2022-04-10 02:37:03 +00:00
|
|
|
const { PerformanceResourceTiming } = require('internal/perf/resource_timing');
|
2021-07-26 15:16:00 +00:00
|
|
|
const {
|
|
|
|
PerformanceObserver,
|
|
|
|
PerformanceObserverEntryList,
|
|
|
|
} = require('internal/perf/observe');
|
2021-06-24 15:33:09 +00:00
|
|
|
const {
|
|
|
|
PerformanceMark,
|
|
|
|
PerformanceMeasure,
|
|
|
|
} = require('internal/perf/usertiming');
|
2022-08-21 02:43:39 +00:00
|
|
|
const {
|
|
|
|
Performance,
|
|
|
|
performance,
|
|
|
|
} = require('internal/perf/performance');
|
2019-03-19 10:17:49 +00:00
|
|
|
|
2020-02-27 21:14:38 +00:00
|
|
|
const {
|
2023-02-12 18:26:21 +00:00
|
|
|
createHistogram,
|
2020-02-27 21:14:38 +00:00
|
|
|
} = require('internal/histogram');
|
|
|
|
|
2021-01-29 00:34:27 +00:00
|
|
|
const monitorEventLoopDelay = require('internal/perf/event_loop_delay');
|
2019-01-07 19:36:35 +00:00
|
|
|
|
2017-08-07 22:53:24 +00:00
|
|
|
module.exports = {
|
2022-08-21 02:43:39 +00:00
|
|
|
Performance,
|
2021-01-29 00:34:27 +00:00
|
|
|
PerformanceEntry,
|
|
|
|
PerformanceMark,
|
2021-06-24 15:33:09 +00:00
|
|
|
PerformanceMeasure,
|
2019-01-07 19:36:35 +00:00
|
|
|
PerformanceObserver,
|
2021-07-26 15:16:00 +00:00
|
|
|
PerformanceObserverEntryList,
|
2022-04-10 02:37:03 +00:00
|
|
|
PerformanceResourceTiming,
|
2021-01-30 17:26:15 +00:00
|
|
|
monitorEventLoopDelay,
|
|
|
|
createHistogram,
|
2022-08-21 02:43:39 +00:00
|
|
|
performance,
|
2017-08-07 22:53:24 +00:00
|
|
|
};
|
|
|
|
|
2019-11-22 17:04:46 +00:00
|
|
|
ObjectDefineProperty(module.exports, 'constants', {
|
2022-06-03 08:23:58 +00:00
|
|
|
__proto__: null,
|
2017-08-07 22:53:24 +00:00
|
|
|
configurable: false,
|
|
|
|
enumerable: true,
|
2023-02-12 18:26:21 +00:00
|
|
|
value: constants,
|
2017-08-07 22:53:24 +00:00
|
|
|
});
|