From 470286ecfe79d59df14944e5b5d34630fc739391 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 22 Nov 2012 09:09:45 +0100 Subject: Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485) Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66 Reviewed-by: Simon Hausmann --- Source/JavaScriptCore/tools/CodeProfile.cpp | 6 +++--- Source/JavaScriptCore/tools/ProfileTreeNode.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/JavaScriptCore/tools') diff --git a/Source/JavaScriptCore/tools/CodeProfile.cpp b/Source/JavaScriptCore/tools/CodeProfile.cpp index 0020c7285..b3c4ff448 100644 --- a/Source/JavaScriptCore/tools/CodeProfile.cpp +++ b/Source/JavaScriptCore/tools/CodeProfile.cpp @@ -143,7 +143,7 @@ void CodeProfile::sample(void* pc, void** framePointer) void CodeProfile::report() { - dataLog("\n", m_file.data(), m_lineNo); + dataLogF("\n", m_file.data(), m_lineNo); // How many frames of C-code to print - 0, if not verbose, 1 if verbose, up to 1024 if very verbose. unsigned recursionLimit = CodeProfiling::beVeryVerbose() ? 1024 : CodeProfiling::beVerbose(); @@ -180,13 +180,13 @@ void CodeProfile::report() } // Output the profile tree. - dataLog("Total samples: %lld\n", static_cast(profile.childCount())); + dataLogF("Total samples: %lld\n", static_cast(profile.childCount())); profile.dump(); for (size_t i = 0 ; i < m_children.size(); ++i) m_children[i]->report(); - dataLog("\n", m_file.data(), m_lineNo); + dataLogF("\n", m_file.data(), m_lineNo); } } diff --git a/Source/JavaScriptCore/tools/ProfileTreeNode.h b/Source/JavaScriptCore/tools/ProfileTreeNode.h index 7b5a95ec4..4daa7df4c 100644 --- a/Source/JavaScriptCore/tools/ProfileTreeNode.h +++ b/Source/JavaScriptCore/tools/ProfileTreeNode.h @@ -95,8 +95,8 @@ private: // Print the number of samples, the name of this node, and the number of samples that are stack-top // in this node (samples directly within this node, excluding samples in children. for (unsigned i = 0; i < indent; ++i) - dataLog(" "); - dataLog("% 8lld: %s (%lld stack top)\n", + dataLogF(" "); + dataLogF("% 8lld: %s (%lld stack top)\n", static_cast(entry->value.count()), entry->key.utf8().data(), static_cast(entry->value.count() - entry->value.childCount())); -- cgit v1.2.1