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

Issue 2667253004: [profiler] Fix attribution for the top-most interpreted frame. (Closed)

Created:
3 years, 10 months ago by Jarin
Modified:
3 years, 10 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[profiler] Fix attribution for the top-most interpreted frame. Before this change, we attributed samples for the top-most interpreter frame to the second-topmost frame if we were in a bytecode handler with elided frame. With this change we try to detect that we are in a handler without a frame. If we are, we do not drop the topmost frame. For example, consider the program function inner() { var s = 0; for (var i = 0; i < 100000; i++) { s += i * i; } return s; } function trivial() { return inner(); } for (var i = 0; i < 2000; i++) { trivial(); } Before this change, d8 --prof --ignition --nocrankshaft and linux-tick-processor would produce: [JavaScript]: ticks total nonlib name 4885 83.4% 83.5% Function: ~trivial a.js:15:17 759 13.0% 13.0% Function: ~inner a.js:7:15 After this change, we get [JavaScript]: ticks total nonlib name 5486 95.9% 96.2% Function: ~inner a.js:7:15 4 0.1% 0.1% Function: ~trivial a.js:15:17 Review-Url: https://codereview.chromium.org/2667253004 Cr-Original-Commit-Position: refs/heads/master@{#42894} Committed: https://chromium.googlesource.com/v8/v8/+/d07f6540c1f9628ed2ba1fa6507c90db07ccc5f5 Review-Url: https://codereview.chromium.org/2667253004 Cr-Commit-Position: refs/heads/master@{#42924} Committed: https://chromium.googlesource.com/v8/v8/+/e82880b65d6cf73892523f0d0a054838540e75c5

Patch Set 1 #

Patch Set 2 : Tweak #

Patch Set 3 : Added conservative check for interpreted frame. #

Patch Set 4 : ASAN workaround #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -17 lines) Patch
M src/frames.cc View 1 2 3 6 chunks +42 lines, -17 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
Jarin
Could you take a look, please?
3 years, 10 months ago (2017-02-02 12:22:49 UTC) #5
Benedikt Meurer
lgtm
3 years, 10 months ago (2017-02-02 12:24:39 UTC) #6
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/2667253004/20001
3 years, 10 months ago (2017-02-02 12:25:03 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel_ng/builds/16099) v8_linux_arm_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 10 months ago (2017-02-02 13:11:21 UTC) #12
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/2667253004/40001
3 years, 10 months ago (2017-02-02 14:13:57 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/d07f6540c1f9628ed2ba1fa6507c90db07ccc5f5
3 years, 10 months ago (2017-02-02 14:23:30 UTC) #21
Jakob Kummerow
ASan is complaining about SafeStackFrameIterator, see e.g. https://build.chromium.org/p/client.v8/builders/V8%20Mac64%20ASAN/builds/10739/steps/Check%20-%20extra/logs/FunctionCallSample
3 years, 10 months ago (2017-02-03 06:09:58 UTC) #22
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2670843005/ by machenbach@chromium.org. ...
3 years, 10 months ago (2017-02-03 07:37:24 UTC) #23
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/2667253004/60001
3 years, 10 months ago (2017-02-03 12:23:13 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 12:47:44 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/e82880b65d6cf73892523f0d0a054838540...

Powered by Google App Engine
This is Rietveld 408576698