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

#108 in Profiling

Download history 12895/week @ 2024-09-02 12025/week @ 2024-09-09 11324/week @ 2024-09-16 12151/week @ 2024-09-23 11601/week @ 2024-09-30 12661/week @ 2024-10-07 15975/week @ 2024-10-14 13318/week @ 2024-10-21 16606/week @ 2024-10-28 16744/week @ 2024-11-04 16386/week @ 2024-11-11 15156/week @ 2024-11-18 15221/week @ 2024-11-25 21006/week @ 2024-12-02 26590/week @ 2024-12-09 24869/week @ 2024-12-16

88,300 downloads per month
Used in 34 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
~61K SLoC