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

Issue 23455036: Check if timeout has expired after processing each sample (Closed)

Created:
7 years, 3 months ago by yurys
Modified:
7 years, 3 months ago
Reviewers:
Benedikt Meurer, loislo
CC:
v8-dev
Visibility:
Public.

Description

Check if timeout has expired after processing each sample To avoid long intervals between taking samples due to processing all accumulated samples at once, the samples are processed one by one and we check if the sampling interval has elapsed after each step rather than after processing all the samples in the queue. This is a modified version of r16549 whith a fix for test flakiness. The test flakiness introduced by the previous version of this changed was fixed by changing return type of ProfilerEventsProcessor::ProcessOneSample from bool to enum with 3 options. In the main profiling loop we decide that the next code event should be processed when sample with a greater ordinal number is encountered. When processing remaining samples we shouldn't wait for more samples and if the samples queue is empty we just process next code event. BUG=v8:2814, v8:2871 R=bmeurer@chromium.org, loislo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16564

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -34 lines) Patch
M src/cpu-profiler.h View 1 chunk +6 lines, -2 lines 0 comments Download
M src/cpu-profiler.cc View 1 chunk +36 lines, -32 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
yurys
7 years, 3 months ago (2013-09-05 14:53:47 UTC) #1
loislo
https://codereview.chromium.org/23455036/diff/1/src/cpu-profiler.cc File src/cpu-profiler.cc (right): https://codereview.chromium.org/23455036/diff/1/src/cpu-profiler.cc#newcode119 src/cpu-profiler.cc:119: if (ticks_from_vm_buffer_.IsEmpty()) return NoSamplesInQueue; I'd move this statement to ...
7 years, 3 months ago (2013-09-05 14:56:51 UTC) #2
yurys
https://codereview.chromium.org/23455036/diff/1/src/cpu-profiler.cc File src/cpu-profiler.cc (right): https://codereview.chromium.org/23455036/diff/1/src/cpu-profiler.cc#newcode119 src/cpu-profiler.cc:119: if (ticks_from_vm_buffer_.IsEmpty()) return NoSamplesInQueue; On 2013/09/05 14:56:51, loislo wrote: ...
7 years, 3 months ago (2013-09-05 15:00:03 UTC) #3
loislo
lgtm
7 years, 3 months ago (2013-09-05 15:05:18 UTC) #4
Benedikt Meurer
LGTM.
7 years, 3 months ago (2013-09-06 06:16:11 UTC) #5
yurys
7 years, 3 months ago (2013-09-06 06:25:34 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 manually as r16564 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698