Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Namespaces | Typedefs | Functions
PerfMonMTUtils.h File Reference
#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>
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 30 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 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-()

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

Definition at line 404 of file PerfMonMTUtils.h.

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