Skip to content

xhprof (also tideways) result visualization tool from xhprof repo

Notifications You must be signed in to change notification settings

AlexBrin/xhprof-html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xhprof-html

xhprof (or tideways) visualize html tool from xhprof repo.

Usage

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

Callgraph

If you want graphing functions for xhprof run:

sudo apt install graphviz

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!

About

xhprof (also tideways) result visualization tool from xhprof repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.7%
  • JavaScript 24.0%
  • CSS 2.3%