5 unstable releases
|0.2.1||Aug 15, 2019|
|0.2.0||Aug 5, 2019|
|0.1.0||Mar 15, 2019|
|0.0.2||Mar 15, 2019|
|0.0.1||Mar 10, 2019|
#42 in Profiling
71 downloads per month
microprofile-rust is a profiler for profiling and optimizing multithreaded game code
Its a rust port of microprofile:
Which in turn depends on the excellent distorm project
Add microprofile as a dependency:
[dependencies] microprofile = "0.2.1"
microprofile is meant to be called from a game engine every frame.
to do this you call
microprofile::flip every frame.
If your program is not framebased, you can use
microprofile::stop_auto_flip(), which will make microprofile call this function itself every
To time some code, you insert a scope in your program
All of microprofile-rust's functions are available as macros. Use the feature "disabled" to fully disable all the macros, and remove all the microprofile code instrumentation
[dependencies.microprofile] version = "0.2.1" features = ["disabled"]
As of version 0.2.1 only a subset of microprofile is supported:
- Scope timers are supported
- Dynamic instrumentation is supported
- Windows, Linux and OSX is supported
The following features are not supported:
- GPU timers
Please see the microprofile documentation : https://github.com/jonasmr/microprofile
- 0.2.0: Update to microprofile 3.1: Firefox support, quality of life features for programs with -many- threads
- 0.2.1: Update to latest microprofile: Fix a nasty perf regression in the live view.