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

Issue 941973002: CpuProfiler: eliminate cpu-profiler dependency from heap-inl.h (Closed)

Created:
5 years, 10 months ago by loislo
Modified:
5 years, 10 months ago
Reviewers:
Sven Panne, alph, yurys
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

CpuProfiler: eliminate cpu-profiler dependency from heap-inl.h We accessed to cpu_profiler for tracking SharedFunctionInfo objects movements and used their addresses for generating function_id. Actually we could replace the manually generated shared_id by the pair script_id + position. In this case we can drop SharedFunctionInfo events support from cpu_profiler and remove the dependency. BTW GetCallUid was used as an unique identifier of the function on the front-end side. Actually it is a hash which might not be unique. So I renamed GetCallUid with GetHash and implemented GetFunctionId method. BUG=452067 LOG=n Committed: https://crrev.com/8ba89cce6daf5be4427ba184ec5f2c25ec2a15a4 Cr-Commit-Position: refs/heads/master@{#26775}

Patch Set 1 #

Patch Set 2 : other platforms were patched #

Total comments: 10

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : comments addressed #

Total comments: 3

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -110 lines) Patch
M src/api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cpu-profiler.h View 4 chunks +1 line, -12 lines 0 comments Download
M src/cpu-profiler.cc View 9 chunks +2 lines, -28 lines 0 comments Download
M src/cpu-profiler-inl.h View 2 chunks +0 lines, -8 lines 0 comments Download
M src/deoptimizer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/heap-inl.h View 2 chunks +3 lines, -8 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/ic/handler-compiler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ic/ic-compiler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/log.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/mips64/lithium-codegen-mips64.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/ppc/lithium-codegen-ppc.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/profile-generator.h View 1 2 10 chunks +17 lines, -15 lines 0 comments Download
M src/profile-generator.cc View 1 2 3 4 8 chunks +37 lines, -35 lines 0 comments Download
M src/profile-generator-inl.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/serialize.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x87/lithium-codegen-x87.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
loislo
PTAL
5 years, 10 months ago (2015-02-20 09:58:57 UTC) #2
yurys
https://codereview.chromium.org/941973002/diff/20001/src/cpu-profiler.h File src/cpu-profiler.h (right): https://codereview.chromium.org/941973002/diff/20001/src/cpu-profiler.h#newcode243 src/cpu-profiler.h:243: virtual void SharedFunctionInfoMoveEvent(Address from, Address to) {} Can we ...
5 years, 10 months ago (2015-02-20 10:17:16 UTC) #3
alph
https://codereview.chromium.org/941973002/diff/20001/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/941973002/diff/20001/src/profile-generator.cc#newcode225 src/profile-generator.cc:225: set_position(shared->start_position()); Can we just add the uid to SharedFunctionInfo?
5 years, 10 months ago (2015-02-20 10:26:35 UTC) #4
loislo
https://codereview.chromium.org/941973002/diff/20001/src/profile-generator.cc File src/profile-generator.cc (left): https://codereview.chromium.org/941973002/diff/20001/src/profile-generator.cc#oldcode175 src/profile-generator.cc:175: hash ^= ComputeIntegerHash(static_cast<uint32_t>(shared_id_), On 2015/02/20 10:17:16, yurys wrote: > ...
5 years, 10 months ago (2015-02-20 10:36:04 UTC) #5
loislo
https://codereview.chromium.org/941973002/diff/20001/src/cpu-profiler.h File src/cpu-profiler.h (right): https://codereview.chromium.org/941973002/diff/20001/src/cpu-profiler.h#newcode243 src/cpu-profiler.h:243: virtual void SharedFunctionInfoMoveEvent(Address from, Address to) {} On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 11:38:04 UTC) #6
alph
https://codereview.chromium.org/941973002/diff/60001/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/941973002/diff/60001/src/profile-generator.cc#newcode198 src/profile-generator.cc:198: (script_id_ != v8::UnboundScript::kNoScriptId || won't it just match all ...
5 years, 10 months ago (2015-02-20 12:03:42 UTC) #8
loislo
https://codereview.chromium.org/941973002/diff/60001/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/941973002/diff/60001/src/profile-generator.cc#newcode198 src/profile-generator.cc:198: (script_id_ != v8::UnboundScript::kNoScriptId || On 2015/02/20 12:03:42, alph wrote: ...
5 years, 10 months ago (2015-02-20 12:21:25 UTC) #9
alph
lgtm https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc#newcode198 src/profile-generator.cc:198: if (script_id_ == entry->script_id_ && position_ == entry->position_) ...
5 years, 10 months ago (2015-02-20 12:25:31 UTC) #11
loislo
On 2015/02/20 12:25:31, alph wrote: > lgtm > > https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc > File src/profile-generator.cc (right): > ...
5 years, 10 months ago (2015-02-20 12:28:53 UTC) #13
yurys
https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc#newcode351 src/profile-generator.cc:351: function_ids_.Lookup(code_entry, code_entry->GetHash(), true); Would it make sense to store ...
5 years, 10 months ago (2015-02-20 12:29:29 UTC) #14
yurys
Also please update issue's description as its main purpose is to make CallUid actually unique ...
5 years, 10 months ago (2015-02-20 12:34:25 UTC) #15
loislo
On 2015/02/20 12:29:29, yurys wrote: > https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc > File src/profile-generator.cc (right): > > https://codereview.chromium.org/941973002/diff/100001/src/profile-generator.cc#newcode351 > ...
5 years, 10 months ago (2015-02-20 13:02:16 UTC) #16
loislo
On 2015/02/20 12:34:25, yurys wrote: > Also please update issue's description as its main purpose ...
5 years, 10 months ago (2015-02-20 13:02:31 UTC) #17
Sven Panne
lgtm LGTM (rubber-stamped)
5 years, 10 months ago (2015-02-20 13:18:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/941973002/120001
5 years, 10 months ago (2015-02-20 13:19:02 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 10 months ago (2015-02-20 13:28:48 UTC) #21
commit-bot: I haz the power
Failed to apply the patch.
5 years, 10 months ago (2015-02-20 13:28:49 UTC) #22
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8ba89cce6daf5be4427ba184ec5f2c25ec2a15a4 Cr-Commit-Position: refs/heads/master@{#26775}
5 years, 10 months ago (2015-02-20 13:29:25 UTC) #23
Michael Achenbach
Side note: Better start tryjobs with "git cl try" as this selects the most important ...
5 years, 10 months ago (2015-02-20 13:54:16 UTC) #24
Sven Panne
5 years, 10 months ago (2015-02-23 07:15:58 UTC) #25
Message was sent while issue was closed.
On 2015/02/20 13:54:16, Michael Achenbach wrote:
> Side note: Better start tryjobs with "git cl try" as this selects the most
> important trybots only which are also used by the CQ. Unless you need the
others
> for a reason...

IIRC, I checked the bots (as a reviewer, so I can't simply do a "git cl try"),
and I always do it that way: Check everything, because I don't know what's
relevant and I've got no clue whatsoever which bots "git cl try" triggers. Can
we have a meta-checkbox which triggers exactly the "git cl try" bots? If not,
I'll probably continue my way... :-)

Powered by Google App Engine
This is Rietveld 408576698