#profiling #tracing #flamegraph #subscriber

tracing-chrome

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

4 releases (2 breaking)

0.3.1 Apr 29, 2021
0.3.0 Dec 1, 2020
0.2.0 Sep 5, 2020
0.1.0 Aug 20, 2020

#31 in Profiling

Download history 220/week @ 2021-01-15 245/week @ 2021-01-22 328/week @ 2021-01-29 240/week @ 2021-02-05 211/week @ 2021-02-12 234/week @ 2021-02-19 234/week @ 2021-02-26 313/week @ 2021-03-05 240/week @ 2021-03-12 266/week @ 2021-03-19 202/week @ 2021-03-26 189/week @ 2021-04-02 384/week @ 2021-04-09 263/week @ 2021-04-16 457/week @ 2021-04-23 641/week @ 2021-04-30

1,131 downloads per month
Used in 4 crates (2 directly)

MIT license

19KB
399 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
~34K SLoC