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>2019-01-07 22:36:35 +0300
committerjasnell <jasnell@gmail.com>2019-02-08 20:20:18 +0300
commitbcdd228f90b3e9e428b584814e7d52627616456a (patch)
treeeed1b405a1fd7e2f78bbf10e82d65c57d2c29105 /node.gypi
parent679c23f2ae1e62443f8d90e653824007ce174139 (diff)
perf_hooks: implement histogram based api
Add a sampling-based event loop delay monitor. ```js const { monitorEventLoopDelay } = require('perf_hooks'); const h = monitorEventLoopDelay(); h.enable(); h.disable(); console.log(h.percentiles); console.log(h.min); console.log(h.max); console.log(h.mean); console.log(h.stddev); console.log(h.percentile(50)); ``` PR-URL: https://github.com/nodejs/node/pull/25378 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'node.gypi')
-rw-r--r--node.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.gypi b/node.gypi
index d4b3c9c8d7d..7d6ff06128a 100644
--- a/node.gypi
+++ b/node.gypi
@@ -233,6 +233,7 @@
[ 'OS=="aix"', {
'defines': [
'_LINUX_SOURCE_COMPAT',
+ '__STDC_FORMAT_MACROS'
],
'conditions': [
[ 'force_load=="true"', {