www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/31/03:03:30

Date: Tue, 31 Mar 1998 11:01:30 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: gareth Bushell <gbushell AT cblsouth DOT demon DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Profiling code
In-Reply-To: <33381433wnr@cblsouth.demon.co.uk>
Message-ID: <Pine.SUN.3.91.980331110113.23311E-100000@is>
MIME-Version: 1.0

On Mon, 30 Mar 1998, gareth Bushell wrote:

> I am trying to optimize some code so I thought I'd use gprof.
> the problem is that when I run the code the table output by 
> gprof contains an entry _mono_putc. I don't use this function but it is 
> taking up almost 70% of the execution time.

This is a FAQ.  Section 13.2 of the DJGPP FAQ list explains that there
is a bug in a library function used by programs compiled with -pg
which causes this (and can even crash profiled programs in some
configurations).  Get a patched version of the library from Tom
Demmer's site and relink your program against it.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019