Index: src/counters.h |
diff --git a/src/counters.h b/src/counters.h |
index 8967c500c54b0932f9532b7c11be6aed0de8338f..c4a20dc30c213c18be674a1f05066d7dab520e12 100644 |
--- a/src/counters.h |
+++ b/src/counters.h |
@@ -15,6 +15,7 @@ |
#include "src/objects.h" |
#include "src/runtime/runtime.h" |
#include "src/tracing/trace-event.h" |
+#include "src/tracing/traced-value.h" |
namespace v8 { |
namespace internal { |
@@ -484,7 +485,7 @@ double AggregatedMemoryHistogram<Histogram>::Aggregate(double current_ms, |
struct RuntimeCallCounter { |
explicit RuntimeCallCounter(const char* name) : name(name) {} |
V8_NOINLINE void Reset(); |
- V8_NOINLINE void Dump(std::stringstream& out); |
+ V8_NOINLINE void Dump(v8::tracing::TracedValue* value); |
const char* name; |
int64_t count = 0; |
@@ -799,7 +800,7 @@ class RuntimeCallStats { |
void Reset(); |
void Print(std::ostream& os); |
- std::string Dump(); |
+ V8_NOINLINE void Dump(v8::tracing::TracedValue* value); |
RuntimeCallStats() { |
Reset(); |
@@ -810,7 +811,6 @@ class RuntimeCallStats { |
bool InUse() { return in_use_; } |
private: |
- std::stringstream buffer_; |
// Counter to track recursive time events. |
RuntimeCallTimer* current_timer_ = NULL; |
// Used to track nested tracing scopes. |