0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/tools
James M Snell 5c27e44488 trace_events: adds a new trace_events api
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>
2018-04-17 08:30:20 -07:00
..
bootstrap win, tools: add nasm to boxstarter script 2018-04-14 13:34:43 -07:00
configure.d
doc trace_events: adds a new trace_events api 2018-04-17 08:30:20 -07:00
eslint-rules lint: change require-buffer rule message 2018-04-02 23:11:54 -05:00
gyp Revert "tools: teach gyp to write an 'all deps' rule" 2018-01-25 08:18:42 +11:00
icu tools: fix broken link in icu notes 2018-04-14 12:25:59 -07:00
macos-installer
msvs build, tools, win: add nasm detection for OpenSSL 2018-04-10 06:45:45 +09:00
node_modules tools: update ESLint to 4.19.1 2018-03-24 04:11:48 -07:00
pkgsrc
remark-cli
remark-preset-lint-node doc: add new documentation lint rule 2018-02-23 16:26:29 +00:00
rpm
.eslintrc.yaml
certdata.txt tools: update certdata.txt 2018-03-26 18:20:07 -04:00
check_macros.py lib: add internal check macros 2018-03-05 08:35:44 -06:00
check-imports.py
compress_json.py
cpplint.py
create_android_makefiles
create_expfile.sh
dcheck_macros.py lib: add internal check macros 2018-03-05 08:35:44 -06:00
genv8constants.py
getmoduleversion.py
getnodeversion.py
gyp_node.py
install.py tools: install all header files OpenSSL-1.1.0 2018-04-10 06:45:45 +09:00
js2c.py tools,bootstrap: preprocess gypi files to json 2018-03-09 12:38:31 -06:00
license2rtf.js
license-builder.sh tools: add babel-eslint 2018-01-11 09:50:47 +01:00
lint-js.js tools: move eslint from tools to tools/node_modules 2018-01-11 09:48:05 +01:00
lsan_suppressions.txt
macosx-firewall.sh
make-v8.sh tools: fix make test-v8 2018-04-11 13:23:27 -04:00
Makefile
mk-ca-bundle.pl
mkssldef.py build: add OpenSSL-1.1.0 support 2018-04-10 06:45:45 +09:00
nodcheck_macros.py lib: add internal check macros 2018-03-05 08:35:44 -06:00
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 tools: fix test-npm-package 2018-03-12 19:49:27 -04:00
test-v8.bat
test.py tools: treat SIGABRT as crash 2018-04-13 20:51:18 +02:00
update-authors.sh
update-babel-eslint.sh tools: add babel-eslint 2018-01-11 09:50:47 +01:00
update-eslint.sh tools: move eslint from tools to tools/node_modules 2018-01-11 09:48:05 +01:00
utils.py