Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-10-24 01:04:31 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-10-24 01:06:41 +0300
commitba61a9ed848351d4f27a944ed0a609fe870ba679 (patch)
tree74c24043358bd49235c5ceddb43ba65f96497561 /TracyVulkan.hpp
parentcf88265304888b4b3aa723ddb11158317df6a283 (diff)
Transfer time deltas, not absolute times.
This change significantly reduces network bandwidth requirements. Implemented for: - CPU zones, - GPU zones, - locks, - plots, - memory events.
Diffstat (limited to 'TracyVulkan.hpp')
-rw-r--r--TracyVulkan.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp
index be87eb38..ec4b1eae 100644
--- a/TracyVulkan.hpp
+++ b/TracyVulkan.hpp
@@ -210,7 +210,7 @@ public:
vkCmdWriteTimestamp( cmdbuf, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, ctx->m_query, queryId );
auto item = Profiler::QueueSerial();
- MemWrite( &item->hdr.type, QueueType::GpuZoneBegin );
+ MemWrite( &item->hdr.type, QueueType::GpuZoneBeginSerial );
MemWrite( &item->gpuZoneBegin.cpuTime, Profiler::GetTime() );
MemWrite( &item->gpuZoneBegin.srcloc, (uint64_t)srcloc );
MemWrite( &item->gpuZoneBegin.thread, GetThreadHandle() );
@@ -234,7 +234,7 @@ public:
vkCmdWriteTimestamp( cmdbuf, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, ctx->m_query, queryId );
auto item = Profiler::QueueSerial();
- MemWrite( &item->hdr.type, QueueType::GpuZoneBeginCallstack );
+ MemWrite( &item->hdr.type, QueueType::GpuZoneBeginCallstackSerial );
MemWrite( &item->gpuZoneBegin.cpuTime, Profiler::GetTime() );
MemWrite( &item->gpuZoneBegin.srcloc, (uint64_t)srcloc );
MemWrite( &item->gpuZoneBegin.thread, GetThreadHandle() );
@@ -254,7 +254,7 @@ public:
vkCmdWriteTimestamp( m_cmdbuf, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, m_ctx->m_query, queryId );
auto item = Profiler::QueueSerial();
- MemWrite( &item->hdr.type, QueueType::GpuZoneEnd );
+ MemWrite( &item->hdr.type, QueueType::GpuZoneEndSerial );
MemWrite( &item->gpuZoneEnd.cpuTime, Profiler::GetTime() );
MemWrite( &item->gpuZoneEnd.thread, GetThreadHandle() );
MemWrite( &item->gpuZoneEnd.queryId, uint16_t( queryId ) );