performance-tools icon indicating copy to clipboard operation
performance-tools copied to clipboard

Make it possible to activate / deactivate measurement on user request

Open pkolaczk opened this issue 5 years ago • 1 comments

Imagine an application that requires a long startup and shutdown. I would like to deliberately skip measuring the startup and shutdown. I'd like to enable measurement only when I'm benchmarking my app, when it is fully loaded.

Ideas:

  • make it possible to attach to an existing application given by PID (not sure if at all possible though)
  • open a named pipe or network channel and listen to start/stop commands sent through it - this could allow even more interesting use-cases where the benchmarking app could enable/disable measurement by itself

pkolaczk avatar Sep 22 '20 07:09 pkolaczk

These are all really useful scenarios, but I don't think schedtime is the right tool for them since it's designed to work just like time(1), e.g. you start a new command and it runs until it exits.

So I'm working on another project that will allow you to monitor existing processes/threads. I'll update this issue when I've got something to try out.

Thanks for the feedback!

mfleming avatar Oct 16 '20 12:10 mfleming