Time a sequence of push/pop regions. More...
#include <SequenceOfRegionTimerListener.hpp>
Public Types | |
using | region_timer_t = RegionTimerListener<MatcherType> |
using | matcher_t = typename region_timer_t::matcher_t |
using | timer_t = typename region_timer_t::timer_t |
Public Member Functions | |
template<typename... Ms> | |
SequenceOfRegionTimerListener (Ms &&... matchers_) | |
void | reset () |
bool | all_matched () const |
Returns true if all regions were correctly matched and timed. | |
void | operator() (const PushRegionEvent &event) |
Deal with a Kokkos::utils::callbacks::PushRegionEvent event. Only the current timer is auditioned. | |
void | operator() (const PopRegionEvent &event) |
Deal with a Kokkos::utils::callbacks::PopRegionEvent event. If the current timer matches, current is incremented. | |
Public Attributes | |
std::vector< matcher_t > | matchers |
std::vector< timer_t > | timers |
Private Attributes | |
size_t | current = 0 |
Time a sequence of push/pop regions.
The regions of interest must not be interleaved.
Definition at line 18 of file SequenceOfRegionTimerListener.hpp.
using Kokkos::utils::callbacks::SequenceOfRegionTimerListener< MatcherType >::matcher_t = typename region_timer_t::matcher_t |
Definition at line 22 of file SequenceOfRegionTimerListener.hpp.
using Kokkos::utils::callbacks::SequenceOfRegionTimerListener< MatcherType >::region_timer_t = RegionTimerListener<MatcherType> |
Definition at line 21 of file SequenceOfRegionTimerListener.hpp.
using Kokkos::utils::callbacks::SequenceOfRegionTimerListener< MatcherType >::timer_t = typename region_timer_t::timer_t |
Definition at line 23 of file SequenceOfRegionTimerListener.hpp.
|
inlineexplicit |
Definition at line 26 of file SequenceOfRegionTimerListener.hpp.
|
inline |
Returns true
if all regions were correctly matched and timed.
Definition at line 34 of file SequenceOfRegionTimerListener.hpp.
|
inline |
Deal with a Kokkos::utils::callbacks::PopRegionEvent event. If the current timer matches, current is incremented.
Definition at line 50 of file SequenceOfRegionTimerListener.hpp.
|
inline |
Deal with a Kokkos::utils::callbacks::PushRegionEvent event. Only the current timer is auditioned.
Definition at line 39 of file SequenceOfRegionTimerListener.hpp.
|
inline |
Definition at line 31 of file SequenceOfRegionTimerListener.hpp.
|
private |
Definition at line 68 of file SequenceOfRegionTimerListener.hpp.
std::vector<matcher_t> Kokkos::utils::callbacks::SequenceOfRegionTimerListener< MatcherType >::matchers |
Definition at line 64 of file SequenceOfRegionTimerListener.hpp.
std::vector<timer_t> Kokkos::utils::callbacks::SequenceOfRegionTimerListener< MatcherType >::timers |
Definition at line 65 of file SequenceOfRegionTimerListener.hpp.