xref: /third_party/node/lib/perf_hooks.js
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/lib/
1'use strict';
2
3const {
4  ObjectDefineProperty,
5} = primordials;
6
7const {
8  constants,
9} = internalBinding('performance');
10
11const { PerformanceEntry } = require('internal/perf/performance_entry');
12const { PerformanceResourceTiming } = require('internal/perf/resource_timing');
13const {
14  PerformanceObserver,
15  PerformanceObserverEntryList,
16} = require('internal/perf/observe');
17const {
18  PerformanceMark,
19  PerformanceMeasure,
20} = require('internal/perf/usertiming');
21const {
22  Performance,
23  performance,
24} = require('internal/perf/performance');
25
26const {
27  createHistogram,
28} = require('internal/histogram');
29
30const monitorEventLoopDelay = require('internal/perf/event_loop_delay');
31
32module.exports = {
33  Performance,
34  PerformanceEntry,
35  PerformanceMark,
36  PerformanceMeasure,
37  PerformanceObserver,
38  PerformanceObserverEntryList,
39  PerformanceResourceTiming,
40  monitorEventLoopDelay,
41  createHistogram,
42  performance,
43};
44
45ObjectDefineProperty(module.exports, 'constants', {
46  __proto__: null,
47  configurable: false,
48  enumerable: true,
49  value: constants,
50});
51

Indexes created Thu Nov 07 10:32:03 CST 2024