48 #include "Kokkos_Core.hpp"
54 #if defined(KOKKOS_ENABLE_PROFILING)
56 ::Kokkos::Profiling::pushRegion(name);
59 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
67 #if defined(KOKKOS_ENABLE_PROFILING)
69 ::Kokkos::Profiling::pushRegion(name);
72 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
77 #if defined(KOKKOS_ENABLE_PROFILING)
79 ::Kokkos::Profiling::popRegion();
static bool timing()
Whether Tpetra is in timing mode.
Declaration of Tpetra::Details::Profiling, a scope guard for Kokkos Profiling.
static bool profilingRegionUseTeuchosTimers()
Use Teuchos::Timer in Tpetra::ProfilingRegion.
ProfilingRegion(const char name[])
Open region to profile; name the region name.
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.