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

Issue 18053004: CpuProfiler: eliminate 2 layers of 4 for CodeCreateEvent calls. (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

CpuProfiler: eliminate 2 layers of 4 for CodeCreateEvent calls. The bodies of methods in ProfilerEventProcessor were moved into CpuProfiler. Multiple NewCodeEntry methods in CpuProfilesCollection were replaced with one which simply passes arguments to the CodeEntry constructor. And CpuProfiler just calls this method when it needs a CodeEntry object. This NewCodeEntry method is required because CpuProfilesCollection keeps ownership of CodeEntry objects. BUG=255392 TEST=existing tests R=yangguo@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15405 Committed: https://code.google.com/p/v8/source/detail?r=15407

Patch Set 1 #

Patch Set 2 : all tests were fixed #

Total comments: 14

Patch Set 3 : comments addressed #

Patch Set 4 : const & was fixed #

Total comments: 4

Patch Set 5 : comments addressed #

Patch Set 6 : win32 compile error was fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -368 lines) Patch
M src/cpu-profiler.h View 1 2 3 5 chunks +23 lines, -32 lines 0 comments Download
M src/cpu-profiler.cc View 1 2 3 6 chunks +144 lines, -162 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M src/profile-generator.h View 1 2 3 4 3 chunks +14 lines, -14 lines 0 comments Download
M src/profile-generator.cc View 1 2 3 chunks +19 lines, -49 lines 0 comments Download
M src/profile-generator-inl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 2 3 4 5 4 chunks +111 lines, -73 lines 0 comments Download
M test/cctest/test-profile-generator.cc View 11 chunks +26 lines, -27 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
loislo
7 years, 5 months ago (2013-06-28 09:12:58 UTC) #1
yurys
https://codereview.chromium.org/18053004/diff/2001/src/cpu-profiler-inl.h File src/cpu-profiler-inl.h (right): https://codereview.chromium.org/18053004/diff/2001/src/cpu-profiler-inl.h#newcode78 src/cpu-profiler-inl.h:78: void ProfilerEventsProcessor::Enqueue(CodeEventsContainer* event) { The argument should be "const ...
7 years, 5 months ago (2013-06-28 11:33:43 UTC) #2
loislo
https://codereview.chromium.org/18053004/diff/2001/src/cpu-profiler.cc File src/cpu-profiler.cc (right): https://codereview.chromium.org/18053004/diff/2001/src/cpu-profiler.cc#newcode230 src/cpu-profiler.cc:230: const char* comment) { On 2013/06/28 11:33:43, Yury Semikhatsky ...
7 years, 5 months ago (2013-06-28 12:33:12 UTC) #3
yurys
lgtm https://codereview.chromium.org/18053004/diff/8002/src/profile-generator-inl.h File src/profile-generator-inl.h (right): https://codereview.chromium.org/18053004/diff/8002/src/profile-generator-inl.h#newcode99 src/profile-generator-inl.h:99: Revert? https://codereview.chromium.org/18053004/diff/8002/src/profile-generator.h File src/profile-generator.h (right): https://codereview.chromium.org/18053004/diff/8002/src/profile-generator.h#newcode334 src/profile-generator.h:334: Name* ...
7 years, 5 months ago (2013-06-28 12:53:43 UTC) #4
loislo
On 2013/06/28 12:53:43, Yury Semikhatsky wrote: > lgtm > comments addressed
7 years, 5 months ago (2013-06-28 17:02:10 UTC) #5
Yang
On 2013/06/28 17:02:10, loislo wrote: > On 2013/06/28 12:53:43, Yury Semikhatsky wrote: > > lgtm ...
7 years, 5 months ago (2013-07-01 09:36:11 UTC) #6
loislo
Committed patchset #5 manually as r15405 (presubmit successful).
7 years, 5 months ago (2013-07-01 09:39:27 UTC) #7
loislo
7 years, 5 months ago (2013-07-01 10:12:14 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 manually as r15407 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698