Benchmarker for methods in unity. Add attribute to methods and run your game, Benchmarker will measure and collect time it takes for those methods to run. Results will then be given in a markdown table.
- Mono.cecil
- Mirage (for IL helper methods)
Import all files into project
- Add
[BenchmarkMethod("name")]
(and optionally[BenchmarkCategory("category")]
) to methods you want to measure. - Call
BenchmarkRunner.StartRecording(300, true, true);
- Run game code with methods you are measuring
- Look at markdown file for results