[MonoDevelop] [PATCH] Profiler support
ben.motmans at gmail.com
Fri Apr 20 13:39:23 EDT 2007
On 4/20/07, Lluis Sanchez <lluis at ximian.com> wrote:
> In any case, we should have two add-ins, one with
> the common profiling code (MonoDevelop.Profiling sounds more convenient
> that MonoDevelop.Profiler to mee), and another with the heap-shot
> integration (let's say MonoDevelop.Profiling.HeapShot).
ok, sounds reasonable.
though you will probably have to wait about a week until i can provide
the updated patch since i have a couple of exams coming up next week.
> creating snapshots is something specific to heap-shot
the IProfilerSnapshot interface is used to describe a file generated
by the profiler, maybe a poor choice of name, but that is something
all profilers share.
the CreateSnapshot method simply means "tell the current profiler we
need a file describing the current state of the application". it does
not matter if the profiler supports taking multiple snapshots, for
example: when implementing a profiler that requires the application to
quit before being able to produce a "snapshot", the CreateSnapshot
method would simply do the same thing as .Stop()
> In fact, I'm wondering if the IProfiler interface is really needed.
the main reasons for this interface are:
* the SnapshotCreated event that all profilers share
* the fact that i was thinking outside the current profiler scenarios;
suppose there is a profiler that very precisely logs every single
detail you can think of between 2 point in time. the starting point
may not be the same as the moment you start the external process
(suppose you want to profile a weird memory problem that only occurs
after 30 minutes, you don't want data of the first 29 minutes messing
up the report), the Start () method will then be used to let the
profiler know it should start collecting data
More information about the Monodevelop-list