VTK  9.7.20261005
vtkAnariProfiling.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
16
17#ifndef vtkAnariProfiling_h
18#define vtkAnariProfiling_h
19
20#include "vtkRenderingAnariCoreModule.h" // For export macro
21
22#include <cstdint> // For ivars
23
24VTK_ABI_NAMESPACE_BEGIN
25
26class VTKRENDERINGANARICORE_EXPORT vtkAnariProfiling
27{
28public:
30 vtkAnariProfiling(const char* label, uint32_t color);
32
36 static constexpr uint32_t BROWN = 0xFF8B4513;
37 static constexpr uint32_t RED = 0xFFFF0000;
38 static constexpr uint32_t MAROON = 0xFF800000;
39 static constexpr uint32_t YELLOW = 0xFFFFFF00;
40 static constexpr uint32_t GOLD = 0xFFFFD700;
41 static constexpr uint32_t GREEN = 0xFF008000;
42 static constexpr uint32_t LIME = 0xFF00FF00;
43 static constexpr uint32_t BLUE = 0xFF0000FF;
44 static constexpr uint32_t AQUA = 0xFF00FFFF;
45
46private:
52 void StartProfiling(const char* label, uint32_t color);
53
57 void StopProfiling();
58};
59
60VTK_ABI_NAMESPACE_END
61#endif
static constexpr uint32_t YELLOW
static constexpr uint32_t LIME
static constexpr uint32_t RED
static constexpr uint32_t AQUA
static constexpr uint32_t GOLD
static constexpr uint32_t GREEN
static constexpr uint32_t BROWN
32-bit ARGB color.
vtkAnariProfiling(const char *label, uint32_t color)
static constexpr uint32_t BLUE
static constexpr uint32_t MAROON