Skip to content

Commit

Permalink
Add die to topology data.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Aug 21, 2024
1 parent fb617fe commit 353545a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions public/client/TracyProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3727,6 +3727,7 @@ void Profiler::ReportTopology()
struct CpuData
{
uint32_t package;
uint32_t die;
uint32_t core;
uint32_t thread;
};
Expand Down Expand Up @@ -3801,6 +3802,7 @@ void Profiler::ReportTopology()

TracyLfqPrepare( QueueType::CpuTopology );
MemWrite( &item->cpuTopology.package, data.package );
MemWrite( &item->cpuTopology.die, data.die );
MemWrite( &item->cpuTopology.core, data.core );
MemWrite( &item->cpuTopology.thread, data.thread );

Expand Down Expand Up @@ -3850,6 +3852,7 @@ void Profiler::ReportTopology()

TracyLfqPrepare( QueueType::CpuTopology );
MemWrite( &item->cpuTopology.package, data.package );
MemWrite( &item->cpuTopology.die, data.die );
MemWrite( &item->cpuTopology.core, data.core );
MemWrite( &item->cpuTopology.thread, data.thread );

Expand Down
2 changes: 1 addition & 1 deletion public/common/TracyProtocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace tracy

constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }

enum : uint32_t { ProtocolVersion = 68 };
enum : uint32_t { ProtocolVersion = 69 };
enum : uint16_t { BroadcastVersion = 3 };

using lz4sz_t = uint32_t;
Expand Down
1 change: 1 addition & 0 deletions public/common/TracyQueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ struct QueueSourceCodeNotAvailable
struct QueueCpuTopology
{
uint32_t package;
uint32_t die;
uint32_t core;
uint32_t thread;
};
Expand Down

0 comments on commit 353545a

Please sign in to comment.