Expand description
TODO: write crate docs
Macros§
- time_
scope - Times the scope passed to the macro, either with or without a label. When everything passed to this scope has executed the amount of time it took will be printed
Structs§
- Instrumentor
- The instrumentor is the overarching class that handles the creation of the json file that is fed into chrome://tracing (https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) this is used as a singleton and you almost certainly don’t want to make an instance of it.
- Profile
- A Profile is profiling data for a given bit of time recorded to the instrumentor.
- Timer
- a simple scope based timer, when it is constructed the timer starts, when it goes out of scope/is dropped the timer stops and it prints