Expand description

A tracing Layer for generating a trace that can be viewed by the Chrome Trace Viewer at chrome://tracing.

Usage

use tracing_chrome::ChromeLayerBuilder;
use tracing_subscriber::{registry::Registry, prelude::*};

let (chrome_layer, _guard) = ChromeLayerBuilder::new().build();
tracing_subscriber::registry().with(chrome_layer).init();

!

Structs

This guard will signal the thread writing the trace file to stop and join it when dropped.

Enums

Decides how traces will be recorded.