pprof-integration 0.1.0

Integrating pprof with various web frameworks in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[macro_use] extern crate rocket;

#[get("/")]
fn index() -> &'static str {
    "Hello, world!"
}

#[launch]
fn rocket() -> _ {
    rocket::build()
        .mount("/", routes![index])
        .mount("/", pprof_server::frameworks::rocket::routes())
}