optick 1.3.4

Super Lightweight Performance Profiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn runtime() -> &'static str {
    if std::env::var("CARGO_CFG_TARGET_FEATURE")
        .unwrap_or_default()
        .contains("crt-static")
    {
        "MT"
    } else {
        "MD"
    }
}

fn main() {
    println!(
        "cargo:rustc-link-search={}/external/lib/x64/",
        std::env!("CARGO_MANIFEST_DIR")
    );
    println!("cargo:rustc-link-lib=OptickCore_{}", runtime())
}