egg-profiler
v1.0.2
Published
provides egg bindings for the v8 profiler.
Downloads
2
Maintainers
Readme
egg-profiler
provides egg bindings for the v8 profiler.
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.