From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B844BD45F for ; Mon, 31 Oct 2005 12:34:55 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j9VBYt8u011118 for ; Mon, 31 Oct 2005 12:34:55 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA08554 for ; Mon, 31 Oct 2005 12:34:54 +0100 (MET) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9VBYrk1013638 for ; Mon, 31 Oct 2005 12:34:54 +0100 Received: from [64.74.207.33] (port=34398 helo=bely) by mx1.mail.ru with asmtp id 1EWXwA-0004X8-00 for caml-list@inria.fr; Mon, 31 Oct 2005 14:34:52 +0300 To: caml-list@inria.fr Subject: Native code profiling under Windows? From: Dmitry Bely Date: Mon, 31 Oct 2005 14:34:22 +0300 Message-ID: <8xw9c43l.fsf@mail.ru> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 4366015F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4366015D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlopt:01 cmx:01 compiler:01 stdlib:01 ocamlopt:01 profiler:01 stack:01 ocaml:01 compiler:01 ...:98 ...:98 complains:01 dmitry:01 dmitry:01 supported:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 When I try to link my project with "ocamlopt -p ..." it complains "Cannot find file std_exit.p.cmx". Indeed, the native build did not create a profiled version of the standard library (while -p compiler flag is supported). Have I missed something and should build the profiled stdlib somehow or gprof/ocamlopt -p simply does not work under Windows? Another related question: I would also like to try some third-party profiler tool (Intel VTune), but it requires ebp-based stack frame for each profiled function. It is not true for ocamlopt-generated code. If I modify the code generation part in the ocaml compiler and add push ebp mov ebp, esp ... pop ebp to each ocamlopt-generated function, will I break anything? - Dmitry Bely