#tracing-subscriber #tracing #subscriber #flame-graph #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

#271 in Profiling

Download history 6/week @ 2024-02-15 19/week @ 2024-02-22 11/week @ 2024-02-29 17/week @ 2024-03-07 8/week @ 2024-03-14 3/week @ 2024-03-21 15/week @ 2024-03-28 15/week @ 2024-04-04 144/week @ 2024-04-11

178 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–18MB
~206K SLoC