Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

shish/eventtracer-php

Repository files navigation

Generating Data:

$et = new \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:

Use Perfetto and "Open trace file"

Screenshot

Format Spec:

Google Doc

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

About

A PHP library for generating traces for the chrome trace viewer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages