Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-06-20 01:37:55 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-06-20 01:45:39 +0300
commit07fe0a5447c57293e25cb4697ff61f8ef4f2b48c (patch)
tree10b925b0bcc24e0f1dc622f4e175c665746c64d1 /server/TracySourceView.hpp
parent3cc69b221ebe4dcd55699192cc9892e6bd13f478 (diff)
Use enum for cost selection.
Diffstat (limited to 'server/TracySourceView.hpp')
-rw-r--r--server/TracySourceView.hpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp
index a6d9e8cb..ef64af71 100644
--- a/server/TracySourceView.hpp
+++ b/server/TracySourceView.hpp
@@ -113,6 +113,19 @@ private:
}
};
+ enum class CostType
+ {
+ SampleCount,
+ SlowBranches,
+ SlowCache,
+ Cycles,
+ Retirements,
+ BranchesTaken,
+ BranchMiss,
+ CacheAccess,
+ CacheMiss
+ };
+
public:
using GetWindowCallback = void*(*)();
@@ -187,7 +200,7 @@ private:
uint64_t m_jumpPopupAddr;
bool m_hwSamples;
bool m_childCalls;
- int m_cost;
+ CostType m_cost;
SourceContents m_source;
SourceContents m_sourceTooltip;