rspack_tracing_perfetto 0.102.9
“Rspack tracing perfetto”
Package is at least one year oldRelease published within seven days
SHA-256311f18fb14cb5499a0e419f902ccfc4c7341a8d0659cc3bbf3f68f236ef03ae1
MaleculeH(F)Md
Evidence
2:10… micromegas_perfetto to avoid manually updating the perfetto proto file
3// 2. use Custom-scoped slices to manage custom scope
4#![forbid(unsafe_code)]
5use std::io::Write;
6
7pub use bytes::BytesMut;
8use idl_helpers::{DebugAnnotations, create_event, create_track_descriptor, unique_uuid};
9pub use micromegas_perfetto::protos::{self as idl};
10pub use prost;
11use prost::Message;
12use tracing::{
13 Event, Id, Subscriber,
14 field::{Field, Visit},
15 span,
16};
17use tracing_subscriber::{Layer, fmt::MakeWriter, layer::Context, registry::LookupSpan};
18
19use crate::idl_helpers::create_scope_sliced_packet;
20
21pub mod idl_helpers;
22static DEFAULT_PROCESS_NAME: &str = "Rspack Build Overall";
23static DEFAU …
26:36… :TrackDescriptor>, // optional track descriptor for this span, defaults to thread if not found
27 pub trace: idl::Trace, // The Protobuf trace messages that we accumulate for this span.
28}
29
30/// A `Layer` that records span as perfetto's
31/// `TYPE_SLICE_BEGIN`/`TYPE_SLICE_END`, and event as `TYPE_INSTANT`.
32///
33/// `PerfettoLayer` will output the records as encoded [protobuf m …
56:22… buf: BytesMut) -> std::io::Result<()> {
57 self.make_writer().write_all(&buf)
58 }
59 fn flush(&self) -> std::io::Result<()> {
⋯7 lines
80:17… whether or not spans/events should be recorded with their metadata and fields.
81 pub fn with_debug_annotations(mut self, value: bool) -> Self {
82 …
385:16…
386 .map(|d| d.uuid())
387 .expect("should have a track descriptor");
388
389 let mut packet = idl::TracePacket::default();
390 let meta = span.me …
No evidence locations were recorded for this file. Raw result