48 #include "Kokkos_Core.hpp"
54 kokkos_region_active_(false)
60 kokkos_region_active_ =
false;
62 kokkos_region_active_ =
true;
63 ::Kokkos::Profiling::pushRegion(name);
66 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
71 kokkos_region_active_ =
false;
76 kokkos_region_active_ =
true;
77 ::Kokkos::Profiling::pushRegion(name);
80 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
86 ::Kokkos::Profiling::popRegion();
static bool timing()
Whether Tpetra is in timing mode.
Declaration of Tpetra::Details::Profiling, a scope guard for Kokkos Profiling.
ProfilingRegion()
Default constructor does not construct a region.
static bool profilingRegionUseTeuchosTimers()
Use Teuchos::Timer in Tpetra::ProfilingRegion.
static bool profilingRegionUseKokkosProfiling()
Use Kokkos::Profiling in Tpetra::ProfilingRegion.
~ProfilingRegion()
Close region to profile.
Declaration of Tpetra::Details::Behavior, a class that describes Tpetra's behavior.