File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -264,27 +264,14 @@ void MuptiActivityProfiler::processTraceInternal(ActivityLogger& logger) {
264
264
addOverheadSample (flushOverhead_, mupti_.flushOverhead );
265
265
}
266
266
if (traceBuffers_->gpu ) {
267
- auto count_and_size1 = mupti_.processActivities (
267
+ auto count_and_size = mupti_.processActivities (
268
268
*traceBuffers_->gpu ,
269
269
std::bind (
270
270
&MuptiActivityProfiler::handleMuptiActivity,
271
271
this ,
272
272
std::placeholders::_1,
273
273
&logger));
274
274
275
- // Wait for mupti buffer write
276
- std::this_thread::sleep_for (seconds (3 ));
277
- auto count_and_size2 = mupti_.processActivities (
278
- *traceBuffers_->gpu ,
279
- std::bind (
280
- &MuptiActivityProfiler::handleMuptiActivity,
281
- this ,
282
- std::placeholders::_1,
283
- &logger));
284
- std::pair<int , size_t > count_and_size{0 , 0 };
285
- count_and_size.first = count_and_size1.first + count_and_size2.first ;
286
- count_and_size.second = count_and_size1.second + count_and_size2.second ;
287
-
288
275
LOG (INFO) << " Processed " << count_and_size.first << " GPU records ("
289
276
<< count_and_size.second << " bytes)" ;
290
277
LOGGER_OBSERVER_ADD_EVENT_COUNT (count_and_size.first );
You can’t perform that action at this time.
0 commit comments