I'm having a terrible performance problem where if my program is running, it's using 100% of the processor's available CPU. I've written an object which tracks thhe time spent is most every function, summarizes the elapsed times by function, and writes them to disk. But I can't fund what's taking so long. The values I see are relatively small, 20-250 milliseconds per 15 second period.
Has anybody got a suggestion of how I could approach this problem from a different angle? I would love ot be able to query Windows to find out what function or functions are using al the processor time.
Has anybody got any idea? I'm in a serious pickle.