Saving and loading Profiler data
The Unity Profiler currently has a few fairly significant pitfalls when it comes to saving and loading Profiler data:
- Only 300 frames are visible in the Profiler window at once
- There is no way to save Profiler data through the user interface
- Profiler binary data can be saved into a file the Script code, but there is no built-in way to view this data
These issues make it very tricky to perform large-scale or long-term testing with the Unity Profiler. They have been raised in Unity's Issue Tracker tool for several years, and there doesn't appear to be any salvation in sight. So, we must rely on our own ingenuity to solve this problem.
Fortunately, the Profiler class exposes a few methods that we can use to control how ...