@@ -19,7 +19,6 @@ public struct Measurement : IComparable<Measurement>
19
19
20
20
private const string NsSymbol = "ns" ;
21
21
private const string OpSymbol = "op" ;
22
- private const string SBSymbol = "B" ;
23
22
24
23
private static Measurement Error ( ) => new Measurement ( - 1 , IterationMode . Unknown , IterationStage . Unknown , 0 , 0 , 0 ) ;
25
24
@@ -44,11 +43,6 @@ private static readonly int IterationInfoNameMaxWidth
44
43
/// </summary>
45
44
public double Nanoseconds { get ; }
46
45
47
- /// <summary>
48
- /// Gets the total number of survived bytes from all operations.
49
- /// </summary>
50
- public long SurvivedBytes { get ; }
51
-
52
46
/// <summary>
53
47
/// Creates an instance of <see cref="Measurement"/> struct.
54
48
/// </summary>
@@ -59,27 +53,13 @@ private static readonly int IterationInfoNameMaxWidth
59
53
/// <param name="operations">The number of operations performed.</param>
60
54
/// <param name="nanoseconds">The total number of nanoseconds it took to perform all operations.</param>
61
55
public Measurement ( int launchIndex , IterationMode iterationMode , IterationStage iterationStage , int iterationIndex , long operations , double nanoseconds )
62
- : this ( launchIndex , iterationMode , iterationStage , iterationIndex , operations , nanoseconds , 0 ) { }
63
-
64
- /// <summary>
65
- /// Creates an instance of <see cref="Measurement"/> struct.
66
- /// </summary>
67
- /// <param name="launchIndex"></param>
68
- /// <param name="iterationMode"></param>
69
- /// <param name="iterationStage"></param>
70
- /// <param name="iterationIndex"></param>
71
- /// <param name="operations">The number of operations performed.</param>
72
- /// <param name="nanoseconds">The total number of nanoseconds it took to perform all operations.</param>
73
- /// <param name="survivedBytes">The total number of survived bytes from all operations.</param>
74
- public Measurement ( int launchIndex , IterationMode iterationMode , IterationStage iterationStage , int iterationIndex , long operations , double nanoseconds , long survivedBytes )
75
56
{
76
57
Operations = operations ;
77
58
Nanoseconds = nanoseconds ;
78
59
LaunchIndex = launchIndex ;
79
60
IterationMode = iterationMode ;
80
61
IterationStage = iterationStage ;
81
62
IterationIndex = iterationIndex ;
82
- SurvivedBytes = survivedBytes ;
83
63
}
84
64
85
65
private static IterationMode ParseIterationMode ( string name ) => Enum . TryParse ( name , out IterationMode mode ) ? mode : IterationMode . Unknown ;
@@ -118,15 +98,6 @@ public override string ToString()
118
98
builder . Append ( GetAverageTime ( ) . ToString ( MainCultureInfo ) . ToAscii ( ) ) ;
119
99
builder . Append ( "/op" ) ;
120
100
121
- if ( SurvivedBytes != 0 )
122
- {
123
- builder . Append ( ", " ) ;
124
- builder . Append ( SurvivedBytes . ToString ( MainCultureInfo ) ) ;
125
- builder . Append ( ' ' ) ;
126
- builder . Append ( SBSymbol ) ;
127
- builder . Append ( " Survived" ) ;
128
- }
129
-
130
101
return builder . ToString ( ) ;
131
102
}
132
103
@@ -175,7 +146,6 @@ public static Measurement Parse(ILogger logger, string line, int processIndex)
175
146
var measurementsInfoSplit = measurementsInfo . Split ( new [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries ) ;
176
147
long op = 1L ;
177
148
double ns = double . PositiveInfinity ;
178
- long survived = 0 ;
179
149
foreach ( string item in measurementsInfoSplit )
180
150
{
181
151
var measurementSplit = item . Split ( new [ ] { ' ' } , StringSplitOptions . RemoveEmptyEntries ) ;
@@ -189,12 +159,9 @@ public static Measurement Parse(ILogger logger, string line, int processIndex)
189
159
case OpSymbol :
190
160
op = long . Parse ( value , MainCultureInfo ) ;
191
161
break ;
192
- case SBSymbol :
193
- survived = long . Parse ( value , MainCultureInfo ) ;
194
- break ;
195
162
}
196
163
}
197
- return new Measurement ( processIndex , iterationMode , iterationStage , iterationIndex , op , ns , survived ) ;
164
+ return new Measurement ( processIndex , iterationMode , iterationStage , iterationIndex , op , ns ) ;
198
165
}
199
166
catch ( Exception )
200
167
{
0 commit comments