ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ
Hi Herman,
[...]
HS>> If you ask me, djgpp is good at optimizing.
NS>> Pretty good is right! Its also great for profiling. Sometime omit
NS>> the -s and -fomit-frame-pointer switched, add in -pg (Assuming you
NS>> have gprof which comes with DJGPP) and execute your program. This
NS>> will kick out a dump to a file, then run gprof |
NS>> more or redirect output to a file, and you can see all kinds of
NS>> stuff, how many times a function is executed, how long it took,
NS>> etc, alot better then the big beastly confusing Turbo Profiler if
NS>> you ask me.
HS> It doesn't seem to work. When i try running "gprof tex.exe | more" it
HS> returns with an error message "unrecognized file format".
Have you run the Program once before (!!!) you tried the gprof ???
HS> I tried running "gprof tex.o |more" and it dumped a whole lot of
HS> directives on the screen (as if i were to type gprof /? etc).
No !! The o(bjekt)-file is the wrong parameter !!!
HS> How do i get this to work?
add "-pg" when compiling ... run the program ... start gprof !!!
ciao
Anti
ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ
---
---------------
* Origin: Airconditioned Area - Please don't open Windows !!! (2:246/1030.2)
|