Ginkgo
Generated from pipelines/1554403166 branch based on develop. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
|
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. More... | |
~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 |
Scope guard that annotates its scope with the provided profiler hooks.
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.
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 |