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
darukConfig.middleware = {
'daruk-monitor-middleware': (mid: Function) => {
return mid({
auth: {
name: 'monitor',
password: 'monitor'
}
});
}
};
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