| Crates.io | puffin_http |
| lib.rs | puffin_http |
| version | 0.16.1 |
| created_at | 2021-06-14 15:00:25.738971+00 |
| updated_at | 2024-07-31 16:22:26.987496+00 |
| description | TCP server/client for puffin profiler data |
| homepage | https://github.com/EmbarkStudios/puffin |
| repository | https://github.com/EmbarkStudios/puffin |
| max_upload_size | |
| id | 409933 |
| size | 38,873 |
A HTTP server/client for communicating puffin profiling events.
You can view them using puffin_viewer.
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.