1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use enum for cost selection.

This commit is contained in:
Bartosz Taudul
2021-06-20 00:37:55 +02:00
parent 3cc69b221e
commit 07fe0a5447
2 changed files with 62 additions and 27 deletions
+14 -1
View File
@@ -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;