OmniSciDB  b28c0d5765
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger::EraseDurationTrees Struct Reference

Depth-first search and erase all DurationTrees. Not thread-safe. More...

+ Inheritance diagram for logger::EraseDurationTrees:
+ Collaboration diagram for logger::EraseDurationTrees:

Public Member Functions

void operator() (DurationTreeMap::const_iterator const &itr) const
 
void operator() (Duration const &) const
 
void operator() (DurationTree const &duration_tree) const
 

Detailed Description

Depth-first search and erase all DurationTrees. Not thread-safe.

Definition at line 730 of file Logger.cpp.

Member Function Documentation

void logger::EraseDurationTrees::operator() ( DurationTreeMap::const_iterator const &  itr) const
inline

Definition at line 731 of file Logger.cpp.

References logger::g_duration_tree_map.

731  {
732  for (auto const& duration_tree_node : itr->second->durations()) {
733  apply_visitor(*this, duration_tree_node);
734  }
735  g_duration_tree_map.erase(itr);
736  }
DurationTreeMap g_duration_tree_map
Definition: Logger.cpp:596
void logger::EraseDurationTrees::operator() ( Duration const &  ) const
inline

Definition at line 737 of file Logger.cpp.

737 {}
void logger::EraseDurationTrees::operator() ( DurationTree const &  duration_tree) const
inline

Definition at line 738 of file Logger.cpp.

References logger::DurationTree::durations(), logger::g_duration_tree_map, and logger::DurationTree::thread_id_.

738  {
739  for (auto const& duration_tree_node : duration_tree.durations()) {
740  apply_visitor(*this, duration_tree_node);
741  }
742  g_duration_tree_map.erase(duration_tree.thread_id_);
743  }
DurationTreeMap g_duration_tree_map
Definition: Logger.cpp:596

+ Here is the call graph for this function:


The documentation for this struct was generated from the following file: