OmniSciDB  2e3a973ef4
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 659 of file Logger.cpp.

Member Function Documentation

◆ operator()() [1/3]

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

Definition at line 660 of file Logger.cpp.

References logger::g_duration_tree_map.

660  {
661  for (auto const& duration_tree_node : itr->second->durations()) {
662  apply_visitor(*this, duration_tree_node);
663  }
664  g_duration_tree_map.erase(itr);
665  }
DurationTreeMap g_duration_tree_map
Definition: Logger.cpp:525

◆ operator()() [2/3]

void logger::EraseDurationTrees::operator() ( Duration const &  ) const
inline

Definition at line 666 of file Logger.cpp.

666 {}

◆ operator()() [3/3]

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

Definition at line 667 of file Logger.cpp.

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

667  {
668  for (auto const& duration_tree_node : duration_tree.durations()) {
669  apply_visitor(*this, duration_tree_node);
670  }
671  g_duration_tree_map.erase(duration_tree.thread_id_);
672  }
DurationTreeMap g_duration_tree_map
Definition: Logger.cpp:525
+ Here is the call graph for this function:

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