caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] profiler
@ 2004-06-22 23:15 skaller
  2004-06-23 12:43 ` Damien Doligez
  0 siblings, 1 reply; 2+ messages in thread
From: skaller @ 2004-06-22 23:15 UTC (permalink / raw)
  To: caml-list

The Objective Caml compiler, version 3.07+14 (2004-02-03)

I may be missing something, so before i report a bug:
I ran ocamlcp (without -p option) and then ocamlprof.

The annotated output marks every match as specified.
But it misses every single named function, annotating
only unnamed functions.

This fragment shows pattern match and anon function
being profiled (well function call is a match in Ocaml?):

  List.map
  (fun table ->
    (* PROF 616626 *) match lookup_name_in_htab table name with
    | Some x -> (* PROF 236720 *) [x]
    | None -> (* PROF 379906 *) []
  )
  dirs

and here is a function without annotation
(but which is clearly called):

and mk_bare_env syms index =
  match Hashtbl.find syms.dfns index with
  {parent=parent;privmap=table} -> (* PROF 215928 *) (table,[]) ::
  match parent with
  | None -> (* PROF 107964 *) []
  | Some index -> (* PROF 107964 *) mk_bare_env syms index


-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] profiler
  2004-06-22 23:15 [Caml-list] profiler skaller
@ 2004-06-23 12:43 ` Damien Doligez
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Doligez @ 2004-06-23 12:43 UTC (permalink / raw)
  To: caml-list Caml

On Jun 23, 2004, at 01:15, skaller wrote:

> The Objective Caml compiler, version 3.07+14 (2004-02-03)
>
> I may be missing something, so before i report a bug:
> I ran ocamlcp (without -p option) and then ocamlprof.
>
> The annotated output marks every match as specified.
> But it misses every single named function, annotating
> only unnamed functions.

It's a known bug (PR#2654), already fixed in the CVS version.

-- Damien

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-23 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-22 23:15 [Caml-list] profiler skaller
2004-06-23 12:43 ` Damien Doligez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).