1#ifndef KOKKOS_UTILS_CALLBACKS_SEQUENCEOFREGIONTIMERLISTENER_HPP
2#define KOKKOS_UTILS_CALLBACKS_SEQUENCEOFREGIONTIMERLISTENER_HPP
17template <Matcher MatcherType>
25 template <
typename... Ms>
27 :
matchers{std::forward<Ms>(matchers_)...},
Pop-region event associated with Kokkos::Tools::Experimental::EventSet::pop_region.
Push-region event associated with Kokkos::Tools::Experimental::EventSet::push_region.
Timer listener for a profiling region that matches MatcherType.
EventTypeMatcher< region_matcher_t, PushRegionEvent, PopRegionEvent > matcher_t
std::vector< matcher_t > matchers
SequenceOfRegionTimerListener(Ms &&... matchers_)
std::vector< timer_t > timers
RegionTimerListener< MatcherType > region_timer_t
typename region_timer_t::matcher_t matcher_t
void operator()(const PushRegionEvent &event)
Deal with a Kokkos::utils::callbacks::PushRegionEvent event. Only the current timer is auditioned.
bool all_matched() const
Returns true if all regions were correctly matched and timed.
typename region_timer_t::timer_t timer_t
void operator()(const PopRegionEvent &event)
Deal with a Kokkos::utils::callbacks::PopRegionEvent event. If the current timer matches,...