daruk-monitor-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

daruk-monitor-middleware

A monitor from v8-profiler-node8 for Daruk

Installation scaffolding

 
$ cnpm i -g daruk-monitor-middleware
 

How to use in your daruk project

Find your daruk config file

//daruk.config.ts
darukConfig.middleware = {
  'daruk-monitor-middleware': (mid: Function) => {
    return mid({
      auth: {
        name: 'monitor',
        password: 'monitor'
      }
    });
  }
};
 
//push it into the middleware list
darukConfig.middlewareOrder = ['daruk-monitor-middleware'];

Your can view the data from Api:

/monitor/profiler

/monitor/profiler/function

/monitor/profiler/mem

/monitor/profiler/mem-analytics

LICENSE

MIT License

Package Sidebar

Install

npm i daruk-monitor-middleware

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

19.1 MB

Total Files

24

Last publish

Collaborators

  • imakan
  • myluluy
  • himself65
  • cuzz
  • whale-you
  • icepy
  • xiaojue