Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: src/counters.cc

Issue 2187693002: [Tracing] Embed V8 runtime call stats into tracing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/counters.cc
diff --git a/src/counters.cc b/src/counters.cc
index 57dad3db1d9a22409a163d3218794b384180a044..829c94d9568bc2fd05f0ec553492abeeda88f577 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -273,6 +273,11 @@ void RuntimeCallCounter::Reset() {
time = base::TimeDelta();
}
+void RuntimeCallCounter::Dump(std::stringstream& out) {
+ out << "\"" << name << "\":[" << count << "," << time.InMicroseconds()
+ << "],";
+}
+
// static
void RuntimeCallStats::Enter(Isolate* isolate, RuntimeCallTimer* timer,
CounterId counter_id) {

Powered by Google App Engine
This is Rietveld 408576698