mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
5c27e44488
Removes the requirement to use `--trace-events-enabled` to enable trace events. Tracing is enabled automatically if there are any enabled categories. Adds a new `trace_events` module with an API for enabling/disabling trace events at runtime without a command line flag. ```js const trace_events = require('trace_events'); const categories = [ 'node.perf', 'node.async_hooks' ]; const tracing = trace_events.createTracing({ categories }); tracing.enable(); // do stuff tracing.disable(); ``` Multiple `Tracing` objects may exist and be enabled at any point in time. The enabled trace event categories is the union of all enabled `Tracing` objects and the `--trace-event-categories` flag. PR-URL: https://github.com/nodejs/node/pull/19803 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> |
||
---|---|---|
.. | ||
bootstrap | ||
configure.d | ||
doc | ||
eslint-rules | ||
gyp | ||
icu | ||
macos-installer | ||
msvs | ||
node_modules | ||
pkgsrc | ||
remark-cli | ||
remark-preset-lint-node | ||
rpm | ||
.eslintrc.yaml | ||
certdata.txt | ||
check_macros.py | ||
check-imports.py | ||
compress_json.py | ||
cpplint.py | ||
create_android_makefiles | ||
create_expfile.sh | ||
dcheck_macros.py | ||
genv8constants.py | ||
getmoduleversion.py | ||
getnodeversion.py | ||
gyp_node.py | ||
install.py | ||
js2c.py | ||
license2rtf.js | ||
license-builder.sh | ||
lint-js.js | ||
lsan_suppressions.txt | ||
macosx-firewall.sh | ||
make-v8.sh | ||
Makefile | ||
mk-ca-bundle.pl | ||
mkssldef.py | ||
nodcheck_macros.py | ||
osx-codesign.sh | ||
osx-pkg-postinstall.sh | ||
osx-productsign.sh | ||
release.sh | ||
run-valgrind.py | ||
sign.bat | ||
specialize_node_d.py | ||
test-npm-package.js | ||
test-v8.bat | ||
test.py | ||
update-authors.sh | ||
update-babel-eslint.sh | ||
update-eslint.sh | ||
utils.py |