[Mono-list] Does heapshot profiler work?

Rolf Bjarne Kvinge rolf at xamarin.com
Mon Mar 26 22:02:19 UTC 2012


Hi,

On Mon, Mar 26, 2012 at 1:03 PM, xplicit <svg at ngs.ru> wrote:

> I try to use heapshot profiler, but it seems not working.
>
> I run as test the following program:
>
> using System;
> using System.Collections.Generic;
> using System.Threading;
>
> namespace heapshottest
> {
>        class MainClass
>        {
>                public static void Main(string[] args)
>                {
>                        List<string> testList = new List<string>();
>
>                        for (int i=0; i<500000; i++)
>                        {
>                                testList.Add("test");
>                                testList.Add("anotherTest");
>                                testList.RemoveAt(0);
>                                if (i % 100000 == 0)
>                                {
>                                        //      Thread.Sleep(1000);
>                                        Console.WriteLine("i={0}",i);
>                                }
>                        }
>                }
>        }
> }
>
> Then I run mono with heapshot profile:
> *mono --profile=log:heapshot=2000ms,alloc ./heapshot-test.exe *
>

Try running with mono-sgen instead of mono

Rolf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120326/58e4438c/attachment.html>


More information about the Mono-list mailing list