Hasty Briefsbeta

Bilingual

Phptop: Simple PHP ressource profiler, safe and useful for production sites

a year ago
  • #PHP
  • #monitoring
  • #performance
  • phptop is a tool for monitoring PHP query and average metrics similar to 'time' command.
  • It tracks wallclock, user and system CPU time, memory, and other resource usages.
  • Easy to activate on a LAMP server with a single line configuration change in php.ini.
  • Used in production by Bearstech for years without issues.
  • Requires PHP >= 5.2.0 and tested up to PHP 8.2.
  • Example usage involves adding a prepend file to php.ini and reloading the server.
  • Output includes metrics like URL hits, time, memory usage, and more.
  • Includes a man page for detailed operation and options.
  • Acknowledgement to Marc Dequènes (Duck) for contributions.