@@ -227,10 +227,10 @@ inline void ActivityProfiler::handleCorrelationActivity(
227227}
228228#endif // HAS_CUPTI
229229
230- const libkineto::ClientTraceActivity &
231- ActivityProfiler::ExternalEventMap::getClientTraceActivity (
230+ const libkineto::GenericTraceActivity &
231+ ActivityProfiler::ExternalEventMap::getGenericTraceActivity (
232232 uint32_t id, CorrelationFlowType flowType) {
233- static const libkineto::ClientTraceActivity nullOp_{};
233+ static const libkineto::GenericTraceActivity nullOp_{};
234234
235235 auto & correlationMap = getCorrelationMap (flowType);
236236
@@ -245,7 +245,7 @@ ActivityProfiler::ExternalEventMap::getClientTraceActivity(
245245}
246246
247247void ActivityProfiler::ExternalEventMap::insertEvent (
248- const libkineto::ClientTraceActivity * op) {
248+ const libkineto::GenericTraceActivity * op) {
249249 if (events_[op->correlationId ()] != nullptr ) {
250250 LOG_EVERY_N (WARNING, 100 )
251251 << " Events processed out of order - link will be missing" ;
@@ -269,12 +269,12 @@ static void initUserGpuSpan(GenericTraceActivity& userTraceActivity,
269269 const libkineto::TraceActivity& cpuTraceActivity,
270270 const libkineto::TraceActivity& gpuTraceActivity) {
271271 userTraceActivity.device = gpuTraceActivity.deviceId ();
272- userTraceActivity.resource = gpuTraceActivity.resourceId ();
273272 userTraceActivity.startTime = gpuTraceActivity.timestamp ();
273+ userTraceActivity.sysThreadId = gpuTraceActivity.timestamp ();
274274 userTraceActivity.endTime = gpuTraceActivity.timestamp () + gpuTraceActivity.duration ();
275275 userTraceActivity.correlation = cpuTraceActivity.correlationId ();
276276 userTraceActivity.activityType = cpuTraceActivity.type ();
277- userTraceActivity.activityName = cpuTraceActivity.name ();
277+ userTraceActivity.opType = cpuTraceActivity.name ();
278278}
279279
280280void ActivityProfiler::GpuUserEventMap::insertOrExtendEvent (
@@ -330,8 +330,8 @@ inline void ActivityProfiler::handleRuntimeActivity(
330330 VLOG (2 ) << activity->correlationId
331331 << " : CUPTI_ACTIVITY_KIND_RUNTIME, cbid=" << activity->cbid
332332 << " tid=" << activity->threadId ;
333- const ClientTraceActivity & ext =
334- externalEvents_.getClientTraceActivity (activity->correlationId ,
333+ const GenericTraceActivity & ext =
334+ externalEvents_.getGenericTraceActivity (activity->correlationId ,
335335 ExternalEventMap::CorrelationFlowType::Default);
336336 int32_t tid = activity->threadId ;
337337 const auto & it = threadInfo_.find (tid);
@@ -396,8 +396,8 @@ inline void ActivityProfiler::handleGpuActivity(
396396 if (!loggingDisabled (ext)) {
397397 act.log (*logger);
398398 updateGpuNetSpan (act);
399- const ClientTraceActivity & extUser =
400- externalEvents_.getClientTraceActivity (act.correlationId (),
399+ const GenericTraceActivity & extUser =
400+ externalEvents_.getGenericTraceActivity (act.correlationId (),
401401 ExternalEventMap::CorrelationFlowType::User);
402402 // Correlated CPU activity cannot have timestamp greater than the GPU activity's
403403 if (!timestampsInCorrectOrder (extUser, act)) {
@@ -414,7 +414,7 @@ inline void ActivityProfiler::handleGpuActivity(
414414
415415template <class T >
416416inline void ActivityProfiler::handleGpuActivity (const T* act, ActivityLogger* logger) {
417- const ClientTraceActivity & extDefault = externalEvents_.getClientTraceActivity (act->correlationId ,
417+ const GenericTraceActivity & extDefault = externalEvents_.getGenericTraceActivity (act->correlationId ,
418418 ExternalEventMap::CorrelationFlowType::Default);
419419 handleGpuActivity (GpuActivity<T>(act, extDefault), logger);
420420}
0 commit comments