20 releases (12 breaking)

0.13.0 May 24, 2023
0.11.1 Jan 30, 2023
0.11.0 Nov 7, 2022
0.10.0 Feb 7, 2022
0.3.0 Jul 5, 2021

#66 in Profiling

Download history 1618/week @ 2023-02-12 833/week @ 2023-02-19 1239/week @ 2023-02-26 907/week @ 2023-03-05 973/week @ 2023-03-12 1203/week @ 2023-03-19 1261/week @ 2023-03-26 943/week @ 2023-04-02 1319/week @ 2023-04-09 4749/week @ 2023-04-16 2451/week @ 2023-04-23 2014/week @ 2023-04-30 2236/week @ 2023-05-07 2168/week @ 2023-05-14 2839/week @ 2023-05-21 2908/week @ 2023-05-28

10,229 downloads per month
Used in 7 crates (5 directly)

MIT/Apache

97KB
2K 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 informations.

fn main() {
    let server_addr = format!("0.0.0.0:{}", puffin_http::DEFAULT_PORT);
    puffin_http::Server::new(&server_addr).unwrap();
}

You can checkout the examples/server.rs for a more complete example.

Dependencies

~1.8–7MB
~119K SLoC