16 #include "Kokkos_Core.hpp"
22 kokkos_region_active_(false)
28 kokkos_region_active_ =
false;
30 kokkos_region_active_ =
true;
31 ::Kokkos::Profiling::pushRegion(name);
34 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
39 kokkos_region_active_ =
false;
44 kokkos_region_active_ =
true;
45 ::Kokkos::Profiling::pushRegion(name);
48 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
54 ::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.