Sign inSign up

xhprof/xh-tool

By xhprof

•Updated about 7 years ago

xh-tool

Image
2

935

xhprof/xh-tool repository overview

⁠Docker build repo for xhprof/xh-tool⁠

⁠Build/publish

  • Build: docker build -t xhprof/xh-tool:latest .
  • Publish: docker push xhprof/xh-tool:latest

⁠Usage

Container provides two usage options: docker run --rm xhprof/xh-tool:latest


--------------------------------------------------------------------------------------------------------
------------------------------------------Two tools bundled:--------------------------------------------
--------------------------------------------------------------------------------------------------------

v1.0.0 svg-tool
XHPROF svg generator
Usage:
   svg-tool <filename>
   filename File name

Misc:
   --help               Show usage information

--------------------------------------------------------------------------------------------------------
Example: docker run --rm -v /xh-tool:/data xhprof/xh-tool svg /data/filename.serialized
--------------------------------------------------------------------------------------------------------
v1.1.0 xh-tool
XHPROF profile viewer
Usage: 
   xh-tool <action>
   action   Action name                           
            Allowed values: info, top, func, edges
   
Misc: 
   --help               Show usage information    
   --version            Show version              
   --bash-completion    Generate bash completion  
   --install            Install to /usr/local/bin/
   
--------------------------------------------------------------------------------------------------------
Example: docker run --rm -v /xh-tool:/data xhprof/xh-tool [info|top|func|edges] /data/filename.serialized
--------------------------------------------------------------------------------------------------------
⁠SVG generator tool

docker run --rm xhprof/xh-tool svg --help

v1.0.0 svg-tool
XHPROF svg generator
Usage:
   svg-tool <filename>
   filename File name

Misc:
   --help               Show usage information
⁠XHProf profile viewer
⁠Info

docker run --rm xhprof/xh-tool info --help

v1.1.0 xh-tool info
XHPROF profile viewer
Usage: 
   xh-tool info <profile>
   profile   Path to XHPROF hierarchical profile
   
Options: 
   --cpu         Show CPU time instead of wall time
   --with-mem    Add memory info                   
   
Misc: 
   --help               Show usage information    
   --version            Show version              
   --bash-completion    Generate bash completion  
   --install            Install to /usr/local/bin/
⁠Top

docker run --rm xhprof/xh-tool top --help

v1.1.0 xh-tool top
XHPROF profile viewer
Usage: 
   xh-tool top <profile>
   profile   Path to XHPROF hierarchical profile
   
Options: 
   --strip-nesting     Strip @N for nested calls                                                                                      
   --limit <limit>     Number of rows in result, default no limit                                                                     
   --filter <filter>   Case-insensitive regex to filter by function name, example: "process$", "swaggest", "^MyNs\\MyClass\\MyMethod$"
   --cpu               Show CPU time instead of wall time                                                                             
   --with-mem          Add memory info                                                                                                
   --order <order>     Order by field, default: ownTime                                                                               
                       Allowed values: name, wallTime, wallTime1, wallTime%, cpuTime, cpuTime1, cpuTime%, ownTime,                    
                       ownTime1, ownTime%, ownCpuTime, ownCpuTime1, ownCpuTime%, memoryUsage1, peakMemoryUsage,                       
                       peakMemoryShift, count                                                                                         
   
Misc: 
   --help               Show usage information    
   --version            Show version              
   --bash-completion    Generate bash completion  
   --install            Install to /usr/local/bin/
⁠Func

docker run --rm xhprof/xh-tool func --help

v1.1.0 xh-tool func
XHPROF profile viewer
Usage: 
   xh-tool func <profile> <filter>
   profile   Path to XHPROF hierarchical profile                                                                            
   filter    Case-insensitive regex to filter by function name, example: "process$", "swaggest", "^MyNs\\MyClass\\MyMethod$"
   
Options: 
   --strip-nesting    Strip @N for nested calls                                                                   
   --limit <limit>    Number of rows in result, default no limit                                                  
   --cpu              Show CPU time instead of wall time                                                          
   --with-mem         Add memory info                                                                             
   --order <order>    Order by field, default: ownTime                                                            
                      Allowed values: name, wallTime, wallTime1, wallTime%, cpuTime, cpuTime1, cpuTime%, ownTime, 
                      ownTime1, ownTime%, ownCpuTime, ownCpuTime1, ownCpuTime%, memoryUsage1, peakMemoryUsage,    
                      peakMemoryShift, count                                                                      
   
Misc: 
   --help               Show usage information    
   --version            Show version              
   --bash-completion    Generate bash completion  
   --install            Install to /usr/local/bin/
⁠Edges

docker run --rm xhprof/xh-tool edges --help

v1.1.0 xh-tool edges
XHPROF profile viewer
Usage: 
   xh-tool edges <profile>
   profile   Path to XHPROF hierarchical profile
   
Options: 
   --strip-nesting     Strip @N for nested calls                                                                                      
   --limit <limit>     Number of rows in result, default no limit                                                                     
   --filter <filter>   Case-insensitive regex to filter by function name, example: "process$", "swaggest", "^MyNs\\MyClass\\MyMethod$"
   --cpu               Show CPU time instead of wall time                                                                             
   --with-mem          Add memory info                                                                                                
   --order <order>     Order by field, default: ownTime                                                                               
                       Allowed values: name, wallTime, wallTime1, wallTime%, cpuTime, cpuTime1, cpuTime%, ownTime,                    
                       ownTime1, ownTime%, ownCpuTime, ownCpuTime1, ownCpuTime%, memoryUsage1, peakMemoryUsage,                       
                       peakMemoryShift, count                                                                                         
   
Misc: 
   --help               Show usage information    
   --version            Show version              
   --bash-completion    Generate bash completion  
   --install            Install to /usr/local/bin/

Tag summary

Content type

Image

Digest

Size

167.6 MB

Last updated

about 7 years ago

docker pull xhprof/xh-tool