ATLAS Offline Software
Classes | Namespaces | Typedefs | Functions
PerfMonMTUtils.h File Reference
#include "CxxUtils/checker_macros.h"
#include "PerfMonEvent/mallinfo.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>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PMonMT::StepComp
 
struct  PMonMT::ComponentMeasurement
 
struct  PMonMT::ComponentData
 
struct  PMonMT::SnapshotMeasurement
 
struct  PMonMT::EventLevelData
 
struct  PMonMT::SnapshotData
 

Namespaces

 PMonMT
 

Typedefs

typedef std::map< std::string, int64_t > MemoryMap_t
 

Functions

MemoryMap_t operator- (const MemoryMap_t &map1, const MemoryMap_t &map2)
 
double PMonMT::get_thread_cpu_time ()
 
double PMonMT::get_process_cpu_time ()
 
double PMonMT::get_wall_time ()
 
MemoryMap_t PMonMT::get_mem_stats ()
 
double PMonMT::get_vmem ()
 
bool PMonMT::doesDirectoryExist (const std::string &dir)
 
double get_malloc_kb PMonMT::ATLAS_NOT_THREAD_SAFE ()
 
const char * PMonMT::symb2lib (const char *symbol, const char *failstr)
 
double PMonMT::get_malloc_kb ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Typedef Documentation

◆ MemoryMap_t

typedef std::map<std::string, int64_t> MemoryMap_t

Definition at line 31 of file PerfMonMTUtils.h.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

double PMonMT::get_malloc_kb ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Definition at line 424 of file PerfMonMTUtils.h.

424  {
425 #ifndef __linux
426  return 0.0;
427 #else
429  return (m.uordblks+m.hblkhd)/1024.0;
430 #endif
431 }

◆ operator-()

MemoryMap_t operator- ( const MemoryMap_t map1,
const MemoryMap_t map2 
)
inline

Definition at line 405 of file PerfMonMTUtils.h.

405  {
406  MemoryMap_t result_map;
407  for (auto it : map1) {
408  result_map[it.first] = map1.at(it.first) - map2.at(it.first);
409  }
410  return result_map;
411 }
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
skel.it
it
Definition: skel.GENtoEVGEN.py:396
PerfMon::mallinfo
mallinfo_t mallinfo()
Definition: mallinfo.h:29
PerfMon::mallinfo_t
struct mallinfo mallinfo_t
Definition: mallinfo.h:28
MemoryMap_t
std::map< std::string, int64_t > MemoryMap_t
Definition: PerfMonMTUtils.h:31