pub fn capture_to(path: &Path) -> Result<()>
Capture a snapshot and write it to path in the canonical zstd+JSON format. Wrapper over capture + CtprofSnapshot::write so CLI code can stay a single call.
path
capture
CtprofSnapshot::write