Message-Id: <199906061955.PAA03897@delorie.com> From: "Batchex" Organization: Digital Arts Creatives To: djgpp AT delorie DOT com Date: Mon, 7 Jun 1999 14:53:28 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: profiling question Reply-To: djgpp AT delorie DOT com I'm trying to to profile my program with gprof, but it always said that my functions ran for 0.0 ms. The sample counts is 0.05556 sec. I then tried rawtime() function, which if I'm not mistaken, can track up to 54.945 ms. It also said that my function ran for 0 ms. So, I added delay(200) function at the end of my function. Now I got some numbers (165 ms) with rawtime(). But, the problem is gprof still report 0.0 ms for my function. First, I've suspected the problem was that because I'm calling external assembly functions, but as I tried with different source code in which no linking to external assembly, this is not the case. Furthermore, gprof doesn't report the time taken for calling any C library functions (there are no entries for that), only reports the time taken for calling my functions, which is all 0.0 ms. Does anybody know why this is happening ? I programmed under pure MS-DOS and have added -pg option when compiling. Batchex thedark1 AT Phreaker DOT net "To know darkness, one must know the light, To know the light, one must know darkness, None will it be without the other, For darkness and light is truly non-existing, For they are all only the two sides of unity, And all that contradicts is truly one"