/performance-monitor

Primary LanguagePHPMIT LicenseMIT

Performance Monitor

Welcome to the project, which aims to create PHP Performance monitor. The purpose of the monitor is the analysis, optimization, control and evaluate the performance of code in PHP project.

Requirements

Configuration

  • configuration is in file: Performance/config.json
  • there is simple object with config
  • look to part database for settings of MySQL
  • when you run application first time then set 'database' => 'install' to TRUE. It is for create all tables and translation.

Run example

  • for measure you must start gearman server. Run file startWorker.php in Performance/Main without parameters.
  • include this code to your project (see to example.php):
  include 'Performance/Profiler/Monitor.php';
  \PM\Profiler\Monitor::getInstance()->enable();
  declare(ticks=1);

  /** Your code **/

  \PM\Profiler\Monitor::getInstance()->disable()->display(); // This line is optional. If you remove it then it is called in destruct.
  • next go to page http://your-domain/Performance/web/

Version info

  • version: 0.8