Reputation: 2505
I'm building a small simulation/profiling tool for an application that I'll be working on over the next year. The profiling tool is to be used in my build server such that it can generate some metrics of my application's performance as the development progresses.
I have previous experience with memory profilers, but to my knowledge the existing products does not suit my needs, where:
How can I achieve this? Ideally I would have something like the Process class although more fine-grained.
Upvotes: 2
Views: 158
Reputation: 2505
After toying around with Redgate's Profiler API and looking at the CLR Profiler source code, I came to the conclusion that perhaps the easiest solution would be to simply do some UI automation.
Using AutoHotKey I can start CLRProfiler on my app, find the correct allocations and dump the stats I need in text files.
Upvotes: 1