Kernel Tuning Toolkit 2.3
 
Loading...
Searching...
No Matches
KernelProfilingCounter.h
Go to the documentation of this file.
1
4#pragma once
5
6#include <cstdint>
7#include <string>
8#include <variant>
9
11#include <KttPlatform.h>
12
13namespace ktt
14{
15
20{
21public:
26
33 explicit KernelProfilingCounter(const std::string& name, const ProfilingCounterType type, const int64_t value);
34
41 explicit KernelProfilingCounter(const std::string& name, const ProfilingCounterType type, const uint64_t value);
42
49 explicit KernelProfilingCounter(const std::string& name, const ProfilingCounterType type, const double value);
50
55 const std::string& GetName() const;
56
63
68 const std::string GetTypeString() const;
69
74 int64_t GetValueInt() const;
75
81 uint64_t GetValueUint() const;
82
87 double GetValueDouble() const;
88
94 bool operator==(const KernelProfilingCounter& other) const;
95
101 bool operator!=(const KernelProfilingCounter& other) const;
102
108 bool operator<(const KernelProfilingCounter& other) const;
109
110private:
111 std::string m_Name;
113 std::variant<int64_t, uint64_t, double> m_Value;
114};
115
116} // namespace ktt
Definition KernelProfilingCounter.h:20
bool operator!=(const KernelProfilingCounter &other) const
uint64_t GetValueUint() const
const std::string & GetName() const
KernelProfilingCounter(const std::string &name, const ProfilingCounterType type, const uint64_t value)
double GetValueDouble() const
ProfilingCounterType GetType() const
bool operator<(const KernelProfilingCounter &other) const
int64_t GetValueInt() const
const std::string GetTypeString() const
KernelProfilingCounter(const std::string &name, const ProfilingCounterType type, const double value)
KernelProfilingCounter(const std::string &name, const ProfilingCounterType type, const int64_t value)
bool operator==(const KernelProfilingCounter &other) const
Definition KttPlatform.h:41
ProfilingCounterType
Definition ProfilingCounterType.h:13