1.0.2 • Published 1 year ago

egg-profiler v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

egg-profiler

provides egg bindings for the v8 profiler.

npm download NPM version GitHub issues GitHub

Install

$ npm i egg-profiler --save

Usage

// {app_root}/config/plugin.js
exports.eggProfiler = {
  enable: true,
  package: 'egg-profiler',
};

/** 
 * anywhere start profiling
 * @param number time Milliseconds
 * /
this.app.profiler.profiling(time);

Configuration

// {app_root}/config/config.default.js
exports.eggProfiler = {
  name: 'profiling',
  timeFormate: 'YYYYMMDD-HHmmssSSS'
};

see config/config.default.ts for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT