diff --git a/onnxruntime/core/providers/vitisai/include/vaip/global_api.h b/onnxruntime/core/providers/vitisai/include/vaip/global_api.h index 6136c25810291..704b156dff57f 100644 --- a/onnxruntime/core/providers/vitisai/include/vaip/global_api.h +++ b/onnxruntime/core/providers/vitisai/include/vaip/global_api.h @@ -35,7 +35,7 @@ using EventInfo = std::tuple< int, // tid long long, // timestamp long long // duration ->; + >; void profiler_collect( std::vector& api_events, std::vector& kernel_events); diff --git a/onnxruntime/core/providers/vitisai/vitisai_profiler.cc b/onnxruntime/core/providers/vitisai/vitisai_profiler.cc index a828dfcce951a..d84507ec6ad02 100644 --- a/onnxruntime/core/providers/vitisai/vitisai_profiler.cc +++ b/onnxruntime/core/providers/vitisai/vitisai_profiler.cc @@ -13,9 +13,8 @@ bool VitisaiProfiler::StartProfiling(TimePoint tp) { } void VitisaiProfiler::EndProfiling(TimePoint tp, Events& events) { - auto time_point = - std::chrono::duration_cast(tp.time_since_epoch()).count(); + std::chrono::duration_cast(tp.time_since_epoch()).count(); std::vector api_events; std::vector kernel_events; @@ -25,11 +24,11 @@ void VitisaiProfiler::EndProfiling(TimePoint tp, Events& events) { for (auto& a : api_events) { events.emplace_back(EventCategory::API_EVENT, - std::get<1>(a), // pid - std::get<2>(a), // tid - std::get<0>(a), // name - std::get<3>(a) - time_point, // timestamp - std::get<4>(a), // duration + std::get<1>(a), // pid + std::get<2>(a), // tid + std::get<0>(a), // name + std::get<3>(a) - time_point, // timestamp + std::get<4>(a), // duration event_args); }