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

#131 in Profiling

Download history 22115/week @ 2024-12-03 27314/week @ 2024-12-10 20958/week @ 2024-12-17 8987/week @ 2024-12-24 12046/week @ 2024-12-31 19416/week @ 2025-01-07 17794/week @ 2025-01-14 18818/week @ 2025-01-21 21492/week @ 2025-01-28 21591/week @ 2025-02-04 21802/week @ 2025-02-11 20016/week @ 2025-02-18 22333/week @ 2025-02-25 26076/week @ 2025-03-04 29472/week @ 2025-03-11 21349/week @ 2025-03-18

102,038 downloads per month
Used in 30 crates (13 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
~61K SLoC