Clang-tidy performance error fixes (#411)

Fixes perf errors + ambiguity issues raised by clang-tidy

[ROCm/rocprofiler-sdk commit: 75264b5587]
Šī revīzija ir iekļauta:
Benjamin Welton
2024-01-26 10:19:18 -08:00
revīziju iesūtīja GitHub
vecāks 07d551b5cb
revīzija 24c8d296ba
6 mainīti faili ar 21 papildinājumiem un 21 dzēšanām
@@ -28,6 +28,8 @@
#include <unordered_map>
#include <vector>
#include <glog/logging.h>
#include "lib/rocprofiler-sdk/pc_sampling/parser/translation.hpp"
template <>
@@ -258,8 +260,8 @@ _parse_buffer(generic_sample_t* buffer,
break;
}
default:
std::cerr << "Index " << index << " - Invalid sample type: " << buffer[index].type
<< std::endl;
LOG(WARNING) << "Index " << index
<< " - Invalid sample type: " << buffer[index].type << "\n";
return PCSAMPLE_STATUS_INVALID_SAMPLE;
}
}