* question about gc
@ 2010-12-15 21:15 Nicolas Ojeda Bar
2010-12-15 23:43 ` [Caml-list] " Richard W.M. Jones
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Ojeda Bar @ 2010-12-15 21:15 UTC (permalink / raw)
To: caml-list
Hi all,
Is there a way to tell how much time has been spent in
the gc at a particular point in time from inside your
compiled code?
Thanks!
N
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] question about gc
2010-12-15 21:15 question about gc Nicolas Ojeda Bar
@ 2010-12-15 23:43 ` Richard W.M. Jones
2010-12-16 0:41 ` Jesper Louis Andersen
2010-12-17 1:22 ` Eray Ozkural
0 siblings, 2 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2010-12-15 23:43 UTC (permalink / raw)
To: Nicolas Ojeda Bar; +Cc: caml-list
On Wed, Dec 15, 2010 at 04:15:34PM -0500, Nicolas Ojeda Bar wrote:
> Is there a way to tell how much time has been spent in
> the gc at a particular point in time from inside your
> compiled code?
Yes, use standard profiling tools. gprof will give you some idea, but
oprofile is much more accurate.
Rich.
--
Richard Jones
Red Hat
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] question about gc
2010-12-15 23:43 ` [Caml-list] " Richard W.M. Jones
@ 2010-12-16 0:41 ` Jesper Louis Andersen
2010-12-17 1:22 ` Eray Ozkural
1 sibling, 0 replies; 5+ messages in thread
From: Jesper Louis Andersen @ 2010-12-16 0:41 UTC (permalink / raw)
To: Richard W.M. Jones; +Cc: Nicolas Ojeda Bar, caml-list
On Thu, Dec 16, 2010 at 00:43, Richard W.M. Jones <rich@annexia.org> wrote:
> On Wed, Dec 15, 2010 at 04:15:34PM -0500, Nicolas Ojeda Bar wrote:
>> Is there a way to tell how much time has been spent in
>> the gc at a particular point in time from inside your
>> compiled code?
>
> Yes, use standard profiling tools. gprof will give you some idea, but
> oprofile is much more accurate.
Is 'perf' from the linux kernel source tree, /usr/src/linux/tools/perf
i believe, useful here? I tend to find it more useful and simpler than
oprofile - but I am not sure you can find the gc-entry point.
--
J.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] question about gc
2010-12-15 23:43 ` [Caml-list] " Richard W.M. Jones
2010-12-16 0:41 ` Jesper Louis Andersen
@ 2010-12-17 1:22 ` Eray Ozkural
2010-12-18 15:53 ` Richard W.M. Jones
1 sibling, 1 reply; 5+ messages in thread
From: Eray Ozkural @ 2010-12-17 1:22 UTC (permalink / raw)
To: Richard W.M. Jones; +Cc: Nicolas Ojeda Bar, caml-list
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
On Thu, Dec 16, 2010 at 1:43 AM, Richard W.M. Jones <rich@annexia.org>wrote:
> On Wed, Dec 15, 2010 at 04:15:34PM -0500, Nicolas Ojeda Bar wrote:
> > Is there a way to tell how much time has been spent in
> > the gc at a particular point in time from inside your
> > compiled code?
>
> Yes, use standard profiling tools. gprof will give you some idea, but
> oprofile is much more accurate.
>
I wasn't aware of oprofile, it looks wicked!!!
Best,
--
Eray
[-- Attachment #2: Type: text/html, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] question about gc
2010-12-17 1:22 ` Eray Ozkural
@ 2010-12-18 15:53 ` Richard W.M. Jones
0 siblings, 0 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2010-12-18 15:53 UTC (permalink / raw)
To: caml-list
On Fri, Dec 17, 2010 at 03:22:41AM +0200, Eray Ozkural wrote:
> On Thu, Dec 16, 2010 at 1:43 AM, Richard W.M. Jones <rich@annexia.org>wrote:
>
> > On Wed, Dec 15, 2010 at 04:15:34PM -0500, Nicolas Ojeda Bar wrote:
> > > Is there a way to tell how much time has been spent in
> > > the gc at a particular point in time from inside your
> > > compiled code?
> >
> > Yes, use standard profiling tools. gprof will give you some idea, but
> > oprofile is much more accurate.
> >
>
>
> I wasn't aware of oprofile, it looks wicked!!!
oprofile is quite nice.
However, systemtap is really interesting. [From a language
perspective ...] it's a type-safe language with type inference that
compiles down to C, compiles the C into a kernel module which is
injected into the Linux kernel and lets you do all sorts of amazing
stuff. The fact that it's a mainstream tool that uses proper type
inference is significant alone, the fact that it's seriously useful is
icing on the cake.
http://sourceware.org/systemtap/examples/keyword-index.html
Rich.
--
Richard Jones
Red Hat
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-12-18 15:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 21:15 question about gc Nicolas Ojeda Bar
2010-12-15 23:43 ` [Caml-list] " Richard W.M. Jones
2010-12-16 0:41 ` Jesper Louis Andersen
2010-12-17 1:22 ` Eray Ozkural
2010-12-18 15:53 ` Richard W.M. Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox