A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kokkos.github.io/kokkos-core-wiki/API/core/profiling/profiling_section.html below:

Profiling::ProfilingSection - Kokkos documentation

Toggle table of contents sidebar

Profiling::ProfilingSection

Defined in header <Kokkos_Profiling_ProfileSection.hpp>

Usage
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.

ProfilingSection(std::string const &sectionName);

Constructs a section with user-provided label. Calls Profiling::createProfileSection(sectionName, &sectionID);

~ProfilingSection();

Deletes the section. Calls Profiling.destroyProfileSection(sectionID);

void start();

Starts the section. Calls Profiling::startSection(sectionID);

void stop();

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