Ginkgo: gko::log::profiling_scope_guard Class Reference

| Ginkgo Generated from branch based on main. Ginkgo version 1.11.0 A numerical linear algebra library targeting many-core architectures

Loading...
Searching...
No Matches
gko::log::profiling_scope_guard Class Reference

Scope guard that annotates its scope with the provided profiler hooks. More...

`#include <ginkgo/core/log/profiler_hook.hpp>`

## Public Member Functions
| profiling_scope_guard ()
| Creates an empty (moved-from) scope guard.
| profiling_scope_guard (const char *name, profile_event_category category, ProfilerHook::hook_function begin, ProfilerHook::hook_function end)
| Creates the scope guard.
| ~profiling_scope_guard ()
| Calls the range end function if the scope guard was not moved from.
| profiling_scope_guard (const profiling_scope_guard &)=delete
| profiling_scope_guard (profiling_scope_guard &&other)=delete
profiling_scope_guard & | operator= (const profiling_scope_guard &)=delete
profiling_scope_guard & | operator= (profiling_scope_guard &&)=delete

## Detailed Description

Scope guard that annotates its scope with the provided profiler hooks.

## Constructor & Destructor Documentation

## ◆ profiling_scope_guard()

gko::log::profiling_scope_guard::profiling_scope_guard | ( | const char * | name,
|  | profile_event_category | category,
|  | ProfilerHook::hook_function | begin,
|  | ProfilerHook::hook_function | end )

Creates the scope guard.

Parameters

  name | the name of the profiler range
  category | the category of the profiler range
  begin | the hook function to begin a range
  end | the hook function to end a range

The documentation for this class was generated from the following file:

- ginkgo/core/log/profiler_hook.hpp