Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP SPX Graph Visualizer

SPX Graph Visualizer is a tool for analyzing and visualizing performance profiles created with SPX PHP Profiler.

Description

I really don't like viewing the profile as a Flamegraph. I think it's difficult.

Features

  • Graph visualization — interactive call graphs with function names
  • Zoom — support zoom on the graph
  • Compression txt support — works with .txt and .txt.gz files
  • Report — view in browser or save to HTML report

Usage

Start web server

./spx-graph --file profile.txt.gz # http://localhost:8080

./spx-graph --file profile.txt.gz --port 9090 # http://localhost:9090

Save HTML report

./spx-graph --file profile.txt.gz -o result.html

Input data format

Works with SPX profiles containing sections:

[events]
0 1 0 0
1 1 33780 272
1 0 39230 536
...

[functions]
/var/www/html/index.php
/var/www/html/vendor/autoload.php
MyClass::myMethod
...

License

MIT License

Contributing

Pull requests and issues are welcome!

Links

About

SPX Graph Visualizer is a tool for analyzing and visualizing performance profiles created with SPX PHP Profiler.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages