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

Issue 1945673002: [Interpreter] Add a bytecode annotate tool. (Closed)

Created:
4 years, 7 months ago by rmcilroy
Modified:
4 years, 7 months ago
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

[Interpreter] Add a bytecode annotate tool. Adds a tool which enables annotation of the disassembly of bytecode handlers based on perf output. BUG=4899 LOG=N Committed: https://crrev.com/24709a62ce7ad456ab264ae732a5103dc101b159 Cr-Commit-Position: refs/heads/master@{#36145}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -1 line) Patch
A tools/ignition/linux_perf_bytecode_annotate.py View 1 2 1 chunk +174 lines, -0 lines 0 comments Download
A tools/ignition/linux_perf_bytecode_annotate_test.py View 1 chunk +85 lines, -0 lines 0 comments Download
M tools/run-perf.sh View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
rmcilroy
This is a slightly scrappy tool for annotating a bytecode handler's disassembly with perf counts ...
4 years, 7 months ago (2016-05-03 14:31:54 UTC) #3
Jarin
lgtm for run-perf.sh
4 years, 7 months ago (2016-05-06 08:51:41 UTC) #4
rmcilroy
Ping Stefano?
4 years, 7 months ago (2016-05-09 09:59:33 UTC) #5
Stefano Sanfilippo
https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py File tools/ignition/linux_perf_bytecode_annotate.py (right): https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py#newcode58 tools/ignition/linux_perf_bytecode_annotate.py:58: if symbol_and_offset.startswith("BytecodeHandler:" + bytecode_name): nit. Consider hoisting "BytecodeHandler:" + ...
4 years, 7 months ago (2016-05-09 11:06:26 UTC) #6
Stefano Sanfilippo
https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py File tools/ignition/linux_perf_bytecode_annotate.py (right): https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py#newcode93 tools/ignition/linux_perf_bytecode_annotate.py:93: return offsets.pop(0) if offsets else -1 On 2016/05/09 11:06:26, ...
4 years, 7 months ago (2016-05-10 11:24:05 UTC) #7
rmcilroy
Comments addressed, PTAL. https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py File tools/ignition/linux_perf_bytecode_annotate.py (right): https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py#newcode58 tools/ignition/linux_perf_bytecode_annotate.py:58: if symbol_and_offset.startswith("BytecodeHandler:" + bytecode_name): On 2016/05/09 ...
4 years, 7 months ago (2016-05-10 11:37:17 UTC) #8
Stefano Sanfilippo
One comment to address, otherwise LGTM. Thanks. https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py File tools/ignition/linux_perf_bytecode_annotate.py (right): https://codereview.chromium.org/1945673002/diff/20001/tools/ignition/linux_perf_bytecode_annotate.py#newcode156 tools/ignition/linux_perf_bytecode_annotate.py:156: d8_path = ...
4 years, 7 months ago (2016-05-10 12:25:36 UTC) #9
rmcilroy
https://codereview.chromium.org/1945673002/diff/40001/tools/ignition/linux_perf_bytecode_annotate.py File tools/ignition/linux_perf_bytecode_annotate.py (right): https://codereview.chromium.org/1945673002/diff/40001/tools/ignition/linux_perf_bytecode_annotate.py#newcode103 tools/ignition/linux_perf_bytecode_annotate.py:103: percentage = 100 * count / total On 2016/05/10 ...
4 years, 7 months ago (2016-05-10 14:09:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945673002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945673002/60001
4 years, 7 months ago (2016-05-10 14:09:24 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 7 months ago (2016-05-10 15:02:55 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 15:04:43 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/24709a62ce7ad456ab264ae732a5103dc101b159
Cr-Commit-Position: refs/heads/master@{#36145}

Powered by Google App Engine
This is Rietveld 408576698