Crate analyzeme

Crate analyzeme 

Source
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§

testing_common

Structs§

AnalysisResults
A collection data for an entire rustc invocation
ArtifactSize
Event
LightweightEvent
ProfilingData
ProfilingDataBuilder
A ProfilingDataBuilder allows for programmatically building ProfilingData objects. This is useful for writing tests that expect ProfilingData with predictable events (and especially timestamps) in it.
QueryData
Data related to profiling a specific rustc query

Enums§

EventPayload
Timestamp

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.