#profiling #tracing #flamegraph #subscriber

tracing-chrome

A Layer for tracing-subscriber that outputs Chrome-style traces

3 releases (breaking)

0.3.0 Dec 1, 2020
0.2.0 Sep 5, 2020
0.1.0 Aug 20, 2020

#31 in Profiling

Download history 5/week @ 2020-10-06 55/week @ 2020-10-13 8/week @ 2020-10-20 12/week @ 2020-10-27 15/week @ 2020-11-03 579/week @ 2020-11-10 264/week @ 2020-11-17 295/week @ 2020-11-24 396/week @ 2020-12-01 219/week @ 2020-12-08 238/week @ 2020-12-15 282/week @ 2020-12-22 243/week @ 2020-12-29 188/week @ 2021-01-05 179/week @ 2021-01-12 226/week @ 2021-01-19

478 downloads per month
Used in 4 crates (2 directly)

MIT license

19KB
405 lines

tracing-chrome

Crates.io Documentation GitHub CI

Overview

tracing-chrome is a Layer for tracing-subscriber that outputs traces in Chrome's trace viewer format that can be viewed 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();


lib.rs:

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();

!

Dependencies

~2MB
~33K SLoC