From c4a6f3f9806089268ffc35046a2386689e448f32 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 31 Jan 2021 18:56:12 +0100 Subject: [PATCH] Save/load GPU context names. --- server/TracyWorker.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 644f6a96..0ef2e04c 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -965,7 +965,13 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) for( uint64_t i=0; i(); - if( fileVer >= FileVersion( 0, 7, 1 ) ) + if( fileVer >= FileVersion( 0, 7, 6 ) ) + { + uint8_t calibration; + f.Read6( ctx->thread, calibration, ctx->count, ctx->period, ctx->type, ctx->name ); + ctx->hasCalibration = calibration; + } + else if( fileVer >= FileVersion( 0, 7, 1 ) ) { uint8_t calibration; f.Read5( ctx->thread, calibration, ctx->count, ctx->period, ctx->type ); @@ -7031,6 +7037,7 @@ void Worker::Write( FileWrite& f ) f.Write( &ctx->count, sizeof( ctx->count ) ); f.Write( &ctx->period, sizeof( ctx->period ) ); f.Write( &ctx->type, sizeof( ctx->type ) ); + f.Write( &ctx->name, sizeof( ctx->name ) ); sz = ctx->threadData.size(); f.Write( &sz, sizeof( sz ) ); for( auto& td : ctx->threadData )