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

Side by Side Diff: src/runtime-profiler.cc

Issue 864453002: Remove bogus filter from runtime-profiler tracing. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/runtime-profiler.h" 7 #include "src/runtime-profiler.h"
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } else { 84 } else {
85 *type_info_percentage = 100; // Compared against lower bound. 85 *type_info_percentage = 100; // Compared against lower bound.
86 *generic_percentage = 0; // Compared against upper bound. 86 *generic_percentage = 0; // Compared against upper bound.
87 } 87 }
88 } 88 }
89 89
90 90
91 void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) { 91 void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) {
92 DCHECK(function->IsOptimizable()); 92 DCHECK(function->IsOptimizable());
93 93
94 if (FLAG_trace_opt && function->PassesFilter(FLAG_hydrogen_filter)) { 94 if (FLAG_trace_opt) {
95 PrintF("[marking "); 95 PrintF("[marking ");
96 function->ShortPrint(); 96 function->ShortPrint();
97 PrintF(" for recompilation, reason: %s", reason); 97 PrintF(" for recompilation, reason: %s", reason);
98 if (FLAG_type_info_threshold > 0) { 98 if (FLAG_type_info_threshold > 0) {
99 int typeinfo, generic, total, type_percentage, generic_percentage; 99 int typeinfo, generic, total, type_percentage, generic_percentage;
100 GetICCounts(function->shared(), &typeinfo, &generic, &total, 100 GetICCounts(function->shared(), &typeinfo, &generic, &total,
101 &type_percentage, &generic_percentage); 101 &type_percentage, &generic_percentage);
102 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total, 102 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total,
103 type_percentage); 103 type_percentage);
104 PrintF(", generic ICs: %d/%d (%d%%)", generic, total, generic_percentage); 104 PrintF(", generic ICs: %d/%d (%d%%)", generic, total, generic_percentage);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 257 }
258 } else { 258 } else {
259 shared_code->set_profiler_ticks(ticks + 1); 259 shared_code->set_profiler_ticks(ticks + 1);
260 } 260 }
261 } 261 }
262 any_ic_changed_ = false; 262 any_ic_changed_ = false;
263 } 263 }
264 264
265 265
266 } } // namespace v8::internal 266 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698