- Serialize memory maps
 - Utilize tim::utility::procfs::cpuinfo::freq in cpu_freqs.cpp

[ROCm/rocprofiler-systems commit: c2b206ba28]
Этот коммит содержится в:
Jonathan R. Madsen authored and GitHub committed 2022-05-19 16:07:11 -05:00
1 родитель 358a3a7e36
Коммит cab75263f4
3 files changed
+111 -98

No files matched your search

+14
Просмотреть файл
@@ -41,6 +41,8 @@
#include "library/thread_sampler.hpp"
#include "library/timemory.hpp"
#include <timemory/utility/procfs/maps.hpp>
#include <atomic>
#include <mutex>
#include <string_view>
@@ -1291,6 +1293,18 @@ omnitrace_finalize_hidden(void)
coverage::post_process();
}
tim::manager::instance()->add_metadata([](auto& ar) {
auto _maps = tim::procfs::read_maps(process::get_id());
auto _libs = std::set<std::string>{};
for(auto& itr : _maps)
{
auto&& _path = itr.pathname;
if(!_path.empty() && _path.at(0) != '[') _libs.emplace(_path);
}
ar(tim::cereal::make_nvp("memory_maps_files", _libs),
tim::cereal::make_nvp("memory_maps", _maps));
});
OMNITRACE_VERBOSE_F(1, "Finalizing timemory...\n");
tim::timemory_finalize();