- A SampleGroup instance passed to measurements in more than one test, for example one stored in a static field, no longer carries samples from earlier tests into the results of later ones. Measurements record into the instance they are given, so its samples and statistics are now cleared once its test has reported its result. Results of tests that reused sample groups this way are not comparable with earlier runs.
- Unsampled sample groups are now reported with zeroed statistics, and the active test is always cleared so a failing test can no longer fail the rest of the run. [UUM-150776]
- Measure.Scope() and Measure.Frames() converted Stopwatch timestamps as if they were TimeSpan ticks, overstating recorded times by Stopwatch.Frequency / TimeSpan.TicksPerSecond. Samples were correct on Mono but 100x too large on CoreCLR/Unix. Measure.Frames() additionally under-counted frames per measurement because its warmup probe used the same conversion. Recorded values from affected configurations are not comparable with earlier runs.
- m_DesiredFrameCount in FramesMeasurement.cs is now clamped at k_MinIterations instead of potentially being silently wrong.
- Measurements still open when a performance test ends (`Measure.Scope()`, `Measure.ProfilerMarkers()` and `Measure.Frames().Scope()` without a `using` block) are now all disposed. Previously, when two or more were open, every second one was skipped and its samples were silently lost. Tests that relied on this implicit disposal now report samples for sample groups that were previously empty, so their results are not comparable with earlier runs. Exceptions thrown while disposing a previously skipped measurement, such as an unsupported `SampleUnit`, now fail the test.
- Run settings are no longer reset when entering Play mode with domain reload disabled. Previously, a measurement count override applied to the run settings was discarded on entering Play mode, so later measurements fell back to their own measurement counts. The run settings are now refreshed when a test run starts instead.
### Changed
- The minimum supported Unity version for the package has been raised to 6.0
## [3.6.0] - 2026-09-23
### Added
- UnityGraphicsKernel flag added to track if UGK is used or not at runtime.
### Changed
- PerformanceTestRunInfo.json and PerformanceTestRunSettings.json are no longer generated during player builds that do not include test assemblies, as they are only read by performance tests running inside the player. Stale files left behind by an aborted test build are removed before such builds instead of being included in them.
- When `perfTestResults` is not specified but the Unity Test Framework `testResults` argument is, the performance results file is now also saved next to the NUnit results file. A command line run collects that directory, so results of a run that did not finish can still be picked up from it.
### Fixed
- Performance test results are now saved to the results file as each test finishes instead of only when the whole run completes, so results collected before a crash, a test timeout or another premature shutdown of a test run are no longer lost. The results file is also written through a temporary file so an interrupted write cannot leave it truncated.
- Repeat test-player builds no longer assign a fresh GUID to the PerformanceTestRunInfo.json/PerformanceTestRunSettings.json assets on every build. Previously, deleting these assets' `.meta` files as part of post-build cleanup caused Unity to assign a new GUID on the next build, which the data pipeline treated as a change and triggered a full asset rebuild even when nothing else changed. The `.meta` files are now cached in `Library/` between builds and restored before the assets are rewritten, scoped to builds with test assemblies. (UUM-132359)
- Post-build cleanup no longer deletes the Assets/Resources folder if it contains user content. Previously, an aborted test build could leave a stale cleanup flag behind, causing a later build to recursively delete the entire folder.
- Cleanup of performance test artifacts is now best-effort: files or folders that cannot be deleted (e.g. transiently locked by another process) log a warning instead of throwing, which would previously fail the build when cleanup runs during build preprocessing.
- The internal cleanup flag tracking whether the package created the Assets/Resources folder moved from EditorPrefs to SessionState, making it per-project and per-session. Previously the flag was shared across all Unity projects on the machine and could go stale across editor restarts.
-`Measure.Method().GC()` again forces a full garbage collection immediately before each timed region, restoring the behaviour from before the switch to the `ProfilerRecorder` API. Without it, a collection triggered by the measured code's own allocations lands inside the timed region and shows up as periodic spikes across the samples. As before: this only happens when `GC()` is specified; warmup and probing iterations are not affected; and because `SetUp`/`CleanUp` cause each of the `IterationsPerMeasurement` inner executions to be timed separately, that combination gets one collection per inner execution rather than one per sample, which makes it considerably slower. Reported times for allocating methods measured with `GC()` will change, generally becoming lower and more stable, so baselines recorded since 3.2.1 are not comparable.
- Profiler marker recorders used by `Measure.Method` now start when the measured iterations begin instead of when `ProfilerMarkers()` is called, so warmup and probing iterations no longer contribute to the reported marker values or add sample collection overhead to those phases.
## [3.5.0] - 2026-05-14
### Added
- A performance regression Threshold property for the Performance attribute. It is only reported when the value is greater than 0.0 and is to be used by the performance reporting endpoint to compare against historical data.
## [3.4.2] - 2026-04-27
### Added
- Made the package compatible with Fast Enter Playmode
## [3.4.1] - 2026-04-17
### Fixed
- Order dependency JSON content to not rewrite it to disk when contents have not actually changed.
## [3.4.0] - 2026-03-26
- Internal fixes only
## [3.3.0] - 2026-03-18
- Internal fixes only
## [3.2.1] - 2026-03-12
### Fixed
- Only call AssetDatabase.Refresh() in Cleanup() when something actually got deleted [BUTFP-29](https://issuetracker.unity3d.com/product/unity/issues/guid/BUTFP-29)
- Avoid boxing from enum.Equals in ConvertSamples.
- Prevent unnecessary asset recompilation by skipping result writing when the content is unchanged.
### Changed
- Added assert when sample is measured for a non-existing ProfilerMarker.
- Use ProfilerRecorder API to measure profiler markers.
- Updated GC.Alloc measurements (GC() function of Measure.Method) to collect allocation count on the running thread only.
- SampleGroup.GetRecorder is now marked as [Obsolete] and will be removed in a future update.