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

#103 in Profiling

Download history 12879/week @ 2024-10-02 13655/week @ 2024-10-09 14497/week @ 2024-10-16 15347/week @ 2024-10-23 15973/week @ 2024-10-30 17126/week @ 2024-11-06 15646/week @ 2024-11-13 15659/week @ 2024-11-20 15798/week @ 2024-11-27 24872/week @ 2024-12-04 25960/week @ 2024-12-11 16831/week @ 2024-12-18 9388/week @ 2024-12-25 13915/week @ 2025-01-01 19949/week @ 2025-01-08 14136/week @ 2025-01-15

58,259 downloads per month
Used in 29 crates (12 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
~60K SLoC