[Caml-list] Average cost of the OCaml GC

2010-11-10 Thread Jianzhou Zhao
Hi, What is the average cost of the OCaml GC? I have a program that calls 'mark_slice' in 57% of the total execution time, and calls 'sweep_slice' in 21% of the total time, reported by Callgrind, which is a profiling tool in Valgrind. 57% and 21% are the 'self cost' --- the cost of the function it

Re: [Caml-list] Average cost of the OCaml GC

2010-11-11 Thread Goswin von Brederlow
Jianzhou Zhao writes: > Hi, > > What is the average cost of the OCaml GC? I have a program that calls > 'mark_slice' in 57% of the total execution time, and calls > 'sweep_slice' in 21% of the total time, reported by Callgrind, which > is a profiling tool in Valgrind. 57% and 21% are the 'self co

Re: [Caml-list] Average cost of the OCaml GC

2010-11-11 Thread Jianzhou Zhao
On Thu, Nov 11, 2010 at 4:08 AM, Goswin von Brederlow wrote: > Jianzhou Zhao writes: > >> Hi, >> >> What is the average cost of the OCaml GC? I have a program that calls >> 'mark_slice' in 57% of the total execution time, and calls >> 'sweep_slice' in 21% of the total time, reported by Callgrind,

Re: [Caml-list] Average cost of the OCaml GC

2010-11-11 Thread Michael Ekstrand
On 11/11/2010 07:52 AM, Jianzhou Zhao wrote: > On Thu, Nov 11, 2010 at 4:08 AM, Goswin von Brederlow > wrote: >> Jianzhou Zhao writes: >> >>> Hi, >>> >>> What is the average cost of the OCaml GC? I have a program that calls >>> 'mark_slice' in 57% of the total execution time, and calls >>> 'swee

Re: [Caml-list] Average cost of the OCaml GC

2010-11-11 Thread Goswin von Brederlow
Jianzhou Zhao writes: > On Thu, Nov 11, 2010 at 4:08 AM, Goswin von Brederlow > wrote: >> Jianzhou Zhao writes: >> >>> Hi, >>> >>> What is the average cost of the OCaml GC? I have a program that calls >>> 'mark_slice' in 57% of the total execution time, and calls >>> 'sweep_slice' in 21% of th

Re: [Caml-list] Average cost of the OCaml GC

2010-11-12 Thread Jianzhou Zhao
On Thu, Nov 11, 2010 at 3:11 PM, Goswin von Brederlow wrote: > Jianzhou Zhao writes: > >> On Thu, Nov 11, 2010 at 4:08 AM, Goswin von Brederlow >> wrote: >>> Jianzhou Zhao writes: >>> Hi, What is the average cost of the OCaml GC? I have a program that calls 'mark_slice' in

Re: [Caml-list] Average cost of the OCaml GC

2010-11-12 Thread ygrek
On Fri, 12 Nov 2010 12:27:40 -0500 Jianzhou Zhao wrote: > Do we still have other methods to debug such problems? Is it possible > to know when and where GC runs, say, the number of times GC works > after a particular usr-defined function? If this is possible, I was > wondering if we can see which

Re: [Caml-list] Average cost of the OCaml GC

2010-11-16 Thread Goswin von Brederlow
Jianzhou Zhao writes: > On Thu, Nov 11, 2010 at 3:11 PM, Goswin von Brederlow > wrote: >> Jianzhou Zhao writes: >> >>> On Thu, Nov 11, 2010 at 4:08 AM, Goswin von Brederlow >>> wrote: Jianzhou Zhao writes: > Hi, > > What is the average cost of the OCaml GC? I have a pr