Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-01-29 03:34:27 +0300
committerJames M Snell <jasnell@gmail.com>2021-02-22 19:46:11 +0300
commitf3eb224c83f96cff9231f17b1c0a36b762942f48 (patch)
tree42b62cc1122ef355a47cfe49780a34465887810b /node.gyp
parent9f2efaa6f3878509a053a5aa9dab7b1b96d2add3 (diff)
perf_hooks: complete overhaul of the implementation
* Update the user timing implementation to conform to User Timing Level 3. * Reimplement user timing and timerify with pure JavaScript implementations * Simplify the C++ implementation for gc and http2 perf * Runtime deprecate additional perf entry properties in favor of the standard detail argument * Disable the `buffered` option on PerformanceObserver, all entries are queued and dispatched on setImmediate. Only entries with active observers are buffered. * This does remove the user timing and timerify trace events. Because the trace_events are still considered experimental, those can be removed without a deprecation cycle. They are removed to improve performance and reduce complexity. Old: `perf_hooks/usertiming.js n=100000: 92,378.01249733355` New: perf_hooks/usertiming.js n=100000: 270,393.5280638482` PR-URL: https://github.com/nodejs/node/pull/37136 Refs: https://github.com/nodejs/diagnostics/issues/464 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp7
1 files changed, 7 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index dbcbf4d8ca2..cba5c0113de 100644
--- a/node.gyp
+++ b/node.gyp
@@ -193,6 +193,13 @@
'lib/internal/modules/esm/translators.js',
'lib/internal/net.js',
'lib/internal/options.js',
+ 'lib/internal/perf/perf.js',
+ 'lib/internal/perf/nodetiming.js',
+ 'lib/internal/perf/usertiming.js',
+ 'lib/internal/perf/observe.js',
+ 'lib/internal/perf/event_loop_delay.js',
+ 'lib/internal/perf/event_loop_utilization.js',
+ 'lib/internal/perf/timerify.js',
'lib/internal/policy/manifest.js',
'lib/internal/policy/sri.js',
'lib/internal/priority_queue.js',