Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1003 Bytes

README.md

File metadata and controls

46 lines (27 loc) · 1003 Bytes

xhprof-html

xhprof (or tideways) visualize html tool. This repository some modified for especially solo usage from xhprof repository.

Usage

  1. clone repo
  2. php -S localhost:8000
  3. Access http://localhost:8000/?dir={Your xhprof profiling result dir}

Tideways example

  1. Install tideways extension
  2. Write code and save profiler result.
<?php

tideways_xhprof_enable();

my_application();

$data = tideways_xhprof_disable();

$filename = '/tmp/' . intval(microtime(true)) . mt_rand(1,10000) . '.xhprof';
file_put_contents($filename, serialize($data));
echo 'Profile Result: ' . $filename;
  1. Start this web app at PHP build-in server.
$ php -S localhost:8000
  1. Access http://localhost:8000/?dir=/tmp

  2. Enjoy profiling!

Other xhprof visualization tools

You can find other visualization tools on GitHub Topics!