shish/eventtracer-php

This package is abandoned and no longer maintained. No replacement package was suggested.

An API to write JSON traces as used by the Chrome Trace Viewer

Maintainers

Package info

github.com/shish/eventtracer-php

pkg:composer/shish/eventtracer-php

Statistics

Installs: 40 888

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 0

v2.2.2 2025-10-02 13:35 UTC

This package is auto-updated.

Last update: 2026-03-13 20:27:42 UTC


README

$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