diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-16 14:56:46 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-16 14:57:30 +0200 |
commit | b297e0fa5c217c9467033b7c8b46891a52870120 (patch) | |
tree | 43fc14689295e9e64f2719d05aad94e3049f6cd7 /Source/JavaScriptCore/tools/ProfileTreeNode.h | |
parent | 69d517dbfa69903d8593cc1737f0474b21e3251e (diff) | |
download | qtwebkit-b297e0fa5c217c9467033b7c8b46891a52870120.tar.gz |
Revert "Imported WebKit commit 0dc6cd75e1d4836eaffbb520be96fac4847cc9d2 (http://svn.webkit.org/repository/webkit/trunk@131300)"
This reverts commit 5466563f4b5b6b86523e3f89bb7f77e5b5270c78.
Caused OOM issues on some CI machines :(
Diffstat (limited to 'Source/JavaScriptCore/tools/ProfileTreeNode.h')
-rw-r--r-- | Source/JavaScriptCore/tools/ProfileTreeNode.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/JavaScriptCore/tools/ProfileTreeNode.h b/Source/JavaScriptCore/tools/ProfileTreeNode.h index 7b5a95ec4..7b51efb85 100644 --- a/Source/JavaScriptCore/tools/ProfileTreeNode.h +++ b/Source/JavaScriptCore/tools/ProfileTreeNode.h @@ -51,7 +51,7 @@ public: ProfileTreeNode newEntry; Map::AddResult result = m_children->add(String(name), newEntry); - ProfileTreeNode* childInMap = &result.iterator->value; + ProfileTreeNode* childInMap = &result.iterator->second; ++childInMap->m_count; return childInMap; } @@ -72,7 +72,7 @@ public: return 0; uint64_t childCount = 0; for (Map::iterator it = m_children->begin(); it != m_children->end(); ++it) - childCount += it->value.count(); + childCount += it->second.count(); return childCount; } @@ -97,19 +97,19 @@ private: for (unsigned i = 0; i < indent; ++i) dataLog(" "); dataLog("% 8lld: %s (%lld stack top)\n", - static_cast<long long>(entry->value.count()), - entry->key.utf8().data(), - static_cast<long long>(entry->value.count() - entry->value.childCount())); + static_cast<long long>(entry->second.count()), + entry->first.utf8().data(), + static_cast<long long>(entry->second.count() - entry->second.childCount())); // Recursively dump the child nodes. - entry->value.dumpInternal(indent + 1); + entry->second.dumpInternal(indent + 1); } } static int compareEntries(const void* a, const void* b) { - uint64_t da = (*static_cast<MapEntry* const *>(a))->value.count(); - uint64_t db = (*static_cast<MapEntry* const *>(b))->value.count(); + uint64_t da = (*static_cast<MapEntry* const *>(a))->second.count(); + uint64_t db = (*static_cast<MapEntry* const *>(b))->second.count(); return (da < db) - (da > db); } |