diff options
author | Andreas Madsen <amwebdk@gmail.com> | 2017-07-18 02:47:12 +0300 |
---|---|---|
committer | Andreas Madsen <amwebdk@gmail.com> | 2017-11-16 13:46:54 +0300 |
commit | d217b2850efb9005819d55b697a37cbe5bd0003c (patch) | |
tree | 58177a7aa0d00ece9133ac6c2120e2adb940f527 /src/tracing | |
parent | ed0327b8868cc3df981f81be6409586b97d06ac8 (diff) |
async_hooks: add trace events to async_hooks
This will allow trace event to record timing information for all
asynchronous operations that are observed by async_hooks.
PR-URL: https://github.com/nodejs/node/pull/15538
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/tracing')
-rw-r--r-- | src/tracing/agent.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tracing/agent.cc b/src/tracing/agent.cc index bc04b0b5e60..4514a0fce1f 100644 --- a/src/tracing/agent.cc +++ b/src/tracing/agent.cc @@ -36,6 +36,7 @@ void Agent::Start(const string& enabled_categories) { } else { trace_config->AddIncludedCategory("v8"); trace_config->AddIncludedCategory("node"); + trace_config->AddIncludedCategory("node.async_hooks"); } // This thread should be created *after* async handles are created |