[Mono-list] Heap-Shot with no GUI.

Esben Laursen hyber at hyber.dk
Fri Nov 12 08:34:06 EST 2010


Den 11-11-2010 17:10, Paolo Molaro skrev:
> On 11/05/10 Esben Laursen wrote:
>>> If there are other ways to debug this problem please let me know.
>> Can it be that Heap-Shot is the _only_ memory profiling tool out there
>> for mono? It does not seem that stable (had a shit load of issues getting
>> the GUI stuff to work)
> Heap-Shot has a number of issues, since its codebase has several
> dependencies on unsafe behaviour, so we have been working on a better
> implementation.
>
> The new profiler is now in git and it is able to perform heapshots
> when running with the sgen garbage collector.
> You basically run your program with:
>
> 	mono-sgen --profile=log:heapshot yourprogram.exe
>
> and then generate a report from the profile data with:
>
> 	mprof-report output.mlpd
>
> To generate a heapshot roughtly every 5 seconds use:
>
> 	mono-sgen --profile=log:heapshot,hsmode=5000ms yourprogram.exe
>
> <snip>
>
> Hope this helps.
> (Yes, someone is developing a GUI so the above data will be easier to
> understand).
>
> lupus

Hi Lupus,

Many many thanks for your email. I have actually just installed mono 
2.8. However I do not seem to have the "mprof-report" on my machine.

Do I need to configure and compile it with the mono-source or is it an 
independent source?

My mono is a standard system with --with-sgen=yes added..

Cheers

Esben


More information about the Mono-list mailing list