summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-09-01 19:17:41 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-09-19 15:13:37 +0100
commitf2ed6b2161d58319f786a3a4fa4b3155f30c32e8 (patch)
treedc24280cab06c0cdb880df8fee5fca936494921e
parent9fd3541f84648ed2d57b4d915795c2d270d4dbfe (diff)
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.
-rw-r--r--gui/loaderthread.cpp9
1 files changed, 2 insertions, 7 deletions
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;
}