|
||||
File indexing completed on 2025-01-30 10:03:44
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 2024 UT-Battelle, LLC, and other Celeritas developers. 0003 // See the top-level COPYRIGHT file for details. 0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0005 //---------------------------------------------------------------------------// 0006 //! \file corecel/sys/Counter.hh 0007 //! \brief Numeric tracing counter 0008 //---------------------------------------------------------------------------// 0009 #pragma once 0010 0011 #include "corecel/Config.hh" 0012 0013 #include "corecel/Macros.hh" 0014 0015 namespace celeritas 0016 { 0017 #if CELERITAS_USE_PERFETTO 0018 //---------------------------------------------------------------------------// 0019 // Simple tracing counter 0020 template<class T> 0021 CELER_FUNCTION void trace_counter(char const* name, T value); 0022 #else 0023 //! No tracing backend - noop 0024 template<class T> 0025 CELER_FUNCTION inline void trace_counter(char const*, T) 0026 { 0027 } 0028 #endif 0029 0030 //---------------------------------------------------------------------------// 0031 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |