[Caml-list] Garbage collection and profiling

2009-06-04 Thread Jean Krivine
Dear list

Does anyone knows a simple way to evaluate the time spent by an ocaml
program in GCing?
I guess I can simply disable the GC and compare execution time but I
was wondering whether there is no direct way to do it.

Thanks!

___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


Re: [Caml-list] Garbage collection and profiling

2009-06-04 Thread David MENTRE
Hello,

On Thu, Jun 4, 2009 at 19:03, Jean Krivine  wrote:
> Does anyone knows a simple way to evaluate the time spent by an ocaml
> program in GCing?

Activate profiling in native code version and sum the time spent in
the GC entry points in gprof call graph output?

Sincerely yours,
david

___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


Re: [Caml-list] Garbage collection and profiling

2009-06-04 Thread Jean Krivine
For some strange reasons when I do so, I don't have time% but only
call numbers in the profile. Is there something I missed?

J

On Thu, Jun 4, 2009 at 1:29 PM, David MENTRE  wrote:
> Hello,
>
> On Thu, Jun 4, 2009 at 19:03, Jean Krivine  wrote:
>> Does anyone knows a simple way to evaluate the time spent by an ocaml
>> program in GCing?
>
> Activate profiling in native code version and sum the time spent in
> the GC entry points in gprof call graph output?
>
> Sincerely yours,
> david
>

___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


Re: [Caml-list] Garbage collection and profiling

2009-06-04 Thread Jon Harrop
On Thursday 04 June 2009 19:02:27 Jean Krivine wrote:
> For some strange reasons when I do so, I don't have time% but only
> call numbers in the profile. Is there something I missed?

Are you profiling native code using gprof?

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e

___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs