#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

#257 in Profiling

Download history 11/week @ 2024-02-18 22/week @ 2024-02-25 7/week @ 2024-03-03 17/week @ 2024-03-10 7/week @ 2024-03-17

53 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