@@ -29,16 +29,6 @@ public PerformanceMetric getFrameDurationReceiveToSent() {
29
29
}
30
30
private PerformanceMetric frameDurationReceiveToSent ;
31
31
32
- /**
33
- * Duration of a frame cycle originating at
34
- * the time when JBWAPI observes a new frame in shared memory.
35
- * Uses GetTickCount() instead of System.nanoRime()
36
- */
37
- public PerformanceMetric getFrameDurationReceiveToSentGTC () {
38
- return frameDurationReceiveToSentGTC ;
39
- }
40
- private PerformanceMetric frameDurationReceiveToSentGTC ;
41
-
42
32
/**
43
33
* Duration of a frame cycle originating at
44
34
* the time when JBWAPI observes a new frame in shared memory.
@@ -48,16 +38,6 @@ public PerformanceMetric getFrameDurationReceiveToReceive() {
48
38
}
49
39
private PerformanceMetric frameDurationReceiveToReceive ;
50
40
51
- /**
52
- * Duration of a frame cycle originating at
53
- * the time when JBWAPI observes a new frame in shared memory.
54
- * Uses GetTickCount() instead of System.nanoRime()
55
- */
56
- public PerformanceMetric getFrameDurationReceiveToReceiveGTC () {
57
- return frameDurationReceiveToReceiveGTC ;
58
- }
59
- private PerformanceMetric frameDurationReceiveToReceiveGTC ;
60
-
61
41
/**
62
42
* Time spent copying game data from system pipe shared memory to a frame buffer.
63
43
* Applicable only in asynchronous mode.
@@ -188,19 +168,6 @@ public PerformanceMetric getNumberOfEventsTimesDurationReceiveToSent() {
188
168
}
189
169
PerformanceMetric numberOfEventsTimesDurationReceiveToSent ;
190
170
191
- /**
192
- * The number of events sent by BWAPI each frame,
193
- * multiplied by the duration of time spent on that frame (receive-to-sent),
194
- * and using GetTickCount() instead of System.nanoTime().
195
- * Helps detect use of broken BWAPI 4.4 tournament modules, with respect to:
196
- * * - https://github.com/bwapi/bwapi/issues/860
197
- * * - https://github.com/davechurchill/StarcraftAITournamentManager/issues/42
198
- */
199
- public PerformanceMetric getNumberOfEventsTimesDurationReceiveToSentGTC () {
200
- return numberOfEventsTimesDurationReceiveToSentGTC ;
201
- }
202
- PerformanceMetric numberOfEventsTimesDurationReceiveToSentGTC ;
203
-
204
171
private BWClientConfiguration configuration ;
205
172
private ArrayList <PerformanceMetric > performanceMetrics = new ArrayList <>();
206
173
@@ -216,9 +183,7 @@ public void reset() {
216
183
performanceMetrics .clear ();
217
184
frameDurationReceiveToSend = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> before sending 'frame done'" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
218
185
frameDurationReceiveToSent = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> after sending 'frame done'" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
219
- frameDurationReceiveToSentGTC = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> after sending 'frame done' (Using GetTickCount())" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 ).useGetTickCount ();
220
186
frameDurationReceiveToReceive = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> receiving next 'frame ready'" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
221
- frameDurationReceiveToReceiveGTC = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> receiving next 'frame ready' (Using GetTickCount())" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 ).useGetTickCount ();
222
187
communicationSendToReceive = new PerformanceMetric (this , "BWAPI duration: Before sending 'frame done' -> After receiving 'frame ready'" , 1 , 3 , 5 , 10 , 15 , 20 , 30 );
223
188
communicationSendToSent = new PerformanceMetric (this , "BWAPI duration: Before sending 'frame done' -> After sending 'frame done'" , 1 , 3 , 5 , 10 , 15 , 20 , 30 );
224
189
communicationListenToReceive = new PerformanceMetric (this , "BWAPI duration: Before listening for 'frame ready' -> After receiving 'frame ready'" , 1 , 3 , 5 , 10 , 15 , 20 , 30 );
@@ -233,7 +198,6 @@ public void reset() {
233
198
excessSleep = new PerformanceMetric (this , "Excess duration of client sleep" , 1 , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
234
199
numberOfEvents = new PerformanceMetric (this , "Number of events received from BWAPI" , 1 , 2 , 3 , 4 , 5 , 6 , 8 , 10 , 15 , 20 );
235
200
numberOfEventsTimesDurationReceiveToSent = new PerformanceMetric (this , "Number of events received from BWAPI, multiplied by the receive-to-sent duration of that frame" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
236
- numberOfEventsTimesDurationReceiveToSentGTC = new PerformanceMetric (this , "Number of events received from BWAPI, multiplied by the receive-to-sent duration of that frame (Using GetTickCount())" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
237
201
}
238
202
239
203
void addMetric (PerformanceMetric performanceMetric ) {
0 commit comments