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

#93 in Profiling

Download history 16425/week @ 2024-10-27 16937/week @ 2024-11-03 16589/week @ 2024-11-10 15012/week @ 2024-11-17 14939/week @ 2024-11-24 20144/week @ 2024-12-01 27277/week @ 2024-12-08 24560/week @ 2024-12-15 8352/week @ 2024-12-22 11199/week @ 2024-12-29 18547/week @ 2025-01-05 18450/week @ 2025-01-12 18829/week @ 2025-01-19 20055/week @ 2025-01-26 21741/week @ 2025-02-02 20462/week @ 2025-02-09

82,001 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
~60K SLoC