Re: I want to write my own profiler
- From: Aneesh P <aneesh.p@xxxxxxxxx>
- Date: Fri, 01 Jun 2007 20:07:10 -0000
On Jun 2, 12:27 am, not_a_commie <notacom...@xxxxxxxxx> wrote:
I want to write myself a simple profiler. It would run a .NET
application and wait for the application to exit. When it exits I want
to see a grid containing 1) fully-qualified method/property name, 2)
the number of times it was called, 3) the amount of CPU time spent in
that function.
I can start a process, but I'm unsure what to look for. Is there some
global output pipe that .NET applications allow other applications to
hook into? How does that work? How does Visual Studio monitor all the
managed modules that were loaded when you execute in debug mode?
I think you can find out the assembly references and associated method
references. Use some counting mechanism for these references. I'm not
sure how the execution breaks down into countable blocks. Probably we
can use a dictionary to store the assembly name and the count.
.
- References:
- I want to write my own profiler
- From: not_a_commie
- I want to write my own profiler
- Prev by Date: Sending data to a win32 socket hndle in .NET
- Next by Date: Re: Linear Regression Example
- Previous by thread: I want to write my own profiler
- Next by thread: Re: I want to write my own profiler
- Index(es):
Relevant Pages
|