cloud-profiler-nodejs icon indicating copy to clipboard operation
cloud-profiler-nodejs copied to clipboard

Is there an option to stop the profiler?

Open dudicp opened this issue 1 year ago • 3 comments

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?

dudicp avatar Jul 06 '23 08:07 dudicp

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

akosyakov avatar Sep 21 '23 07:09 akosyakov

It also looks like will be useful while shutting down a server: https://github.com/googleapis/cloud-profiler-nodejs/blob/00316e8788b21d73fc90427c70fda4b400746ab3/src/profiler.ts#L433-L436

akosyakov avatar Sep 21 '23 07:09 akosyakov

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

aabmass avatar Feb 02 '24 20:02 aabmass