cu-profiler-core
Core engine for cu-profiler — the
Solana compute-unit profiling, regression-testing and budget-enforcement toolkit.
This crate owns the domain model, the Solana log parser (CPI call tree, scope
markers, compute-budget heuristics), the budget policy engine, baselines with
input fingerprinting, confidence scoring, and the diagnostic engine. It depends on
no CLI code and no live Solana runtime by default: the RecordedLogsBackend
drives the whole pipeline from logs.
use RecordedLogsBackend;
use RunMetadata;
use Scenario;
use Profiler;
let mut backend = new;
backend.insert_blob;
let report = new.run;
assert_eq!;
See the project README for the full picture. Licensed under MIT OR Apache-2.0.