Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Which function is consing?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-07-04 (14:19)
From: Markus E.L. <ls-ocaml-developer-2006@m...>
Subject: Re: [Caml-list] Which function is consing?

> Folks,
> There's apparently no way to determine what function is consing using
> the profiler.
> How do you get around this limitation in your production code?

I'm not sure I understand what you mean -- but if you're looking for
the function call(s) generated when a::as is compiled: There is no
such function AFAIK: :: is a constructor (like 'Some') not a
function (like (+)) and the construction process is completely inlined (using
ocaml -dinstr I see a makeblock in this instances, I assume that's

Regards -- Markus