Bug 730302 - Fix GetMarker code in Table::Tick. r=mstange

This commit is contained in:
Benoit Girard 2012-02-24 11:51:13 -05:00
parent 8cd569208b
commit 5e1dd84f1f

View File

@ -516,11 +516,8 @@ unsigned int sCurrentEventGeneration = 0;
void TableTicker::Tick(TickSample* sample)
{
// Marker(s) come before the sample
int i = 0;
const char *marker = mStack->getMarker(i++);
for (int i = 0; marker != NULL; i++) {
mProfile.addTag(ProfileEntry('m', marker));
marker = mStack->getMarker(i++);
for (int i = 0; mStack->getMarker(i) != NULL; i++) {
mProfile.addTag(ProfileEntry('m', mStack->getMarker(i)));
}
mStack->mQueueClearMarker = true;