Skip to content

troelskn/grind-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

grind-pilot

Command line utility for browsing cachegrind files.

Use for analysing cachegrind files, generated by xdebug.

You can run grind-pilot in two modes. Either it generates a listing of the most expensive function calls, sorted by average or totals, or you can browse through the callstack. The tool is command line based.

Examples:

###Show index by avg. cost

grind-pilot avg cachegrind.out.30394

Sum       Avg.      Calls Function
   0.0570    0.0570     1 {main}
   0.0640    0.0320     2 foo
   0.0040    0.0010     4 php::chr

###Show top level callstack

grind-pilot trace cachegrind.out.30394

Inclusive Self      Callstack
   0.1250    0.0570 {main}
--------------------------------------------------
   0.0430    0.0390   0. foo
   0.0250    0.0250   1. foo

###Show one level down through the callstack

grind-pilot trace cachegrind.out.30394 0

Inclusive Self      Callstack
   0.1250    0.0570 {main}
   0.0430    0.0390   foo
--------------------------------------------------
   0.0040    0.0040     0. php::chr
   0.0000    0.0000     1. php::chr

###Show slowest level down through the callstack

grind-pilot trace cachegrind.out.30394 auto

Inclusive Self      Callstack
   0.1250    0.0570 {main}
   0.0430    0.0390   foo
--------------------------------------------------
   0.0040    0.0040     0. php::chr
   0.0000    0.0000     1. php::chr

###Show filenames and line numbers

grind-pilot trace cachegrind.out.30394 0 --filename

Inclusive Self      Callstack
   0.1250    0.0570 {main}
   0.0430    0.0390   foo
                      called from [/tmp/foo.php:6]
--------------------------------------------------
[/tmp/foo.php:3]
   0.0040    0.0040     0. php::chr
   0.0000    0.0000     1. php::chr

About

Command line browser for cachegrind files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages