aprender-profile 0.29.0

Pure Rust system call tracer with source-aware correlation for Rust binaries
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Renacer CLI entry point - thin wrapper around library
//!
//! Renacer uses ptrace, which is Linux-only.

#[cfg(not(target_os = "linux"))]
compile_error!("renacer requires Linux (ptrace syscall tracing)");

#[cfg(target_os = "linux")]
fn main() {
    match renacer::cli::run() {
        Ok(code) => std::process::exit(code),
        Err(e) => {
            eprintln!("Error: {e}");
            std::process::exit(1);
        }
    }
}