|
| 1 | +/*! |
| 2 | + * \file tracy_structure.hpp |
| 3 | + * \brief Tracy profiler interface header. |
| 4 | + * Provides compatibility macros if the code is built without |
| 5 | + * tracy support. Profiling macros are defined here so that |
| 6 | + * they can be completely "disabled" when compiling without tracy. |
| 7 | + * \note Do not include tracy headers explicitly anywhere, use this header instead. |
| 8 | + * \note To enable tracy, define the TRACY_ENABLE macro during compilation. |
| 9 | + * \author Divyaprakash |
| 10 | + * \version 8.2.0 "Harrier" |
| 11 | + * |
| 12 | + * SU2 Project Website: https://su2code.github.io |
| 13 | + * |
| 14 | + * The SU2 Project is maintained by the SU2 Foundation |
| 15 | + * (http://su2foundation.org) |
| 16 | + * |
| 17 | + * Copyright 2012-2025, SU2 Contributors (cf. AUTHORS.md) |
| 18 | + * |
| 19 | + * SU2 is free software; you can redistribute it and/or |
| 20 | + * modify it under the terms of the GNU Lesser General Public |
| 21 | + * License as published by the Free Software Foundation; either |
| 22 | + * version 2.1 of the License, or (at your option) any later version. |
| 23 | + * |
| 24 | + * SU2 is distributed in the hope that it will be useful, |
| 25 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 27 | + * Lesser General Public License for more details. |
| 28 | + * |
| 29 | + * You should have received a copy of the GNU Lesser General Public |
| 30 | + * License along with SU2. If not, see <http://www.gnu.org/licenses/>. |
| 31 | + */ |
| 32 | + |
| 33 | +#pragma once |
| 34 | + |
| 35 | +#ifdef TRACY_ENABLE |
| 36 | +# include "tracy/Tracy.hpp" |
| 37 | +# define SU2_ZONE_SCOPED ZoneScoped |
| 38 | +# define SU2_ZONE_SCOPED_N(name) ZoneScopedN(name) |
| 39 | +#else |
| 40 | +# define SU2_ZONE_SCOPED |
| 41 | +# define SU2_ZONE_SCOPED_N(name) |
| 42 | +#endif |
0 commit comments