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

#111 in Profiling

Download history 15295/week @ 2024-07-03 15999/week @ 2024-07-10 16751/week @ 2024-07-17 14222/week @ 2024-07-24 18143/week @ 2024-07-31 17645/week @ 2024-08-07 15676/week @ 2024-08-14 15083/week @ 2024-08-21 14427/week @ 2024-08-28 13292/week @ 2024-09-04 11209/week @ 2024-09-11 11638/week @ 2024-09-18 11177/week @ 2024-09-25 12879/week @ 2024-10-02 13655/week @ 2024-10-09 14446/week @ 2024-10-16

54,830 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–7.5MB
~62K SLoC