Date: Mon, 11 Jan 1999 15:51:38 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: George Lugovoy cc: djgpp AT delorie DOT com Subject: Re: gprof needs help In-Reply-To: <3699A867.41C67EA6@uic.rnd.runnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 11 Jan 1999, George Lugovoy wrote: > Each sample counts as 0.055556 seconds. > % cumulative self self total > time seconds seconds calls Ts/call Ts/call name > 100.00 0.28 0.28 > __get_current_directory > 0.00 0.28 0.00 27113 0.00 0.00 ForceExt > 0.00 0.28 0.00 15148 0.00 0.00 FL_Open > 0.00 0.28 0.00 14039 0.00 0.00 Long2Str Was this program linked with DJGPP v2.02? If so, then the profiling code there has a bug that manifests itself in the above way: the first function is shown to take 100% of the time, and the rest take 0%. This info is bogus, don't make any conclusions based on it. I can send you a patched source of a library module which is responsible for this. You will need to compile it, put it into libc.a, and then rebuild your program and run it again. *Then* the profile should make sense.