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

Issue 2108393002: Split Ticker into two samplers. (Closed)

Created:
4 years, 5 months ago by lpy
Modified:
4 years, 5 months ago
Reviewers:
alph, Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Split Ticker into two samplers. Currently there are two logic in Ticker, one is to try to request a pre-allocated TickSample from CpuProfiler and then initialize it, and if the request fails, it will initialize a local TickSample. The other is it will pass an initialized TickSample to Profiler to log into v8.log. This patch splits Ticker into two samplers, the first one remains in log.cc to collect samples and pass to Profiler for logging, the second one will be called by ProfilerEventsProcessor, and only use the circular queue only. BUG=v8:4789 LOG=N Committed: https://crrev.com/3ca49d9aec99e0d1f0efc8c97a221dcb70312648 Cr-Commit-Position: refs/heads/master@{#37506}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address nits #

Total comments: 8

Patch Set 3 : Address nits. #

Total comments: 2

Patch Set 4 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -56 lines) Patch
M src/log.cc View 1 2 3 2 chunks +4 lines, -12 lines 0 comments Download
M src/profiler/cpu-profiler.h View 1 4 chunks +4 lines, -7 lines 0 comments Download
M src/profiler/cpu-profiler.cc View 1 2 3 5 chunks +38 lines, -15 lines 0 comments Download
M src/profiler/cpu-profiler-inl.h View 1 chunk +0 lines, -11 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 6 chunks +16 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
lpy
PTAL.
4 years, 5 months ago (2016-06-30 01:08:14 UTC) #2
alph
lgtm w/ nits https://codereview.chromium.org/2108393002/diff/1/src/log.cc File src/log.cc (right): https://codereview.chromium.org/2108393002/diff/1/src/log.cc#newcode656 src/log.cc:656: if (is_counting_samples_ && !sample.timestamp.IsNull()) { Is ...
4 years, 5 months ago (2016-06-30 01:21:02 UTC) #3
alph
some more nits https://codereview.chromium.org/2108393002/diff/20001/src/log.cc File src/log.cc (right): https://codereview.chromium.org/2108393002/diff/20001/src/log.cc#newcode647 src/log.cc:647: v8::Isolate* v8_isolate = isolate(); if (!profiler_) ...
4 years, 5 months ago (2016-06-30 21:01:48 UTC) #5
lpy
Thanks, I updated the CL. Yang@, ptal. https://codereview.chromium.org/2108393002/diff/1/src/log.cc File src/log.cc (right): https://codereview.chromium.org/2108393002/diff/1/src/log.cc#newcode656 src/log.cc:656: if (is_counting_samples_ ...
4 years, 5 months ago (2016-06-30 21:13:04 UTC) #6
alph
https://codereview.chromium.org/2108393002/diff/40001/src/profiler/cpu-profiler.cc File src/profiler/cpu-profiler.cc (right): https://codereview.chromium.org/2108393002/diff/40001/src/profiler/cpu-profiler.cc#newcode35 src/profiler/cpu-profiler.cc:35: regs.pc = state.pc; Why don't you want keep it ...
4 years, 5 months ago (2016-06-30 21:25:10 UTC) #7
lpy
https://codereview.chromium.org/2108393002/diff/40001/src/profiler/cpu-profiler.cc File src/profiler/cpu-profiler.cc (right): https://codereview.chromium.org/2108393002/diff/40001/src/profiler/cpu-profiler.cc#newcode35 src/profiler/cpu-profiler.cc:35: regs.pc = state.pc; On 2016/06/30 21:25:10, alph wrote: > ...
4 years, 5 months ago (2016-06-30 21:34:46 UTC) #8
Yang
On 2016/06/30 21:34:46, lpy wrote: > https://codereview.chromium.org/2108393002/diff/40001/src/profiler/cpu-profiler.cc > File src/profiler/cpu-profiler.cc (right): > > https://codereview.chromium.org/2108393002/diff/40001/src/profiler/cpu-profiler.cc#newcode35 > ...
4 years, 5 months ago (2016-07-04 11:02:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108393002/60001
4 years, 5 months ago (2016-07-04 18:58:42 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-04 19:21:46 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 19:23:14 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3ca49d9aec99e0d1f0efc8c97a221dcb70312648
Cr-Commit-Position: refs/heads/master@{#37506}

Powered by Google App Engine
This is Rietveld 408576698