spaa_parse
Parser and writer for SPAA (Stack Profile for Agentic Analysis) files.
SPAA is a structured format for representing profiling data from tools like Linux perf, DTrace, and Chrome DevTools. It's designed for analysis by both humans and LLMs.
Usage
Reading SPAA Files
use File;
use SpaaFile;
let file = open.unwrap;
let spaa = parse.unwrap;
println!;
println!;
// Iterate over stacks for a specific event
for stack in spaa.stacks_for_event
Writing SPAA Files
use File;
use ;
let file = create.unwrap;
let mut writer = new;
// Write header first, then dictionaries (DSOs, frames), then stacks
writer.write_header.unwrap;
writer.write_dso.unwrap;
writer.write_frame.unwrap;
writer.write_stack.unwrap;
License
MIT