Is there way to count CPU time for each process?

Hi all,
How can I count the time of each process, I want to stats the CPU time used of each Physics,
but G4UserSteppingAction do not have a postUserAction and preUserAction.
should I modify each physics process with G4Timer?

It’s even more complicated than that, since multiple processes can be called during a single step.

You probably want to look into runtime profiling software.