-
Notifications
You must be signed in to change notification settings - Fork 767
Expand file tree
/
Copy pathBenchmarkResults.cs
More file actions
61 lines (52 loc) · 1.85 KB
/
BenchmarkResults.cs
File metadata and controls
61 lines (52 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System.Text.Json.Serialization;
namespace UICatalog;
/// <summary>
/// Contains metrics collected during a benchmark run of a <see cref="Scenario"/>.
/// </summary>
/// <remarks>
/// These results are collected when running scenarios with the <c>-b</c> or <c>--benchmark</c> flag
/// and can be serialized to JSON for analysis.
/// </remarks>
public class BenchmarkResults
{
/// <summary>
/// Gets or sets the name of the scenario that was benchmarked.
/// </summary>
[JsonInclude]
public string Scenario { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the total duration of the benchmark run.
/// </summary>
[JsonInclude]
public TimeSpan Duration { get; set; }
/// <summary>
/// Gets or sets the number of main loop iterations that occurred during the benchmark.
/// </summary>
[JsonInclude]
public int IterationCount { get; set; }
/// <summary>
/// Gets or sets the number of times the driver's content was cleared during the benchmark.
/// </summary>
[JsonInclude]
public int ClearedContentCount { get; set; }
/// <summary>
/// Gets or sets the number of screen refresh operations during the benchmark.
/// </summary>
[JsonInclude]
public int RefreshedCount { get; set; }
/// <summary>
/// Gets or sets the number of update operations during the benchmark.
/// </summary>
[JsonInclude]
public int UpdatedCount { get; set; }
/// <summary>
/// Gets or sets the number of times view drawing completed during the benchmark.
/// </summary>
[JsonInclude]
public int DrawCompleteCount { get; set; }
/// <summary>
/// Gets or sets the number of times SubViews were laid out during the benchmark.
/// </summary>
[JsonInclude]
public int LaidOutCount { get; set; }
}