premanshup / php-timetrack

Simple PHP Helper to Analyze Execution Time of your PHP Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⏱ Measure PHP ExecutionTime

Simple tool for measuring PHP execution time.

Features

  • Super easy to use
  • HTML visualisation
  • No Dependencies

Documentation

Instantiate an object

require("timetracker.php");

$timer = new timetracker("start"); // Example Description

Add more timepoints if necessary

// Some Code
$timer->add("All Includes Loaded");

// Some Code
$timer->add("DB Query finished");

// Some Code
$timer->add("Echoing Body");

Show the Results

The HTML Output:

$timer->htmlOut();

Screenshot

The Text Output:

$timer->logPeriods();

Screenshot

The Text Output of raw Timestamps:

$timer->logTimestamps();

Screenshot

About

Simple PHP Helper to Analyze Execution Time of your PHP Scripts


Languages

Language:PHP 100.0%