BUG=none
R=hpayer@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/
604543002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24200
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
int actual_time_ms = static_cast<int>(timer.Elapsed().InMilliseconds());
if (actual_time_ms <= idle_time_in_ms) {
- isolate()->counters()->gc_idle_time_limit_undershot()->AddSample(
- idle_time_in_ms - actual_time_ms);
+ if (action.type != DONE && action.type != DO_NOTHING) {
+ isolate()->counters()->gc_idle_time_limit_undershot()->AddSample(
+ idle_time_in_ms - actual_time_ms);
+ }
} else {
isolate()->counters()->gc_idle_time_limit_overshot()->AddSample(
actual_time_ms - idle_time_in_ms);