node/lib/internal/process
Joyee Cheung ab70c96a79
src: refactor coverage connection
- Refactor the C++ class to be resuable for other types of profiles
- Move the try-catch block around coverage collection callback
  to be inside the callback to silence potential JSON or write
  errors.
- Use Function::Call instead of MakeCallback to call the coverage
  message callback since it does not actually need async hook
  handling. This way we no longer needs to disable the async
  hooks when writing the coverage results.
- Renames `lib/internal/coverage-gen/with_profiler.js` to
  `lib/internal/profiler.js` because it is now the only way
  to generate coverage.

PR-URL: https://github.com/nodejs/node/pull/26513
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Coe <bencoe@gmail.com>
2019-03-30 14:44:57 +01:00
..
esm_loader.js process: clarify the pre- and post-condition of esm setup 2019-01-23 19:36:35 +01:00
execution.js report: rename triggerReport() to writeReport() 2019-03-14 11:02:45 +01:00
main_thread_only.js process: setup signal handler in prepareMainThreadExecution 2019-02-28 23:35:37 +11:00
per_thread.js src: refactor coverage connection 2019-03-30 14:44:57 +01:00
policy.js policy: ensure workers do not read fs for policy 2019-01-29 22:19:15 +01:00
promises.js process: make tick callback and promise rejection callback more robust 2019-01-17 17:00:30 +01:00
report.js report: remove unnecessary return in setters 2019-03-27 21:58:56 +01:00
stdio.js process: make stdout and stderr emit 'close' on destroy 2019-03-27 22:16:21 +01:00
task_queues.js process: refactor global.queueMicrotask() 2019-03-27 22:16:26 +01:00
warning.js benchmark,doc,lib,test: capitalize comments 2019-03-04 15:13:25 +01:00
worker_thread_only.js worker: create per-Environment message port after bootstrap 2019-03-27 22:31:06 +01:00