23 releases (15 breaking)

0.16.0 Jan 17, 2024
0.15.0 Nov 21, 2023
0.14.0 Sep 28, 2023
0.13.0 May 24, 2023
0.3.0 Jul 5, 2021

#100 in Profiling

Download history 8589/week @ 2024-03-14 8337/week @ 2024-03-21 8878/week @ 2024-03-28 6243/week @ 2024-04-04 9896/week @ 2024-04-11 10167/week @ 2024-04-18 9831/week @ 2024-04-25 8594/week @ 2024-05-02 9402/week @ 2024-05-09 11306/week @ 2024-05-16 13242/week @ 2024-05-23 10200/week @ 2024-05-30 9302/week @ 2024-06-06 10567/week @ 2024-06-13 12353/week @ 2024-06-20 13130/week @ 2024-06-27

47,686 downloads per month
Used in 52 crates (6 directly)

MIT/Apache

125KB
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

~1.7–8MB
~55K SLoC