24 releases (15 breaking)

0.16.1 Jul 31, 2024
0.16.0 Jan 17, 2024
0.15.0 Nov 21, 2023
0.13.0 May 24, 2023
0.3.0 Jul 5, 2021

#110 in Profiling

Download history 16878/week @ 2024-07-13 15483/week @ 2024-07-20 16294/week @ 2024-07-27 17425/week @ 2024-08-03 16328/week @ 2024-08-10 16262/week @ 2024-08-17 14398/week @ 2024-08-24 13672/week @ 2024-08-31 12457/week @ 2024-09-07 11251/week @ 2024-09-14 11882/week @ 2024-09-21 11950/week @ 2024-09-28 12300/week @ 2024-10-05 15641/week @ 2024-10-12 13711/week @ 2024-10-19 16328/week @ 2024-10-26

60,230 downloads per month
Used in 63 crates (10 directly)

MIT/Apache

150KB
2.5K SLoC

puffin_http

Embark Embark Crates.io Docs

A HTTP server/client for communicating puffin profiling events.

You can view them using puffin_viewer.

How to use

Add a puffin_http Server to the profiled application When the server is started, puffin_viewer application can connect to it and display profiling information.

fn main() {
    let server_addr = format!("0.0.0.0:{}", puffin_http::DEFAULT_PORT);
    let _puffin_server = puffin_http::Server::new(&server_addr).unwrap();
    eprintln!("Serving demo profile data on {server_addr}. Run `puffin_viewer` to view it.");
    puffin::set_scopes_on(true);

    //
}

You can checkout the examples/server.rs for a more complete example.

Dependencies

~2–8MB
~62K SLoC