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

perf_hooks: create clearResourceTimings perf_hooks: add resourcetiming test parallel perf_hooks: add markResourceTiming perf_hooks: fix observable when using resource perf_hooks: fix observable when using resource perf_hooks: add class comments perf_hooks: add PerformanceResourceTiming perf_hooks: create clearResourceTimings perf_hooks: add resourcetiming test parallel perf_hooks: add markResourceTiming perf_hooks: fix observable when using resource perf_hooks: fix observable when using resource perf_hooks: add class comments perf_hooks: add Resource Timing documentation benchmark: measure resource timing module perf_hooks: add check avoiding new PerformanceResourceTiming perf_hooks: adjust doc PR-URL: https://github.com/nodejs/node/pull/42725 Fixes: https://github.com/nodejs/undici/issues/952 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
45 lines
1 KiB
JavaScript
45 lines
1 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 { 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,
|
|
PerformanceResourceTiming,
|
|
monitorEventLoopDelay,
|
|
createHistogram,
|
|
performance: new InternalPerformance(),
|
|
};
|
|
|
|
ObjectDefineProperty(module.exports, 'constants', {
|
|
configurable: false,
|
|
enumerable: true,
|
|
value: constants
|
|
});
|