Small update to experimental profiler flags
Review URL: https://chromiumcodereview.appspot.com/9360041 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10701 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
0be449d684
commit
866e0eeeb7
@ -168,18 +168,20 @@ DEFINE_int(loop_weight, 1, "loop weight for representation inference")
|
||||
// Experimental profiler changes.
|
||||
DEFINE_bool(experimental_profiler, false, "enable all profiler experiments")
|
||||
DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability")
|
||||
DEFINE_int(frame_count, 2, "number of stack frames inspected by the profiler")
|
||||
DEFINE_bool(self_optimization, false,
|
||||
"primitive functions trigger their own optimization")
|
||||
DEFINE_bool(count_based_interrupts, false,
|
||||
"trigger profiler ticks based on counting instead of timing")
|
||||
DEFINE_bool(weighted_back_edges, false,
|
||||
"weight back edges by jump distance for interrupt triggering")
|
||||
DEFINE_int(interrupt_budget, 100,
|
||||
DEFINE_int(interrupt_budget, 10000,
|
||||
"execution budget before interrupt is triggered")
|
||||
|
||||
DEFINE_implication(experimental_profiler, watch_ic_patching)
|
||||
DEFINE_implication(experimental_profiler, self_optimization)
|
||||
DEFINE_implication(experimental_profiler, count_based_interrupts)
|
||||
DEFINE_implication(experimental_profiler, weighted_back_edges)
|
||||
|
||||
// assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc
|
||||
DEFINE_bool(debug_code, false,
|
||||
|
@ -205,8 +205,10 @@ void RuntimeProfiler::OptimizeNow() {
|
||||
JSFunction* samples[kSamplerFrameCount];
|
||||
int sample_count = 0;
|
||||
int frame_count = 0;
|
||||
int frame_count_limit = FLAG_watch_ic_patching ? FLAG_frame_count
|
||||
: kSamplerFrameCount;
|
||||
for (JavaScriptFrameIterator it(isolate_);
|
||||
frame_count++ < kSamplerFrameCount && !it.done();
|
||||
frame_count++ < frame_count_limit && !it.done();
|
||||
it.Advance()) {
|
||||
JavaScriptFrame* frame = it.frame();
|
||||
JSFunction* function = JSFunction::cast(frame->function());
|
||||
|
Loading…
Reference in New Issue
Block a user