| Crates.io | spaa |
| lib.rs | spaa |
| version | 0.2.0 |
| created_at | 2026-01-22 23:44:36.610613+00 |
| updated_at | 2026-01-23 20:49:32.73269+00 |
| description | Tools for converting profiling data to SPAA format |
| homepage | |
| repository | https://github.com/andrewimm/spaa |
| max_upload_size | |
| id | 2062949 |
| size | 146,827 |
Tools for converting profiling data to SPAA (Stack Profile for Agentic Analysis) format.
cargo install spaa
This installs two binaries:
dtrace_to_spaa - Convert DTrace output to SPAAchrome_to_spaa - Convert Chrome DevTools profiles to SPAA# Convert DTrace aggregated stack output
dtrace_to_spaa profile.out -o profile.spaa
# Specify event name and sampling frequency
dtrace_to_spaa profile.out --event syscall::read:entry --frequency 0
# Auto-detects format (Performance trace, cpuprofile, or heap snapshot)
chrome_to_spaa trace.json -o profile.spaa
chrome_to_spaa Profile.cpuprofile
chrome_to_spaa Heap.heapsnapshot
use spaa::dtrace::{DtraceConverter, InputFormat};
use spaa::chrome::{CpuProfileConverter, HeapSnapshotConverter};
use spaa::perf::PerfConverter;
// Convert DTrace output
let mut converter = DtraceConverter::new(InputFormat::AggregatedStack);
converter.parse(input)?;
converter.write_spaa(output)?;
MIT