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

#113 in Profiling

Download history 15643/week @ 2024-08-20 14990/week @ 2024-08-27 13111/week @ 2024-09-03 11467/week @ 2024-09-10 11203/week @ 2024-09-17 12098/week @ 2024-09-24 12986/week @ 2024-10-01 12626/week @ 2024-10-08 14868/week @ 2024-10-15 13890/week @ 2024-10-22 17188/week @ 2024-10-29 16754/week @ 2024-11-05 15334/week @ 2024-11-12 15666/week @ 2024-11-19 15421/week @ 2024-11-26 18175/week @ 2024-12-03

67,784 downloads per month
Used in 35 crates (11 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–7MB
~60K SLoC