#tracing-subscriber #tracing #flame-graph #subscriber #tracing-layer

nightly tracing-chrometrace

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

20 releases

0.1.19 Feb 1, 2023
0.1.18 Aug 18, 2022
0.1.17 Jul 5, 2022
0.1.4 Feb 9, 2022
0.1.0 Oct 25, 2021

#357 in Profiling

Download history 7/week @ 2024-07-29 10/week @ 2024-09-23 4/week @ 2024-09-30

3,391 downloads per month
Used in chrometracer

MIT license

17KB
412 lines

tracing-chrometrace

Overview

A tracing Layer that for logs formatted representations of tracing events viewed by the Chrome Trace Viewer at chrome://tracing.

Usage

use tracing_chrometrace::ChromeLayer;
use tracing_subscriber::{Registry, prelude::*};

tracing_subscriber::registry().with(ChromeLayer::default()).init();

lib.rs:

A Layer that for logs formatted representations of tracing events viewed by the Chrome Trace Viewer at chrome://tracing.

Usage

use tracing_chrometrace::ChromeLayer;
use tracing_subscriber::{Registry, prelude::*};

let (writer, guard) = ChromeLayer::with_writer(std::io::stdout);
tracing_subscriber::registry().with(writer).init();

Dependencies

~11–18MB
~230K SLoC