mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Keep raw hw sample data visually separate.
This commit is contained in:
parent
07fe0a5447
commit
3305ea2775
@ -81,6 +81,8 @@ static constexpr const char* s_CostName[] = {
|
||||
"Cache miss"
|
||||
};
|
||||
|
||||
static constexpr SourceView::CostType s_costSeparateAfter = SourceView::CostType::SlowCache;
|
||||
|
||||
|
||||
static size_t CountHwSamples( const SortedVector<Int48, Int48Sort>& vec, const Range& range )
|
||||
{
|
||||
@ -1257,6 +1259,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
||||
for( auto& v : s_CostName )
|
||||
{
|
||||
if( ImGui::Selectable( v, idx == (int)m_cost ) ) m_cost = (CostType)idx;
|
||||
if( (CostType)idx == s_costSeparateAfter ) ImGui::Separator();
|
||||
idx++;
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
|
@ -35,6 +35,19 @@ public:
|
||||
NUMBER_OF_ENTRIES
|
||||
};
|
||||
|
||||
enum class CostType
|
||||
{
|
||||
SampleCount,
|
||||
SlowBranches,
|
||||
SlowCache,
|
||||
Cycles,
|
||||
Retirements,
|
||||
BranchesTaken,
|
||||
BranchMiss,
|
||||
CacheAccess,
|
||||
CacheMiss
|
||||
};
|
||||
|
||||
private:
|
||||
struct AsmOpParams
|
||||
{
|
||||
@ -113,19 +126,6 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
enum class CostType
|
||||
{
|
||||
SampleCount,
|
||||
SlowBranches,
|
||||
SlowCache,
|
||||
Cycles,
|
||||
Retirements,
|
||||
BranchesTaken,
|
||||
BranchMiss,
|
||||
CacheAccess,
|
||||
CacheMiss
|
||||
};
|
||||
|
||||
public:
|
||||
using GetWindowCallback = void*(*)();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user