48 #include "Kokkos_Core.hpp"
55 ::Kokkos::Profiling::pushRegion(name);
57 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
66 ::Kokkos::Profiling::pushRegion(name);
68 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
74 ::Kokkos::Profiling::popRegion();
Declaration of Tpetra::Details::Behavior, a class that describes Tpetra's behavior.
Declaration of Tpetra::Details::Profiling, a scope guard for Kokkos Profiling.
static bool timing()
Whether Tpetra is in timing mode.
static bool profilingRegionUseTeuchosTimers()
Use Teuchos::Timer in Tpetra::ProfilingRegion.
static bool profilingRegionUseKokkosProfiling()
Use Kokkos::Profiling in Tpetra::ProfilingRegion.
~ProfilingRegion()
Close region to profile.
ProfilingRegion(const char name[])
Open region to profile; name the region name.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.