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

Zones can be now also grouped by call stack.

This commit is contained in:
Bartosz Taudul
2018-07-21 20:26:13 +02:00
parent 3c6baf53da
commit 9291a88020
3 changed files with 74 additions and 37 deletions
+5 -2
View File
@@ -217,8 +217,9 @@ private:
Vector<const ZoneEvent*> m_zoneInfoStack;
Vector<const GpuEvent*> m_gpuInfoStack;
struct {
struct FindZone {
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
enum class GroupBy : int { Thread, UserText, Callstack };
bool show = false;
std::vector<int32_t> match;
@@ -230,7 +231,7 @@ private:
bool logVal = false;
bool logTime = true;
bool cumulateTime = false;
bool showThreads = true;
GroupBy groupBy = GroupBy::Thread;
bool sortByCounts = false;
Region highlight;
int64_t numBins = -1;
@@ -260,6 +261,8 @@ private:
}
} m_findZone;
tracy_force_inline uint64_t GetSelectionTarget( const Worker::ZoneThreadData& ev, FindZone::GroupBy groupBy ) const;
struct CompVal
{
double v0;