webgrind

Xdebug Profiling Web Frontend in PHP

Github stars Tracking Chart

Webgrind

Webgrind is an Xdebug profiling web frontend in PHP. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job. Here's a screenshot showing the output from profiling:

Features

  • Super simple, cross platform installation - obviously :)
  • Track time spent in functions by self cost or inclusive cost. Inclusive cost is time inside function + calls to other functions.
  • See if time is spent in internal or user functions.
  • See where any function was called from and which functions it calls.
  • Generate a call graph using gprof2dot.py

Suggestions for improvements and new features are more than welcome - this is just a start.

Installation

  1. Download webgrind
  2. Unzip package to favourite path accessible by webserver.
  3. Load webgrind in browser and start profiling

Alternatively, on PHP 5.4+ run the application using the PHP built-in server
with the command composer serve or php -S 0.0.0.0:8080 index.php if you
are not using Composer.

For faster preprocessing, give write access to the bin subdirectory, or compile manually:

  • Linux / Mac OS X: execute make in the unzipped folder (requires GCC or Clang.)
  • Windows: execute nmake -f NMakeFile in the unzipped folder (requires Visual Studio 2015 or higher.)

See the Installation Wiki page for more.

Credits

Webgrind is written by Joakim Nygård and Jacob Oettinger. It would not have been possible without the great tool that Xdebug is thanks to Derick Rethans.

Current maintainer is Micah Ng.

Main metrics

Overview
Name With Ownerjokkedk/webgrind
Primary LanguagePHP
Program languagePHP (Language Count: 7)
Platform
License:Other
所有者活动
Created At2011-01-19 17:13:31
Pushed At2024-07-12 20:02:02
Last Commit At2023-10-04 08:39:52
Release Count22
Last Release Namev1.9.3 (Posted on 2023-10-04 08:40:58)
First Release Name0.3 (Posted on )
用户参与
Stargazers Count3.3k
Watchers Count147
Fork Count411
Commits Count299
Has Issues Enabled
Issues Count103
Issue Open Count39
Pull Requests Count41
Pull Requests Open Count16
Pull Requests Close Count30
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private