Celeritas  0.5.0-86+4a8eea4
Functions
ScopedProfiling.cc File Reference

The perfetto implementation of ScopedProfiling. More...

#include "ScopedProfiling.hh"
#include "corecel/Config.hh"
#include "corecel/Macros.hh"
#include "corecel/io/Logger.hh"
#include "Environment.hh"

Functions

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

Detailed Description

The perfetto implementation of ScopedProfiling.

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.