How to use the pprof.SourceMapper.create function in pprof

To help you get started, we’ve selected a few pprof examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / cloud-profiler-nodejs / ts / src / profiler.ts View on Github external
async start(): Promise {
    if (!this.config.disableSourceMaps) {
      try {
        this.sourceMapper = await SourceMapper.create(
          this.config.sourceMapSearchPath
        );
      } catch (err) {
        this.logger.error(
          `Failed to initialize SourceMapper. Source map support has been disabled: ${err}`
        );
        this.config.disableSourceMaps = true;
      }
    }
    this.runLoop();
  }

pprof

pprof support for Node.js

Apache-2.0
Latest version published 6 months ago

Package Health Score

75 / 100
Full package analysis