2017 © Pedro Peláez
 

library profiler

PHP profiler.

image

tomzx/profiler

PHP profiler.

  • Thursday, October 27, 2016
  • by tomzx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Profiler

License Latest Stable Version Latest Unstable Version Build Status Code Quality Code Coverage Total Downloads, (*1)

PHP Profiler is a small library that provides profiling functionality. It uses the Chrome debugging protocol that is part of the Chrome DevTools. This means that you can generate .cpuprofile-compatible files that can then be loaded into Chrome profiles in the developer tools., (*2)

Getting started

  • In a console, php composer.phar require tomzx/profiler
$profiler = new \tomzx\Profiler\StackBasedProfiler();
$profiler->start();

// In your code
$profiler->push('My identifier');
///...
$profiler->pop();

$profile = $profiler->stop();
file_put_contents('test.cpuprofile', json_encode($profile));

License

The code is licensed under the MIT license. See LICENSE., (*3)

The Versions

27/10 2016

dev-master

9999999-dev https://github.com/tomzx/profiler

PHP profiler.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

profiler

26/10 2016

v0.1.0

0.1.0.0 https://github.com/tomzx/profiler

PHP profiler.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

profiler