kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher Struct Reference

Matcher to select events that occur within a profile section. More...

#include <EventInProfileSectionRegexMatcher.hpp>

Public Member Functions

bool operator() (const CreateProfileSectionEvent &event)
 
bool operator() (const StartProfileSectionEvent &event)
 
bool operator() (const StopProfileSectionEvent &event)
 
template<Event EventType>
bool operator() (const EventType &) const
 

Public Attributes

std::regex regex
 
uint32_t section_id = invalid_section_id
 
bool recording = false
 

Static Public Attributes

static constexpr uint32_t invalid_section_id = Kokkos::Experimental::finite_max_v<uint32_t>
 

Detailed Description

Matcher to select events that occur within a profile section.

The profile section is selected by matching its name to a regular expression.

Definition at line 18 of file EventInProfileSectionRegexMatcher.hpp.

Member Function Documentation

◆ operator()() [1/4]

bool Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::operator() ( const CreateProfileSectionEvent & event)
inline

Definition at line 22 of file EventInProfileSectionRegexMatcher.hpp.

◆ operator()() [2/4]

template<Event EventType>
bool Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::operator() ( const EventType & ) const
inline

Definition at line 45 of file EventInProfileSectionRegexMatcher.hpp.

◆ operator()() [3/4]

bool Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::operator() ( const StartProfileSectionEvent & event)
inline

Definition at line 32 of file EventInProfileSectionRegexMatcher.hpp.

◆ operator()() [4/4]

bool Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::operator() ( const StopProfileSectionEvent & event)
inline

Definition at line 38 of file EventInProfileSectionRegexMatcher.hpp.

Member Data Documentation

◆ invalid_section_id

uint32_t Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::invalid_section_id = Kokkos::Experimental::finite_max_v<uint32_t>
staticconstexpr

Definition at line 20 of file EventInProfileSectionRegexMatcher.hpp.

◆ recording

bool Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::recording = false

Definition at line 51 of file EventInProfileSectionRegexMatcher.hpp.

◆ regex

std::regex Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::regex

Definition at line 49 of file EventInProfileSectionRegexMatcher.hpp.

◆ section_id

uint32_t Kokkos::utils::callbacks::EventInProfileSectionRegexMatcher::section_id = invalid_section_id

Definition at line 50 of file EventInProfileSectionRegexMatcher.hpp.


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