Skip to content

Commit

Permalink
[Encode] Fix memory growth when perf utility tool is not enabled (#5324)
Browse files Browse the repository at this point in the history
Co-authored-by: walter-bai <walter.bai@intel.com>
  • Loading branch information
2 people authored and Sherry-Lin committed Jun 20, 2023
1 parent 8a5e77a commit b2af8d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _studio/shared/mfx_logging/src/mfx_utils_perf.cpp
Expand Up @@ -71,6 +71,11 @@ std::map<uint64_t, std::vector<uint32_t>> AutoPerfUtility::tid2taskIds;

void AutoPerfUtility::SetTaskId(uint32_t id)
{
if (!g_perfutility->dwPerfUtilityIsEnabled)
{
return;
}

uint64_t tid = pthread_self();

decltype(tid2taskIds)::iterator it;
Expand Down

0 comments on commit b2af8d1

Please sign in to comment.