Celeritas  0.5.0-56+6b053cd
Classes | Functions
ScopedProfiling.hh File Reference
#include <cstdint>
#include <string>
#include "corecel/Config.hh"
#include "corecel/Macros.hh"
#include "corecel/io/Logger.hh"
#include "Environment.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::ScopedProfilingInput
 Input arguments for the nvtx implementation. More...
 
class  celeritas::ScopedProfiling
 RAII class for scoped profiling. More...
 

Functions

bool celeritas::use_profiling ()
 Whether profiling is enabled. More...
 

Function Documentation

◆ use_profiling()

bool celeritas::use_profiling ( )

Whether profiling is enabled.

This is true only if the CELER_ENABLE_PROFILING environment variable is set to a non-empty value. Profiling is never enabled if CUDA/HIP/Perfetto isn't available.