Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request :: programmatic support for named profiles #52

Open
bpytlik opened this issue Apr 3, 2014 · 2 comments
Open

Feature Request :: programmatic support for named profiles #52

bpytlik opened this issue Apr 3, 2014 · 2 comments

Comments

@bpytlik
Copy link

bpytlik commented Apr 3, 2014

I can programmatically start and stop profiling using constructions like this:

    agent.loadedAgents["Profiler"].start({}, () ->)

The v8-profiler startProfiling function supports providing a name for a profile, but the Profiler start function doesn't provide a way to pass a name to startProfiling. I'd like to be able to do

    agent.loadedAgents["Profiler"].start({name: "my-profile-name"}, () ->)

and have that name passed along.

@c4milo
Copy link
Owner

c4milo commented Apr 22, 2014

I think a better tool for programmatic snapshots is https://github.com/bnoordhuis/node-heapdump

@bpytlik
Copy link
Author

bpytlik commented Apr 23, 2014

That's fine for profiling the heap. heapdump doesn't provide cpu profiling afaik, which is what I was trying to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants