Monday, 15 May 2017

What's the best way to profile function calls in node js?

I've got an application I've written in Node 7.9. It's not a web server. It's doing various kinds of file manipulations, data transformations, and so on.

I want to make some optimizations to performance for long-running tasks (e.g. a task manipulates 10GB of data and runs for 30 hours).

I can't seem to find any information on how to profile my application for time spent in javascript functions (for example, class methods). I have found some deprecated packages that were sort of similar, but nothing that shows me javascript-level info.

Also, I tried using the webkit built-in profiler, but it doesn't show me info at the javascript function level. In general it shows me things like lots of time spent manipulating maps and such in C functions.

What are the current tools (if any?) for doing this?



via Sir Robert

No comments:

Post a Comment