VTK  9.4.20241218
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
17#ifndef vtkAnariProfiling_h
18#define vtkAnariProfiling_h
19
20#include "vtkRenderingAnariModule.h" // For export macro
21#include <cstdint> // For ivars
22
23VTK_ABI_NAMESPACE_BEGIN
24
25class VTKRENDERINGANARI_EXPORT vtkAnariProfiling
26{
27public:
29 vtkAnariProfiling(const char* label, uint32_t color);
31
35 static constexpr uint32_t BROWN = 0xFF8B4513;
36 static constexpr uint32_t RED = 0xFFFF0000;
37 static constexpr uint32_t MAROON = 0xFF800000;
38 static constexpr uint32_t YELLOW = 0xFFFFFF00;
39 static constexpr uint32_t GOLD = 0xFFFFD700;
40 static constexpr uint32_t GREEN = 0xFF008000;
41 static constexpr uint32_t LIME = 0xFF00FF00;
42 static constexpr uint32_t BLUE = 0xFF0000FF;
43 static constexpr uint32_t AQUA = 0xFF00FFFF;
44
45private:
51 void StartProfiling(const char* label, uint32_t color);
52
56 void StopProfiling();
57};
58
59VTK_ABI_NAMESPACE_END
60#endif
Allows instrumenting of the VTK ANARI source code.
vtkAnariProfiling(const char *label, uint32_t color)