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
10,229 downloads per month
Used in 7 crates
(5 directly)
97KB
2K
SLoC
puffin_http
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