P
PeteCresswell
I've got a few routines for performance logging that compute the
number of seconds between "Start" and "Stop" and write same to a .txt
file.
But it's really crude. If I'm calling procedures within procedures,
I have to indent the "Start/Stop" messages manually and I have to
manally set the flag that tells the routine to write out the total
time across all calls since the "Start" call.
Does anybody have a scheme where the logging routine keeps track of
it's place in the call heirarchy, indents it's entires accordingly,
and maybe even prints subtotals for each process?
I'm guessing it involves a stack and pushing things into it/popping
things out of it....
number of seconds between "Start" and "Stop" and write same to a .txt
file.
But it's really crude. If I'm calling procedures within procedures,
I have to indent the "Start/Stop" messages manually and I have to
manally set the flag that tells the routine to write out the total
time across all calls since the "Start" call.
Does anybody have a scheme where the logging routine keeps track of
it's place in the call heirarchy, indents it's entires accordingly,
and maybe even prints subtotals for each process?
I'm guessing it involves a stack and pushing things into it/popping
things out of it....