forked from qt-creator/qt-creator
Show correct wording for memory events
For delta < 0 it's "freed", not "allocated Change-Id: I1ac400588329152f70d63a2ec4a0498c6f54d299 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -144,7 +144,7 @@ const QVariantList MemoryUsageModel::getEventDetails(int index) const
|
||||
|
||||
{
|
||||
QVariantMap res;
|
||||
if (ev->size > 0)
|
||||
if (ev->delta > 0)
|
||||
res.insert(QLatin1String("title"), QVariant(QLatin1String("Memory Allocated")));
|
||||
else
|
||||
res.insert(QLatin1String("title"), QVariant(QLatin1String("Memory Freed")));
|
||||
|
Reference in New Issue
Block a user