Toggle table of contents sidebar
Profiling::ProfilingSection
¶
Defined in header <Kokkos_Profiling_ProfileSection.hpp>
Kokkos::Profiling::ProfilingSection section("label"); section.start(); // <code> section.stop();
The class ProfilingSection
is a section ID wrapper that provides a convenient RAII-style mechanism to manage a user-defined profiling section.
When a ProfilingSection
object is created, a profiling section is created with the user-provided string, and the objects holds on to the section ID.
When control leaves the scope in which the ProfilingSection
object was created, the ProfilingSection
is destructed, and the underlying section is properly destroyed.
The ProfilingSection
class is non-copyable.
Constructs a section with user-provided label. Calls Profiling::createProfileSection(sectionName, §ionID);
Deletes the section. Calls Profiling.destroyProfileSection(sectionID);
Starts the section. Calls Profiling::startSection(sectionID);
Ends the section. Calls Profiling::stopSection(sectionID);
See also
ScopedRegion: implements a scope-based region ownership wrapper
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4