summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/bytecode/ExecutionCounter.cpp')
-rw-r--r--Source/JavaScriptCore/bytecode/ExecutionCounter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp b/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp
index 12a404981..e619a0376 100644
--- a/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp
+++ b/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp
@@ -160,11 +160,9 @@ void ExecutionCounter::reset()
m_activeThreshold = 0;
}
-const char* ExecutionCounter::status() const
+void ExecutionCounter::dump(PrintStream& out) const
{
- static char result[80];
- snprintf(result, sizeof(result), "%lf/%lf, %d", count(), static_cast<double>(m_activeThreshold), m_counter);
- return result;
+ out.printf("%lf/%lf, %d", count(), static_cast<double>(m_activeThreshold), m_counter);
}
} // namespace JSC