Fixing Clang tidy errors (#195)
* Fixing Clang tidy errors * format-fix * Update code_object.hpp * Clang Tidy Fixes on the whole Source folder * Update source/CMakeLists.txt Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Addressing reviews * Correcting the logic for parsing att counters * Format Fix * Update source/lib/rocprofiler-sdk-att/tests/dummy_decoder.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk-att/tests/standalone_tool_main.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk-tool/config.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Formatting * Deactivate clang-tidy in source/lib/rocprofiler-sdk-att/tests --------- Co-authored-by: Ammar ELWazir <aelwazir@amd.com> Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
This commit is contained in:
@@ -73,18 +73,20 @@ convert(const att_occupancy_info_v2_t& v2)
|
||||
return v1.raw;
|
||||
};
|
||||
|
||||
namespace OccupancyFile
|
||||
{
|
||||
void
|
||||
OccupancyFile::OccupancyFile(const Fspath& dir,
|
||||
std::shared_ptr<AddressTable> table,
|
||||
const std::map<size_t, std::vector<att_occupancy_info_v2_t>>& occ)
|
||||
OccupancyFile(const Fspath& dir,
|
||||
std::shared_ptr<AddressTable>& table,
|
||||
const std::map<size_t, std::vector<att_occupancy_info_v2_t>>& occ)
|
||||
{
|
||||
if(!GlobalDefs::get().has_format("json")) return;
|
||||
nlohmann::json jocc;
|
||||
|
||||
for(auto& [se, eventlist] : occ)
|
||||
for(const auto& [se, eventlist] : occ)
|
||||
{
|
||||
nlohmann::json list;
|
||||
for(auto& event : eventlist)
|
||||
for(const auto& event : eventlist)
|
||||
list.push_back(convert(event));
|
||||
jocc[std::to_string(se)] = list;
|
||||
}
|
||||
@@ -104,6 +106,7 @@ OccupancyFile::OccupancyFile(const Fspath&
|
||||
|
||||
OutputFile(dir / "occupancy.json") << jocc;
|
||||
}
|
||||
} // namespace OccupancyFile
|
||||
|
||||
} // namespace att_wrapper
|
||||
} // namespace rocprofiler
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user