#parser #tracing #sparkles #trace #stream #perfetto #convert

bin+lib sparkles-parser

Parser for sparkles tracing library

2 releases

0.0.4 Sep 28, 2024
0.0.3 Sep 28, 2024

#903 in Parser implementations

Download history 223/week @ 2024-09-23 110/week @ 2024-09-30 18/week @ 2024-10-07

351 downloads per month

Apache-2.0

180KB
1K SLoC

Sparkles parser

Library for parsing sparkles byte stream.

After trace information is recorded to *.sprk file, you need to convert it to the perfetto format.

✧ Installation

cargo install sparkles-parser

Two binaries are included

✧ interactive

Used for default sparkles configuration. Opens director trace and begin parsing the latest saved file.

The result is saved with filename trace.perf

✧ single-file

A single command line argument is required: sparkles trace filename.

The result is saved with filename trace.perf

✧ How to use

Run one of described binaries to convert *.sprk sparkles event stream file to the Perfetto protobuf format. Navigate to https://ui.perfetto.dev/ to open the generated file.

Dependencies

~2–14MB
~123K SLoC