From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA16422; Thu, 20 Feb 2003 23:00:11 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA16136 for ; Thu, 20 Feb 2003 23:00:10 +0100 (MET) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1KM09T00447 for ; Thu, 20 Feb 2003 23:00:09 +0100 (MET) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id h1KM08xw031976 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Thu, 20 Feb 2003 23:00:08 +0100 Received: from first.UUCP (uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id h1KM08n2031974 for inria.fr!caml-list; Thu, 20 Feb 2003 23:00:08 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: inria.fr!caml-list Received: by first.in-berlin.de via sendmail from stdin id (Debian Smail3.2.0.114) Thu, 20 Feb 2003 23:05:20 +0100 (CET) From: oliver@first.in-berlin.de (Oliver Bandel) Date: Thu, 20 Feb 2003 23:05:20 +0100 To: caml-list@inria.fr Subject: [Caml-list] Profiling-question... Message-ID: <20030220220520.GA1207@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I have added a profiling-output of a logfile-analysator. One of my first Ocaml-projects, which will be used as a tool (and not as a learning project). Because of time consumption I looked, how the profiling can help. Well, ocamplopt doesn't created a call-graph for gprof. But in the reference manual I found the comment, that this is not supported on all platforms. (It's Linux on Mac G4). I wonder about this section in the profiler-output: let entry_contains_reject entry = (* 63273 *) List.exists (fun stri -> (* 1066296 *) Str.string_partial_match reject_regexp stri 0) entry There is a function called by List.exists, which is called about 16 times as often as the calling function. There are 63273 Elements in the list. Why is the unnamed function (or Str.string_partial_match) called 1066296 times? TIA, Oliver ------------------- 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