Skip to content
A PHP library for generating traces for the chrome trace viewer
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
tests
.gitignore
LICENSE
README.md
composer.json
composer.lock

README.md

Generating Data:

$et = EventTracer("myeventlog.json");

$et->begin("Eating Cake");
[...]
$et->end();

If filename isn't specified, then data will be buffered in-memory ($et->buffer) and can be written to disk in one go with $et->flush($filename).

Viewing Data:

Visit chrome://tracing

Load JSON file

Screenshot

Format Spec:

Google Doc

Uses the JSON Array Format because that's the one which can be appended to from multiple threads

You can’t perform that action at this time.