candle-graph 0.5.0

TensorFlow Profiler-style execution graphs for candle-rs (trace-only)
Documentation
//! TensorFlow Profiler-style execution graphs for [Candle](https://github.com/huggingface/candle) runs.
//!
//! Record one representative JSONL trace ([`instrument::TraceSession`]), build an [`graph::ExecutionGraph`],
//! and inspect it via CLI or HTML ([`viewer::render_evidence_html`]).
//!
//! There is **no static Rust analysis** — the graph comes only from what executed.

pub mod cli;
pub mod evidence;
pub mod graph;
pub mod instrument;
pub mod nsight;
pub mod phase;
pub mod trace;
#[cfg(feature = "visualizer")]
pub mod viewer;

pub use evidence::{build_evidence, Comparison, EvidencePacket, SpanComparison};
pub use graph::{build_from_trace, ExecutionGraph};
#[cfg(feature = "candle")]
pub use instrument::candle;
pub use instrument::{
    MemoryRecord, OpRecord, ProfileRun, SpanGuard, SpanId, SpanKind, TensorRecord, TraceSession,
};
pub use nsight::{GpuEvidenceStatus, NsightEvidence};
pub use phase::{ExecutionPhase, ExecutionStep};
pub use trace::TimingMode;
pub use trace::{parse_trace, write_jsonl, TraceDocument, TraceEvent, SCHEMA as TRACE_SCHEMA};