#profiling #tracing #flamegraph #subscriber

tracing-chrome

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

5 releases (3 breaking)

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

#32 in Profiling

Download history 409/week @ 2021-08-11 611/week @ 2021-08-18 481/week @ 2021-08-25 299/week @ 2021-09-01 365/week @ 2021-09-08 367/week @ 2021-09-15 465/week @ 2021-09-22 473/week @ 2021-09-29 604/week @ 2021-10-06 736/week @ 2021-10-13 813/week @ 2021-10-20 612/week @ 2021-10-27 649/week @ 2021-11-03 657/week @ 2021-11-10 470/week @ 2021-11-17 692/week @ 2021-11-24

2,532 downloads per month
Used in 6 crates (4 directly)

MIT license

19KB
400 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

~1.5MB
~24K SLoC