Profile Event Singleton.  
 More...
#include <ProfileEvent.h>
Profile Event Singleton. 
Definition at line 50 of file ProfileEvent.h.
◆ ProfileEventSingleton()
  
  | 
        
          | souffle::ProfileEventSingleton::ProfileEventSingleton | ( |  | ) |  |  | privatedefault | 
 
 
◆ ~ProfileEventSingleton()
  
  | 
        
          | souffle::ProfileEventSingleton::~ProfileEventSingleton | ( |  | ) |  |  | inline | 
 
 
◆ dump()
  
  | 
        
          | void souffle::ProfileEventSingleton::dump | ( |  | ) |  |  | inline | 
 
 
◆ getDB()
  
  | 
        
          | const profile::ProfileDatabase& souffle::ProfileEventSingleton::getDB | ( |  | ) | const |  | inline | 
 
 
◆ instance()
◆ makeConfigRecord()
  
  | 
        
          | void souffle::ProfileEventSingleton::makeConfigRecord | ( | const std::string & | key, |  
          |  |  | const std::string & | value |  
          |  | ) |  |  |  | inline | 
 
 
◆ makeQuantityEvent()
  
  | 
        
          | void souffle::ProfileEventSingleton::makeQuantityEvent | ( | const std::string & | txt, |  
          |  |  | size_t | number, |  
          |  |  | int | iteration |  
          |  | ) |  |  |  | inline | 
 
 
◆ makeTimeEvent()
  
  | 
        
          | void souffle::ProfileEventSingleton::makeTimeEvent | ( | const std::string & | txt | ) |  |  | inline | 
 
 
◆ makeTimingEvent()
  
  | 
        
          | void souffle::ProfileEventSingleton::makeTimingEvent | ( | const std::string & | txt, |  
          |  |  | time_point | start, |  
          |  |  | time_point | end, |  
          |  |  | size_t | startMaxRSS, |  
          |  |  | size_t | endMaxRSS, |  
          |  |  | size_t | size, |  
          |  |  | size_t | iteration |  
          |  | ) |  |  |  | inline | 
 
 
◆ makeUtilisationEvent()
  
  | 
        
          | void souffle::ProfileEventSingleton::makeUtilisationEvent | ( | const std::string & | txt | ) |  |  | inline | 
 
create utilisation event 
Definition at line 101 of file ProfileEvent.h.
  115         getrusage(RUSAGE_SELF, &ru);
 
  117         uint64_t systemTime = ru.ru_stime.tv_sec * 1000000 + ru.ru_stime.tv_usec;
 
  119         uint64_t userTime = ru.ru_utime.tv_sec * 1000000 + ru.ru_utime.tv_usec;
 
  121         size_t maxRSS = ru.ru_maxrss;
 
  125                 database, txt.c_str(), 
time, systemTime, userTime, maxRSS);
 
  136                 std::cerr << 
"Cannot open profile log file <" + 
filename + 
">";
 
 
 
 
◆ resetTimerInterval()
  
  | 
        
          | void souffle::ProfileEventSingleton::resetTimerInterval | ( | uint32_t | interval = 1 | ) |  |  | inline | 
 
 
◆ setDBFromFile()
  
  | 
        
          | void souffle::ProfileEventSingleton::setDBFromFile | ( | const std::string & | databaseFilename | ) |  |  | inline | 
 
 
◆ setOutputFile()
  
  | 
        
          | void souffle::ProfileEventSingleton::setOutputFile | ( | std::string | outputFilename | ) |  |  | inline | 
 
 
◆ startTimer()
  
  | 
        
          | void souffle::ProfileEventSingleton::startTimer | ( |  | ) |  |  | inline | 
 
 
◆ stopTimer()
  
  | 
        
          | void souffle::ProfileEventSingleton::stopTimer | ( |  | ) |  |  | inline | 
 
 
◆ database
  
  | 
        
          | profile::ProfileDatabase souffle::ProfileEventSingleton::database |  | private | 
 
 
◆ filename
  
  | 
        
          | std::string souffle::ProfileEventSingleton::filename {""} |  | private | 
 
 
◆ timer
The documentation for this class was generated from the following file: