Expand description
This crate provides a library with common functionality for measureme tools
§Reading event trace files
The main entry point for reading trace files is the ProfilingData struct.
To create a ProfilingData, call the ProfilingData::new() function and
provide a Path with the directory and file name for the trace files.
To retrieve an Iterator of all of the events in the file,
call the ProfilingData::iter() method.
Modules§
Structs§
- Analysis
Results - A collection data for an entire rustc invocation
- Artifact
Size - Event
- Lightweight
Event - Profiling
Data - Profiling
Data Builder - A
ProfilingDataBuilderallows for programmatically buildingProfilingDataobjects. This is useful for writing tests that expectProfilingDatawith predictable events (and especially timestamps) in it. - Query
Data - Data related to profiling a specific rustc query
Enums§
Functions§
- collapse_
stacks - Collect a map of all stacks and how many nanoseconds are spent in each.
Uses a variation of the algorithm in
summarize.