caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] profiler
Date: 23 Jun 2004 09:15:04 +1000	[thread overview]
Message-ID: <1087946103.29427.65.camel@pelican.wigram> (raw)

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


             reply	other threads:[~2004-06-22 23:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-22 23:15 skaller [this message]
2004-06-23 12:43 ` Damien Doligez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1087946103.29427.65.camel@pelican.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).