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 tools: fix AttributeError: __exit__ on Python 2.6 2017-12-27 19:41:34 +01:00
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 tools, build: refactor macOS installer 2017-09-28 02:05:59 -03:00
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 tools: bump remark-cli to 4.0 2017-11-18 20:44:17 +01:00
remark-preset-lint-node doc: add new documentation lint rule 2018-02-23 16:26:29 +00:00
rpm
.eslintrc.yaml tools: enforce no unused trailing arguments tools directory 2017-11-13 12:30:29 -08:00
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 tools: add cpplint rule for NULL usage 2017-12-01 07:45:05 +01:00
create_android_makefiles
create_expfile.sh
dcheck_macros.py lib: add internal check macros 2018-03-05 08:35:44 -06:00
genv8constants.py tools: minor performance improvement 2017-10-14 11:33:42 +02:00
getmoduleversion.py
getnodeversion.py
gyp_node.py build: simplify if in setting of arg_paths 2017-05-16 15:26:20 -04:00
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 tools: modernize license2rtf 2017-10-29 19:46:43 +01:00
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 build,tools: do not force codesign prefix 2017-07-19 16:38:27 -05:00
osx-pkg-postinstall.sh build: add npx to installers 2017-07-17 08:49:10 -07:00
osx-productsign.sh
release.sh tools: add custom private key option 2017-08-27 11:03:50 -03:00
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 build,test: run v8 tests on windows 2017-07-26 18:08:30 -07:00
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