0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/lib
Joyee Cheung c435f069eb
process: simplify the setup of async hooks trace events
- Remove `trace_category_state` from `Environment` - since this is
  only accessed in the bootstrap process and later in the
  trace category update handler, we could just pass the initial
  values into JS land via the trace_events binding, and pass
  the dynamic values directly to the handler later, instead of
  accessing them out-of-band via the AliasedBuffer.
- Instead of creating the hooks directly in
  `trace_events_async_hooks.js`, export the hook factory and
  create the hooks in trace category state toggle.

PR-URL: https://github.com/nodejs/node/pull/26062
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-02-21 10:47:28 +08:00
..
internal process: simplify the setup of async hooks trace events 2019-02-21 10:47:28 +08:00
_http_agent.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
_http_client.js http: reduce multiple output arrays into one 2019-02-11 13:35:58 +08:00
_http_common.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_http_incoming.js http: improve performance for incoming headers 2019-02-13 21:25:20 +08:00
_http_outgoing.js http: reduce multiple output arrays into one 2019-02-11 13:35:58 +08:00
_http_server.js http: makes response.writeHead return the response 2019-02-09 16:34:09 +01:00
_stream_duplex.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_passthrough.js
_stream_readable.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_transform.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_wrap.js src: use consistent names for JSStream 2018-12-28 12:57:46 -08:00
_stream_writable.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_tls_common.js
_tls_wrap.js tls: renegotiate should take care of its own state 2019-02-13 05:14:32 +01:00
.eslintrc.yaml lib: save primordials during bootstrap and use it in builtins 2019-02-02 05:40:47 +08:00
assert.js module: revert module._compile to original state if module is patched 2019-02-19 20:58:37 +05:30
async_hooks.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
buffer.js buffer: move Buffer prototype wiring into internal/buffer.js 2019-01-10 16:59:27 +08:00
child_process.js child_process: truncate output when maxBuffer is exceeded 2019-01-23 15:45:46 -08:00
cluster.js
console.js
constants.js
crypto.js src: remove process.binding('config').fipsForced 2019-02-20 23:42:11 +08:00
dgram.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
dns.js dns: use IDNA 2008 to encode non-ascii hostnames 2019-01-28 20:42:44 +01:00
domain.js domain: avoid circular memory references 2019-02-12 05:38:18 +01:00
events.js lib: remove dollar symbol for private function 2019-02-08 14:55:01 +01:00
fs.js fs: remove redundant callback check 2019-02-09 20:22:45 +01:00
http2.js
http.js lib: support overriding http\s.globalAgent 2019-01-08 00:10:36 +01:00
https.js tls: introduce client 'session' event 2019-02-01 19:06:58 -08:00
inspector.js console: refactor inspector console extension installation 2019-01-23 20:23:23 +08:00
module.js
net.js lib: replace 'assert' with 'internal/assert' for many built-ins 2019-02-08 00:01:12 -08:00
os.js os: add fallback for undefined CPUs 2019-01-16 12:41:56 +09:00
path.js
perf_hooks.js perf_hooks: implement histogram based api 2019-02-08 09:20:18 -08:00
process.js
punycode.js
querystring.js querystring: remove eslint-disable 2018-12-14 13:13:43 -05:00
readline.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
repl.js repl: add repl.setupHistory for programmatic repl 2019-02-11 14:30:26 -05:00
stream.js
string_decoder.js
sys.js
timers.js timers: truncate decimal values 2019-01-28 16:25:07 -08:00
tls.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
trace_events.js src: split ownsProcessState off isMainThread 2019-02-05 21:55:54 +01:00
tty.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
url.js lib: save primordials during bootstrap and use it in builtins 2019-02-02 05:40:47 +08:00
util.js util: fixes type in argument type validation error 2019-01-14 17:34:25 +01:00
v8.js tools: enable no-useless-constructor lint rule 2018-12-16 20:30:50 -08:00
vm.js inspector,vm: remove --eval wrapper 2019-02-03 20:40:16 +01:00
worker_threads.js worker: export workerData to ESM workers 2019-01-30 18:14:38 +01:00
zlib.js lib: replace 'assert' with 'internal/assert' for many built-ins 2019-02-08 00:01:12 -08:00