#include <KernelProfilingCounter.h>
Public Member Functions | |
| KernelProfilingCounter ()=default | |
| KernelProfilingCounter (const std::string &name, const ProfilingCounterType type, const int64_t value) | |
| KernelProfilingCounter (const std::string &name, const ProfilingCounterType type, const uint64_t value) | |
| KernelProfilingCounter (const std::string &name, const ProfilingCounterType type, const double value) | |
| const std::string & | GetName () const |
| ProfilingCounterType | GetType () const |
| const std::string | GetTypeString () const |
| int64_t | GetValueInt () const |
| uint64_t | GetValueUint () const |
| double | GetValueDouble () const |
| bool | operator== (const KernelProfilingCounter &other) const |
| bool | operator!= (const KernelProfilingCounter &other) const |
| bool | operator< (const KernelProfilingCounter &other) const |
Class which holds information about single profiling counter.
|
default |
Constructor which creates empty profiling counter.
|
explicit |
Constructor which initializes a profiling counter with specified name, value and type.
| name | Name of a profiling counter. |
| type | Type of a profiling counter. See ProfilingCounterType for more information. |
| value | Integer value of a profiling counter. |
|
explicit |
Constructor which initializes a profiling counter with specified name, value and type.
| name | Name of a profiling counter. |
| type | Type of a profiling counter. See ProfilingCounterType for more information. |
| value | Unsigned integer value of a profiling counter. |
|
explicit |
Constructor which initializes a profiling counter with specified name, value and type.
| name | Name of a profiling counter. |
| type | Type of a profiling counter. See ProfilingCounterType for more information. |
| value | Double value of a profiling counter. |
| const std::string & ktt::KernelProfilingCounter::GetName | ( | ) | const |
Getter for name of a profiling counter.
| ProfilingCounterType ktt::KernelProfilingCounter::GetType | ( | ) | const |
Getter for type of a profiling counter. Type of a profiling counter is used to determine which field inside ProfilingCounterValue needs to accessed in order to retrieve a valid value.
| const std::string & ktt::KernelProfilingCounter::GetTypeString | ( | ) | const |
Getter for the string with the type of a profiling counter. This string is used is serialization and deserialization of output.
| double ktt::KernelProfilingCounter::GetValueDouble | ( | ) | const |
Getter for double value of a profiling counter. Should be used if counter type is Double or Percent.
| int64_t ktt::KernelProfilingCounter::GetValueInt | ( | ) | const |
Getter for integer value of a profiling counter. Should be used if counter type is Int.
| uint64_t ktt::KernelProfilingCounter::GetValueUint | ( | ) | const |
Getter for unsigned integer value of a profiling counter. Should be used if counter type is UnsignedInt, Throughput or UtilizationLevel.
| bool ktt::KernelProfilingCounter::operator!= | ( | const KernelProfilingCounter & | other | ) | const |
Checks whether profiling counter is not equal to other. I.e., counters do not have the same name.
| other | Comparison target. |
| bool ktt::KernelProfilingCounter::operator< | ( | const KernelProfilingCounter & | other | ) | const |
Checks whether profiling counter is lesser than other. I.e., its name is lesser than other's name.
| other | Comparison target. |
| bool ktt::KernelProfilingCounter::operator== | ( | const KernelProfilingCounter & | other | ) | const |
Checks whether profiling counter is equal to other. I.e., counters have the same name.
| other | Comparison target. |