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