Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trace_events: adds a new trace_events api #19803

Closed
wants to merge 3 commits into from

Commits on Apr 14, 2018

  1. 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.
    jasnell committed Apr 14, 2018
    Configuration menu
    Copy the full SHA
    0c7fd73 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2018

  1. Configuration menu
    Copy the full SHA
    7be9b8d View commit details
    Browse the repository at this point in the history
  2. [Squash] doc nit

    jasnell committed Apr 16, 2018
    Configuration menu
    Copy the full SHA
    4876121 View commit details
    Browse the repository at this point in the history