On Tue, 25 Sep 2007 20:32:05 +0200
Lord Satan <[EMAIL PROTECTED]> wrote:

> Hi everybody,
> 
> I tried to use gprof on a project of mine, but I don't get any
> usefull information. My project is compiled without any optimizations
> and code generation for gprof is enabled. All I get is this:
> 
> Flat profile:
> 
> Each sample counts as 0.01 seconds.
>  no time accumulated
> 
>   %   cumulative   self              self     total           
>  time   seconds   seconds    calls  Ts/call  Ts/call  name    
>   0.00      0.00     0.00        1     0.00     0.00  main
> 
> <snip>
> 
> index % time    self  children    called     name
>                 0.00    0.00       1/1
> SI_C21G__FPC_LIBC21_GPROF_START [10079] [1]      0.0    0.00
> 0.00       1         main [1]
> -----------------------------------------------
> 
> <snip>
> 
> Index by function name
> 
>    [1] main
> 
> Anyone any ideas?

>From fpc list:
It's known not to work on Linux currently (for the same  
reason that shared library initialization doesn't work).

Alternative:
Callgrind/Cachegrind is probably your best bet (and more detailed  
than gprof).


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to