|
| | counter_semantic () noexcept |
| | Construct an unchained counter semantic.
|
| |
| | counter_semantic (nvtxSemanticsHeader_t const *next) |
| | Construct a counter semantic chained to another semantic header.
|
| |
| template<typename OtherDataType > |
| | counter_semantic (detail::semantic_base< OtherDataType > const &next) |
| | Construct a counter semantic that chains to another semantic builder.
|
| |
| counter_semantic & | unit (const char *unit_name) noexcept |
| | Set the unit string for the counter (e.g., "bytes", "ms", "%").
|
| |
| counter_semantic & | unit (std::string const &unit_name) noexcept |
| | Set the unit string for the counter (e.g., "bytes", "ms", "%").
|
| |
|
counter_semantic & | unit (std::string &&unit_name)=delete |
| | Disallow setting the borrowed unit string from a temporary string.
|
| |
| counter_semantic & | unit_scale (uint64_t numerator, uint64_t denominator=1) noexcept |
| | Set the unit scale as a fraction (numerator/denominator).
|
| |
| counter_semantic & | normalize () noexcept |
| | Enable normalization of counter values.
|
| |
| counter_semantic & | valuetype_absolute () |
| | Set value type to absolute.
|
| |
| counter_semantic & | valuetype_delta () |
| | Set value type to delta from previous sample.
|
| |
| counter_semantic & | valuetype_delta_since_start () |
| | Set value type to delta since start.
|
| |
| counter_semantic & | interpolation_point () |
| | Set interpolation to point (no interpolation between samples).
|
| |
| counter_semantic & | interpolation_since_last () |
| | Set interpolation to piecewise constant from last sample.
|
| |
| counter_semantic & | interpolation_until_next () |
| | Set interpolation to piecewise constant until next sample.
|
| |
| counter_semantic & | interpolation_linear () |
| | Set interpolation to linear between samples.
|
| |
| template<typename T > |
| counter_semantic & | limits (T min_val, T max_val) noexcept |
| | Set minimum and maximum limits, typed.
|
| |
| template<typename T > |
| counter_semantic & | limit_min (T min_val) noexcept |
| | Set only the minimum limit, typed.
|
| |
| template<typename T > |
| counter_semantic & | limit_max (T max_val) noexcept |
| | Set only the maximum limit, typed.
|
| |
Builder class for configuring counter semantics.
Counter semantics provide additional metadata about counter values, such as units, limits, interpolation behavior, and value types. This information helps tools to properly display and interpret counter data.
Settings are always accumulated as flags, never reset. Do not mix overlapping settings.
Setters return *this to allow method chaining.
Example:
.
limits<int64_t>(0, 1024LL * 1024 * 1024)
nvtx3::counter<int64_t> memory{"heap_size",
"Process heap size",
nvtx3::scope::current_sw_process(),
sem};
Builder class for configuring counter semantics.
counter_semantic & limits(T min_val, T max_val) noexcept
Set minimum and maximum limits, typed.
counter_semantic & unit(const char *unit_name) noexcept
Set the unit string for the counter (e.g., "bytes", "ms", "%").
counter_semantic & interpolation_since_last()
Set interpolation to piecewise constant from last sample.
Definition at line 3641 of file nvtx3.hpp.
template<typename OtherDataType >
| nvtx3::v1::mv2::counter_semantic::counter_semantic |
( |
detail::semantic_base< OtherDataType > const & |
next | ) |
|
|
inlineexplicit |
Construct a counter semantic that chains to another semantic builder.
Convenience overload of the header-pointer constructor that accepts a sibling semantic builder object directly. The referenced builder is copied into this object.
- Template Parameters
-
| OtherDataType | Underlying C struct type of the other semantic. |
- Parameters
-
| next | The semantic builder to chain after this one. |
Definition at line 3683 of file nvtx3.hpp.