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

Issue 19916002: Move CpuProfiler code create events behind Logger code api. (Closed)

Created:
7 years, 5 months ago by loislo
Modified:
7 years, 5 months ago
Reviewers:
Sven Panne, yurys, Yang
CC:
v8-dev
Visibility:
Public.

Description

Move CpuProfiler code create events behind Logger code api. CpuProfiler has almost the same api for CodeCreate* events but it was calling separately. BUG=260203 R=svenpanne@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15817

Patch Set 1 #

Patch Set 2 : unnecessary change was reverted #

Total comments: 5

Patch Set 3 : comments addressed #

Patch Set 4 : cosmetic changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -27 lines) Patch
M src/cpu-profiler.h View 2 chunks +9 lines, -9 lines 0 comments Download
M src/cpu-profiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/log.cc View 1 2 3 16 chunks +39 lines, -17 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
loislo
7 years, 5 months ago (2013-07-21 13:52:33 UTC) #1
yurys
https://codereview.chromium.org/19916002/diff/2001/src/log.cc File src/log.cc (left): https://codereview.chromium.org/19916002/diff/2001/src/log.cc#oldcode1212 src/log.cc:1212: if (!log_->IsEnabled() || !FLAG_log_code) return; What's the reason for ...
7 years, 5 months ago (2013-07-22 07:39:41 UTC) #2
loislo
https://codereview.chromium.org/19916002/diff/2001/src/log.cc File src/log.cc (left): https://codereview.chromium.org/19916002/diff/2001/src/log.cc#oldcode1212 src/log.cc:1212: if (!log_->IsEnabled() || !FLAG_log_code) return; On 2013/07/22 07:39:41, Yury ...
7 years, 5 months ago (2013-07-22 09:31:42 UTC) #3
yurys
https://codereview.chromium.org/19916002/diff/2001/src/log.cc File src/log.cc (left): https://codereview.chromium.org/19916002/diff/2001/src/log.cc#oldcode1271 src/log.cc:1271: if (!is_logging_code_events()) return; On 2013/07/22 09:31:42, loislo wrote: > ...
7 years, 5 months ago (2013-07-22 09:39:30 UTC) #4
loislo
On 2013/07/22 09:39:30, Yury Semikhatsky wrote: > https://codereview.chromium.org/19916002/diff/2001/src/log.cc > File src/log.cc (left): > > https://codereview.chromium.org/19916002/diff/2001/src/log.cc#oldcode1271 ...
7 years, 5 months ago (2013-07-22 15:22:15 UTC) #5
yurys
lgtm
7 years, 5 months ago (2013-07-22 16:17:52 UTC) #6
Sven Panne
LGTM with a nit https://codereview.chromium.org/19916002/diff/13001/src/log.cc File src/log.cc (right): https://codereview.chromium.org/19916002/diff/13001/src/log.cc#newcode57 src/log.cc:57: #define PROFILER_LOG(Call) \ This macro ...
7 years, 5 months ago (2013-07-23 08:04:20 UTC) #7
loislo
Committed patchset #4 manually as r15817 (presubmit successful).
7 years, 5 months ago (2013-07-23 08:12:24 UTC) #8
loislo
7 years, 5 months ago (2013-07-23 08:12:55 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/19916002/diff/13001/src/log.cc
File src/log.cc (right):

https://codereview.chromium.org/19916002/diff/13001/src/log.cc#newcode57
src/log.cc:57: #define PROFILER_LOG(Call)                               \
On 2013/07/23 08:04:20, Sven Panne wrote:
> This macro is unsafe because of 2 reasons (well, actually more :-):
> 
>    * It contains a sequence of instructions, not a single one.
> 
>    * It has an unbalanced "if".
> 
> Although it doesn't matter at the current call sites, I would prefer a "do {
...
> } while(false)" wrapper around it, just to be sure.

Done.

Powered by Google App Engine
This is Rietveld 408576698