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

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: Fix memory leak Created 4 years, 4 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
« no previous file with comments | « src/counters.h ('k') | src/d8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.cc
diff --git a/src/counters.cc b/src/counters.cc
index 797630833a35025aa7e64de22fc04045f71b64b3..8a5908c9af3d1dc981235cb5481b1798d0c938c9 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -276,6 +276,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) {
« no previous file with comments | « src/counters.h ('k') | src/d8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698