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

Unified Diff: src/counters.cc

Issue 1973473002: [runtime] Record runtime call stats for Map::TransitionTo*Property, JSObject::OptimizeAsPrototype t… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@handler-counters2
Patch Set: Addressing comments and rebasing Created 4 years, 7 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/counters-inl.h » ('j') | src/lookup.cc » ('J')
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 908cbfdd1342aea5b424f01bd76d62bb216f2d7f..197a2ee143173bc8f6039db4bc68fa668a936c26 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -300,6 +300,10 @@ void RuntimeCallStats::CorrectCurrentCounterId(Isolate* isolate,
void RuntimeCallStats::Print(std::ostream& os) {
RuntimeCallStatEntries entries;
+#define PRINT_COUNTER(name) entries.Add(&this->name);
+ FOR_EACH_MANUAL_COUNTER(PRINT_COUNTER)
+#undef PRINT_COUNTER
+
#define PRINT_COUNTER(name, nargs, ressize) entries.Add(&this->Runtime_##name);
FOR_EACH_INTRINSIC(PRINT_COUNTER)
#undef PRINT_COUNTER
@@ -312,10 +316,6 @@ void RuntimeCallStats::Print(std::ostream& os) {
FOR_EACH_HANDLER_COUNTER(PRINT_COUNTER)
#undef PRINT_COUNTER
- entries.Add(&this->ExternalCallback);
- entries.Add(&this->GC);
- entries.Add(&this->UnexpectedStubMiss);
-
entries.Print(os);
}
« no previous file with comments | « src/counters.h ('k') | src/counters-inl.h » ('j') | src/lookup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698