From: José Fonseca Date: Thu, 1 Sep 2011 18:17:41 +0000 (+0100) Subject: Always add calls for last frame. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f2ed6b2161d58319f786a3a4fa4b3155f30c32e8;hp=9fd3541f84648ed2d57b4d915795c2d270d4dbfe;p=apitrace Always add calls for last frame. When viewing traces of apps that crashed, the last frame is the most interesting of all. Furthermore, last frames actually do have markers, but no calls. --- diff --git a/gui/loaderthread.cpp b/gui/loaderthread.cpp index 03f0ccd..10a787b 100644 --- a/gui/loaderthread.cpp +++ b/gui/loaderthread.cpp @@ -91,14 +91,9 @@ void LoaderThread::run() call = p.parse_call(); } } - //last frames won't have markers - // it's just a bunch of Delete calls for every object - // after the last SwapBuffers if (currentFrame) { - if (!frames.count()) { - calls.squeeze(); - currentFrame->setCalls(calls, binaryDataSize); - } + calls.squeeze(); + currentFrame->setCalls(calls, binaryDataSize); frames.append(currentFrame); currentFrame = 0; }