Git Product home page Git Product logo

xdebug-utils's Introduction

Xdebug Utils

PHP utils to analyze generated files from xdebug profiler and trace.

Xdebug Profiler

./xdebug profiler [--top 10] [--report report.csv] [--format csv] file1 [ file2 [ folder]]

Options:

-r, --report	Report file
-f, --format	Report format: table or csv
-t, --top   	Top number of method to show. Could be number or percentage: 10 or 20%

Usage:

# create full report to csv file
> ./xdebug profiler -r report.csv cachegrind.out.1340990144_014725

# display report table with 10 most slow methods
> ./xdebug profiler -t 10 cachegrind.out.1340990144_014725 cachegrind.out.1340990145_014890

# display report table with 20% most slow methods
> ./xdebug profiler -t 20% /var/data/path-to-folder-with-cachegrind-files/

# you can also don't specify `profiler`. it will be used by default
> ./xdebug -t 20% /var/data/path-to-folder-with-cachegrind-files/

Example of output:

Example of xdebug profiler output

Xdebug Trace

coming soon...

xdebug-utils's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

maxistar

xdebug-utils's Issues

Missing functions names

I have table ouput different as yours in screenshot. Functions names are missing. Only id is present.
How can i fix it?

Method Invocations Incl Cost % Self Cost Self Cost Avg Self Cost Incl. Cost Avg Incl. Cost
(957) 1 95.19% 95.19% 125042.43ms 125042.43ms 125042.43ms 125042.43ms
(944) 1 3.3% 3.3% 4329.46ms 4329.46ms 4329.46ms 4329.46ms
(39) 249 0.68% 0.29% 386.14ms 1.55ms 888.85ms 3.57ms
(40) 249 0.74% 0.07% 88.35ms 0.36ms 978.46ms 3.93ms
(36) 248 0.06% 0.06% 77.93ms 0.32ms 80.7ms 0.33ms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.