You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Performance Testing Extension provides several API methods you can use to take measurements in your performance test, depending on what you need to measure and how you want to do it.
88
+
The Performance Testing Extension provides several API methods you can use to take measurements in your performance test, depending on what you need to measure and how you want to do it. In order to use this you have to include `using Unity.PerformanceTesting` at the top of your script.
89
89
90
90
They are:
91
91
* Measure.Method
@@ -222,7 +222,7 @@ public void Test()
222
222
223
223
Used to record profiler markers. Profiler marker timings will be sampled within the scope of the `using` statement. Note that deep and editor profiling markers are not available.
224
224
225
-
#### Example 1: Use a custom measurement to capture total allocated memory
225
+
#### Example 1: Measuring profiler markers in a scope
226
226
227
227
```csharp
228
228
[PerformanceTest]
@@ -267,6 +267,28 @@ When a test is selected in the Unity Test Runner window within the Unity Editor,
The Performance Test Report window shows a detailed breakdown of individual test runs. This can be used to assess the stability of each test. It provides a visualisation of each individual sample recorded within a sample group along with summary statistics for the selected test. You can open the window by going to *Window > Analysis > Performance Test Report*.
274
+
275
+
The Performance Test Report is split into two views: the *test view* and the *sample group view*.
276
+
277
+
**Test View:** Provides a list of all tests. Each of the columns can be clicked to sort the view. Column values show the sample group with highest deviation.
278
+
279
+
**Name* - name of the test.
280
+
**Deviation* - The deviation is a value calculated by dividing the standard deviation by the median for a sample group. It shows the sample group with the highest 'deviation' value. Useful for defining stability of the test.
281
+
**Standard Deviation* - Standard deviation of the samples in a sample group. It shows the sample group with the highest standard deviation.
282
+
283
+
**Sample Group View:** Visualizes sample groups for selected test in the Test View. Provides
284
+
* Sample group summary displaying the min, max, and median values for a given sample group.
285
+
* Samples displayed in a bar chart, ordered by time, with a blue line indicating the median.
286
+
* Box plot showing upper (75%) and lower (25%) quartiles, min, max and median of the samples for a given sample group.
287
+
288
+
*Note: Performance Test Report is supported in Unity version 2018.3 or newer.*
289
+
290
+

291
+
270
292
## More Examples
271
293
272
294
#### Example 1: Measure execution time to serialize simple object to JSON
0 commit comments