#include "CxxUtils/checker_macros.h"
#include <dlfcn.h>
#include <fcntl.h>
#include <malloc.h>
#include <sys/stat.h>
#include <chrono>
#include <cstdint>
#include <ctime>
#include <fstream>
#include <map>
#include <string>
Go to the source code of this file.
◆ MemoryMap_t
◆ ATLAS_NOT_THREAD_SAFE()
| double PMonMT::get_malloc_kb ATLAS_NOT_THREAD_SAFE |
( |
void | | ) |
|
|
inline |
Install fatal handler with default options.
This is meant to be easy to call from python via ctypes.
Install fatal handler with default options.
Definition at line 423 of file PerfMonMTUtils.h.
423 {
424#ifndef __linux
425 return 0.0;
426#else
427 struct mallinfo2
m = mallinfo2();
428 return (
m.uordblks+
m.hblkhd)/1024.0;
429#endif
430}
◆ operator-()
Definition at line 404 of file PerfMonMTUtils.h.
404 {
406 for (const auto& it : map1) {
407 result_map[
it.first] = map1.at(
it.first) - map2.at(
it.first);
408 }
409 return result_map;
410}
std::map< std::string, int64_t > MemoryMap_t