Hi,
On Mon, Mar 26, 2012 at 1:03 PM, xplicit <[email protected]> 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
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list