52 typedef MultiMapLog2Int::iterator
DelIter;
75 { DeletedRelLogs_.insert(std::make_pair(le, gen_num)); }
78 template<
class T>
void trace(T s)
79 { TraceStream_ << s; }
82 { TotalGraphBuildTime_ += inc; }
84 { TotalGraphResolveTime_ += inc; }
86 { TotalPruneTime_ += inc; }
98 #if defined(_NVM_TRACE) || defined(_NVM_VERBOSE_TRACE) 99 TraceStream_{
"/tmp/atlas_log_pruner.txt"},
101 TotalGraphBuildTime_{0},
102 TotalGraphResolveTime_{0},
105 #if defined(_NVM_TRACE) || defined(_NVM_VERBOSE_TRACE) 106 assert(TraceStream_ &&
"Error opening trace file");
111 #if defined(_NVM_TRACE) || defined(_NVM_VERBOSE_TRACE) 112 TraceStream_.close();
119 LogVersions LogVersions_;
120 MultiMapLog2Int DeletedRelLogs_;
121 MapLog2Int ExistingRelMap_;
122 std::ofstream TraceStream_;
125 uint64_t TotalGraphBuildTime_;
126 uint64_t TotalGraphResolveTime_;
127 uint64_t TotalPruneTime_;
130 bool areUserThreadsDone()
const
Log2Bool Del_
Definition: helper.hpp:46
void incrementTotalGraphResolveTime(uint64_t inc)
Definition: helper.hpp:83
Definition: log_structure.hpp:30
MultiMapLog2Int::iterator DelIter
Definition: helper.hpp:52
static Helper & createInstance()
Definition: helper.hpp:54
std::map< LogEntry *, bool > Log2Bool
Definition: helper.hpp:32
void addEntryToDeletedMap(LogEntry *le, uint64_t gen_num)
Definition: helper.hpp:74
static Helper & getInstance()
Definition: helper.hpp:66
void trace(T s)
Definition: helper.hpp:78
std::vector< LogVer > LogVersions
Definition: helper.hpp:49
std::map< LogEntry *, uint64_t > MapLog2Int
Definition: helper.hpp:50
Definition: helper.hpp:35
void incrementTotalGraphBuildTime(uint64_t inc)
Definition: helper.hpp:81
bool areUserThreadsDone() const
Definition: log_mgr.hpp:154
LogStructure * LS_
Definition: helper.hpp:45
void incrementTotalPruneTime(uint64_t inc)
Definition: helper.hpp:85
static void deleteInstance()
Definition: helper.hpp:60
uint64_t get_iter_num() const
Definition: helper.hpp:71
static LogMgr & getInstance()
Definition: log_mgr.hpp:75
bool isDeletedByHelperThread(LogEntry *le, uint64_t gen_num)
Definition: helper_driver.cpp:144
Definition: log_structure.hpp:77
std::multimap< LogEntry *, uint64_t > MultiMapLog2Int
Definition: helper.hpp:51
void printStats()
Definition: helper_driver.cpp:161
Definition: helper.hpp:40
LogVer(LogStructure *ls, Log2Bool del_logs)
Definition: helper.hpp:41
Definition: atlas_alloc_cpp.hpp:21
void doConsistentUpdate(void *)
Definition: helper_driver.cpp:76