diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-06-20 01:37:55 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-06-20 01:45:39 +0300 |
commit | 07fe0a5447c57293e25cb4697ff61f8ef4f2b48c (patch) | |
tree | 10b925b0bcc24e0f1dc622f4e175c665746c64d1 /server/TracySourceView.hpp | |
parent | 3cc69b221ebe4dcd55699192cc9892e6bd13f478 (diff) |
Use enum for cost selection.
Diffstat (limited to 'server/TracySourceView.hpp')
-rw-r--r-- | server/TracySourceView.hpp | 15 |
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; |