Revision: 15253
Author:   [email protected]
Date:     Thu Jun 20 09:53:22 2013
Log:      Add counters for requested/inserted/executed soft deopts

[email protected]

Review URL: https://codereview.chromium.org/17498003
http://code.google.com/p/v8/source/detail?r=15253

Modified:
 /branches/bleeding_edge/src/deoptimizer.cc
 /branches/bleeding_edge/src/hydrogen.cc
 /branches/bleeding_edge/src/v8-counters.h

=======================================
--- /branches/bleeding_edge/src/deoptimizer.cc  Thu Jun 20 05:51:36 2013
+++ /branches/bleeding_edge/src/deoptimizer.cc  Thu Jun 20 09:53:22 2013
@@ -547,6 +547,7 @@
   if (function != NULL && function->IsOptimized()) {
     function->shared()->increment_deopt_count();
     if (bailout_type_ == Deoptimizer::SOFT) {
+      isolate->counters()->soft_deopts_executed()->Increment();
// Soft deopts shouldn't count against the overall re-optimization count
       // that can eventually lead to disabling optimization for a function.
       int opt_count = function->shared()->opt_count();
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Thu Jun 20 07:20:15 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Thu Jun 20 09:53:22 2013
@@ -4664,9 +4664,11 @@


 void HOptimizedGraphBuilder::AddSoftDeoptimize() {
+  isolate()->counters()->soft_deopts_requested()->Increment();
   if (FLAG_always_opt) return;
   if (current_block()->IsDeoptimizing()) return;
   AddInstruction(new(zone()) HSoftDeoptimize());
+  isolate()->counters()->soft_deopts_inserted()->Increment();
   current_block()->MarkAsDeoptimizing();
   graph()->set_has_soft_deoptimize(true);
 }
=======================================
--- /branches/bleeding_edge/src/v8-counters.h   Wed Jun 19 09:50:38 2013
+++ /branches/bleeding_edge/src/v8-counters.h   Thu Jun 20 09:53:22 2013
@@ -238,6 +238,9 @@
   SC(transcendental_cache_miss, V8.TranscendentalCacheMiss)           \
   SC(stack_interrupts, V8.StackInterrupts)                            \
   SC(runtime_profiler_ticks, V8.RuntimeProfilerTicks)                 \
+  SC(soft_deopts_requested, V8.SoftDeoptsRequested)                   \
+  SC(soft_deopts_inserted, V8.SoftDeoptsInserted)                     \
+  SC(soft_deopts_executed, V8.SoftDeoptsExecuted)                     \
   SC(new_space_bytes_available, V8.MemoryNewSpaceBytesAvailable)      \
   SC(new_space_bytes_committed, V8.MemoryNewSpaceBytesCommitted)      \
   SC(new_space_bytes_used, V8.MemoryNewSpaceBytesUsed)                \

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to