Crate puffin_http

Crate puffin_http 

Source
Expand description

puffin_server is a library for streaming puffin profiler data over TCP.

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

let server_addr = format!("127.0.0.1:{}", 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);

Structs§

Client
Connect to a crate::Server, reading profile data and feeding it to a puffin::FrameView.
Server
Listens for incoming connections and streams them puffin profiler data.

Constants§

DEFAULT_PORT
The default TCP port used.
PROTOCOL_VERSION
Bumped on protocol breakage.