Well, did you look at the docs <https://github.com/nodejs/node-report>?
"can also be triggered by sending a USR2 signal to a Node.js process"
So, `kill -USR2 <pid of node process>` should do the trick.
Btw, their docs say you can do this:
var nodereport = require('node-report');nodereport.triggerReport();
So if all else fails, build yourself this into a function, and shoot this on
interval, or maybe on an external trigger (e.g. protected API endpoint if this
is a web app).
On Wednesday, March 7, 2018 at 7:39:32 AM UTC+1, Kumar Nikhil wrote:
>
> Hello ,
>
> As of now *"node -r node-report application.js"* creates a new process
> and takes the report of the new process.
> But I want to take the node-report of the existing running process.
>
> Is there any way to do that ?
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/2e3f71b1-1921-4bd1-898c-e74ea9653b25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.