X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..a253471d7f8e4d91bf6ebabab00155c3b387d3d0:/profiler/Profile.cpp diff --git a/profiler/Profile.cpp b/profiler/Profile.cpp index 1a84518..49d6de9 100644 --- a/profiler/Profile.cpp +++ b/profiler/Profile.cpp @@ -28,6 +28,7 @@ #include "ProfileNode.h" #include +#include namespace JSC { @@ -102,7 +103,7 @@ void Profile::restoreAll() #ifndef NDEBUG void Profile::debugPrintData() const { - printf("Call graph:\n"); + dataLog("Call graph:\n"); m_head->debugPrintData(0); } @@ -118,18 +119,18 @@ void Profile::debugPrintDataSampleStyle() const typedef Vector NameCountPairVector; FunctionCallHashCount countedFunctions; - printf("Call graph:\n"); + dataLog("Call graph:\n"); m_head->debugPrintDataSampleStyle(0, countedFunctions); - printf("\nTotal number in stack:\n"); + dataLog("\nTotal number in stack:\n"); NameCountPairVector sortedFunctions(countedFunctions.size()); copyToVector(countedFunctions, sortedFunctions); std::sort(sortedFunctions.begin(), sortedFunctions.end(), functionNameCountPairComparator); for (NameCountPairVector::iterator it = sortedFunctions.begin(); it != sortedFunctions.end(); ++it) - printf(" %-12d%s\n", (*it).second, UString((*it).first).utf8().data()); + dataLog(" %-12d%s\n", (*it).second, UString((*it).first).utf8().data()); - printf("\nSort by top of stack, same collapsed (when >= 5):\n"); + dataLog("\nSort by top of stack, same collapsed (when >= 5):\n"); } #endif