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.

rust 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.