[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pnet-developers] Profiling under Linux
From: |
Rhys Weatherley |
Subject: |
Re: [Pnet-developers] Profiling under Linux |
Date: |
Wed, 16 Feb 2005 07:08:40 +1000 |
User-agent: |
KMail/1.4.3 |
On Wednesday 16 February 2005 01:53 am, Marc Haisenko wrote:
> If there is no profiler, do you have other ideas how I could profile our
> application or dotGNU's SWF implementation ? I've thought about writing a
> small function in native C code and P/Invoke it to measure time between
> certain manually set checkpoints, but obviously I'd like to use a tested
> method (and not use up that much time that would be needed to get useful
> numbers out of my approach).
We do have some limited profiling support. The "-M" option to ilrun will
print out a trace at the end of execution listing the number of times each
method was called. This can help identify hot spots, but won't show you how
long they took to execute.
The general approach is to modify the engine to insert special CVM opcodes at
points where you want to measure something interesting, and collect up the
statistics that way.
Cheers,
Rhys.