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

Unified Diff: src/counters.cc

Issue 2422143002: Do not inline object-stats functions to reduce binary size. (Closed)
Patch Set: remove debugging code Created 4 years, 2 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/heap/object-stats.h » ('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 c4e86460aa1140054a09f1f0abc0a1350e4054da..df75e212791d1743001334ae4047e761d6d62f18 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -238,7 +238,7 @@ class RuntimeCallStatEntries {
return count_ < other.count_;
}
- void Print(std::ostream& os) {
+ V8_NOINLINE void Print(std::ostream& os) {
os.precision(2);
os << std::fixed << std::setprecision(2);
os << std::setw(50) << name_;
@@ -249,7 +249,8 @@ class RuntimeCallStatEntries {
os << std::endl;
}
- void SetTotal(base::TimeDelta total_time, uint64_t total_count) {
+ V8_NOINLINE void SetTotal(base::TimeDelta total_time,
+ uint64_t total_count) {
if (total_time.InMicroseconds() == 0) {
time_percent_ = 0;
} else {
« no previous file with comments | « src/counters.h ('k') | src/heap/object-stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698