Represents the runtime state of the profiling category.
More...
#include <kanzi/core/profiling/profiling_category.hpp>
Represents the runtime state of the profiling category.
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.
static void kanzi::ProfilingCategory::setFilter |
( |
string_view |
filterConfiguration | ) |
|
|
static |
Sets the category filter.
Do not call this function directly.
- Parameters
-
filterConfiguration | Filter configuration string. |
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.
void kanzi::ProfilingCategory::setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Enables or disables the profiling category.
- Parameters
-
enabled | Whether to enable or disable the category. |
void kanzi::ProfilingCategory::resetEnabledToInitial |
( |
| ) |
|
|
inline |
Resets the profiling category to its initial runtime state.
static void kanzi::ProfilingCategory::setAllEnabled |
( |
bool |
enabled | ) |
|
|
static |
Enables or disables all profiling categories.
- Parameters
-
enabled | Whether to enable or disable all categories. |
static void kanzi::ProfilingCategory::resetAllEnabledToInitial |
( |
| ) |
|
|
static |
Resets all profiling categories to their initial runtime state.
FixedString kanzi::ProfilingCategory::getName |
( |
| ) |
const |
|
inline |
Gets the name of a profiling category.
- Returns
- Category name.
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: