I am aware of for example the GNU profiler gprof, but I am thinking of something that can measure it on any program in a more black-box fashion where I do not have access to compiling the program myself. I also thought about ps
, but that seems to only give me a snapshot. I am thinking more in terms of start-to-end run of a program.
Ideally, I would like something like:
black-box-profile [program-to-start-and-any-posible-child-processes] --outfile [report-file]