#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

#356 in Profiling

Download history 6/week @ 2024-07-27 1/week @ 2024-08-03 9/week @ 2024-09-21 5/week @ 2024-09-28

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

~9–17MB
~221K SLoC