googleapis/cloud-profiler-nodejs

Is there an option to stop the profiler?

Opened this issue · 3 comments

dudicp commented

I would like to start and the stop the profiler for a configured duration of time and stop it once the time reached, is there an API to stop the profiler?

Hey, also was looking for the same capability. I would like to control if via a feature flag.

It also looks like will be useful while shutting down a server:

* TODO (issue #28): right now, this call could hang for up to an hour when
* this method is the only thing on the event loop, keeping the program open
* even when all work is done. Should expose the ability to cancel the http
* request made here, and then determine when to cancel this request.

Unfortunately not right now. I'll leave this open as a feature request but we aren't willing to accept a contribution for this right now