]> git.cworth.org Git - apitrace/commitdiff
Always add calls for last frame.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Sep 2011 18:17:41 +0000 (19:17 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Sep 2011 14:13:37 +0000 (15:13 +0100)
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.

gui/loaderthread.cpp

index 03f0ccd0f68569983d7bc9b0ca362bae23ab8f70..10a787b1a8562f6b452fb47b809652c28ddc4b4b 100644 (file)
@@ -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;
     }