How to reproduce:
1. Open the attached project "ProfilingSamplerTestsRepro"
2. Open Window -> General -> Test Runner and select the PlayMode tab
3. Expand UnityEngine.Rendering.Tests.ProfilingSamplerTests and count the test cases
4. Go to [Internal link] -> Toggle USE_RECORDER define and wait for the recompile
5. Reopen the Test Runner and count the test cases in the same fixture again
Expected results: The same set of ProfilingSampler tests is discovered in both cases, because UNITY_USE_RECORDER is defined unconditionally at the top of ProfilingScope.cs
Actual results: 8 test cases are discovered by default and 21 after defining USE_RECORDER, so 13 test cases are dead code and never run in CI
Reproducible with: 6000.6.0b9, 6000.7.0a5
Can't test with: 6000.0.81f1, 6000.5.9f1 (No tests)
Reproducible on: macOS Tahoe 26.6 (M1 Max)
Not reproducible on: No other environment tested