cargo-instruments 0.4.12

Profile binary targets on macOS using Xcode Instruments.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod app;
mod instruments;
mod opt;

#[cfg(not(target_os = "macos"))]
compile_error!("cargo-instruments requires macOS.");

fn main() {
    env_logger::init();
    use structopt::StructOpt;
    let opt::Cli::Instruments(args) = opt::Cli::from_args();

    if let Err(e) = app::run(args) {
        eprintln!("{}", e);
        std::process::exit(1);
    }
}