Represents the runtime state of the profiling category.
More...
#include <kanzi/core/profiling/profiling_category.hpp>
Represents the runtime state of the profiling category.
◆ create()
Creates a new profiling category.
Do not call this function directly.
This function is used to create a new profiling category object. The name you provide in the name
parameter should be unique for each category. The function raises an exception if a category with the given name already exists.
- Parameters
-
name | The name of the new category. |
initialEnabled | The initial runtime state of the category. |
- Returns
- The reference to new profiling category.
◆ setFilter()
static void kanzi::ProfilingCategory::setFilter |
( |
string_view |
filterConfiguration | ) |
|
|
static |
Sets the category filter.
Do not call this function directly.
- Parameters
-
filterConfiguration | Filter configuration string. |
◆ findByName()
Looks up a profiling category by its name.
Use profiling category name you provided in name
to look up created profiling category. See create() for details.
- Parameters
-
name | The name of the profiling category to look up. |
- Returns
- Pointer to the profiling category object, 0 if category was not found.
◆ setEnabled()
void kanzi::ProfilingCategory::setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Enables or disables the profiling category.
- Parameters
-
enabled | Whether to enable or disable the category. |
◆ resetEnabledToInitial()
void kanzi::ProfilingCategory::resetEnabledToInitial |
( |
| ) |
|
|
inline |
Resets the profiling category to its initial runtime state.
◆ setAllEnabled()
static void kanzi::ProfilingCategory::setAllEnabled |
( |
bool |
enabled | ) |
|
|
static |
Enables or disables all profiling categories.
- Parameters
-
enabled | Whether to enable or disable all categories. |
◆ resetAllEnabledToInitial()
static void kanzi::ProfilingCategory::resetAllEnabledToInitial |
( |
| ) |
|
|
static |
Resets all profiling categories to their initial runtime state.
◆ getName()
FixedString kanzi::ProfilingCategory::getName |
( |
| ) |
const |
|
inline |
Gets the name of a profiling category.
- Returns
- Category name.
◆ isEnabled()
bool kanzi::ProfilingCategory::isEnabled |
( |
| ) |
const |
|
inline |
Checks whether a profiling category is enabled.
- Returns
- True if the category is enabled, otherwise false.
The documentation for this class was generated from the following file: