Strategy For Nesting Performance Log Entries?

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....
 
P

PeteCresswell

I've got something that works for me.

It's kind of a rat's breakfast at the moment, but if anybody's
interested let me know and I'll zip something up and make it
available.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top