From 25a95d99c0cef635817822cd6ae0e251bcbf5d60 Mon Sep 17 00:00:00 2001 From: joshuakr Date: Thu, 21 Jan 2021 17:06:55 -0800 Subject: [PATCH] Imported chrome traces show the file name in the title bar --- server/TracyWorker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 80692de8..6fb4ffcc 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -512,6 +512,8 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) char tmp[1024]; f.Read( tmp, sz ); m_captureName = std::string( tmp, tmp+sz ); + if (m_captureName.empty()) + m_captureName = f.GetFilename(); } { f.Read( sz );