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

Issue 9655016: Enable Deep Memory Profiler in perf_endure.py. (Closed)

Created:
8 years, 9 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, dennis_jeffrey, John Grabowski, anantha, dyu1, Nirnimesh
Visibility:
Public.

Description

Enable Deep Memory Profiler in perf_endure.py. It outputs 'tc-used-all' (Total bytes of allocated TCMalloc memory chunks) as the first step. BUG=122119 TEST=run perf_endure.py with environment variables DEEP_MEMORY_PROFILE=True DEEP_MEMORY_PROFILE_INTERVAL=20 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136248

Patch Set 1 #

Patch Set 2 : rebased. #

Patch Set 3 : updated. (rebased.) #

Patch Set 4 : refined. #

Patch Set 5 : #

Total comments: 35

Patch Set 6 : updated. (still ongoing work: contains testing/debugging code) #

Patch Set 7 : refined. dmprof works in background. #

Total comments: 44

Patch Set 8 : Reflected Dennis's comments. #

Patch Set 9 : modified comments. #

Patch Set 10 : parse JSON. #

Patch Set 11 : don't run DMP by default. #

Total comments: 4

Patch Set 12 : reflected the comments. #

Patch Set 13 : a new function WaitForDeepMemoryProfiler #

Patch Set 14 : modified and removed some TODOs. #

Patch Set 15 : rebased. #

Patch Set 16 : fixed for rebasing, and changed CHROME_BIN_PATH with BrowserPath() #

Patch Set 17 : Output tc-used-all at first (example output) #

Total comments: 23

Patch Set 18 : reflected Dennis's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -6 lines) Patch
M chrome/test/functional/perf_endure.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +199 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Dai Mikurube (NOT FULLTIME)
Hi Dennis, Nirnimesh, It's still ongoing, but could you take a brief look at this ...
8 years, 8 months ago (2012-04-09 09:10:40 UTC) #1
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/9655016/diff/10001/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://codereview.chromium.org/9655016/diff/10001/chrome/test/functional/perf_endure.py#newcode369 chrome/test/functional/perf_endure.py:369: # TODO(dmikurube): Have to specify "--no-sandbox" for Chrome. Note: ...
8 years, 8 months ago (2012-04-09 09:20:26 UTC) #2
Nirnimesh
http://codereview.chromium.org/9655016/diff/10001/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://codereview.chromium.org/9655016/diff/10001/chrome/test/functional/perf_endure.py#newcode28 chrome/test/functional/perf_endure.py:28: DMPROF_DIR_PATH = os.path.join(os.path.dirname(__file__), Unless you want these vars to ...
8 years, 8 months ago (2012-04-09 18:46:44 UTC) #3
dennis_jeffrey
http://codereview.chromium.org/9655016/diff/10001/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://codereview.chromium.org/9655016/diff/10001/chrome/test/functional/perf_endure.py#newcode145 chrome/test/functional/perf_endure.py:145: if self._iteration_num % 20 == 5: We'll likely want ...
8 years, 8 months ago (2012-04-09 19:12:38 UTC) #4
Dai Mikurube (NOT FULLTIME)
Thank you for looking, Dennis and Nirnimesh. And, sorry for my less description. It's just ...
8 years, 8 months ago (2012-04-11 08:44:02 UTC) #5
dennis_jeffrey
I answered a few questions you had in your comments, and here are some additional ...
8 years, 8 months ago (2012-04-12 00:51:52 UTC) #6
Dai Mikurube (NOT FULLTIME)
Thanks, Dennis. At first, I was forgetting an important fact about PyAuto API. When I ...
8 years, 8 months ago (2012-04-13 11:16:48 UTC) #7
Dai Mikurube (NOT FULLTIME)
Updated. This version supports background dmprof execution since dmprof may take long time (especially for ...
8 years, 8 months ago (2012-04-16 09:43:20 UTC) #8
dennis_jeffrey
Hi Dai - I don't believe that pyauto can interact directly with a renderer process. ...
8 years, 8 months ago (2012-04-17 01:20:27 UTC) #9
Dai Mikurube (NOT FULLTIME)
Thanks, Dennis. Ok, so I should add an IPC interface on the renderer side, and ...
8 years, 8 months ago (2012-04-17 06:33:11 UTC) #10
dennis_jeffrey
Thanks! Also, I was talking to gpike and he mentioned again about the issue with ...
8 years, 8 months ago (2012-04-17 22:36:14 UTC) #11
Dai Mikurube (NOT FULLTIME)
Thanks, Dennis. For address space randomization, DMP is showing reasonable results in Chrome Linux. No ...
8 years, 8 months ago (2012-04-18 04:59:51 UTC) #12
Dai Mikurube (NOT FULLTIME)
Besides, please ping me when multi-line graphs are available for perf_endure. :)
8 years, 8 months ago (2012-04-18 07:44:43 UTC) #13
dennisjeffrey
Hi Dai - I'll let you know about the multi-line graphs. I'm trying to get ...
8 years, 8 months ago (2012-04-19 00:45:02 UTC) #14
Dai Mikurube (NOT FULLTIME)
Thank you, Dennis. Talking w/ gpike@ sounds helpful to understand the current situation. E-mails might ...
8 years, 8 months ago (2012-04-19 02:33:26 UTC) #15
dennisjeffrey
Hi Dai, The latest _OutputPerfGraphValue still accepts an array of all values like before. However, ...
8 years, 8 months ago (2012-04-20 00:50:01 UTC) #16
Dai Mikurube (NOT FULLTIME)
Hi Dennis, Thank you for the description. Ok - I'll add a code to compute ...
8 years, 8 months ago (2012-04-20 06:50:15 UTC) #17
Dai Mikurube (NOT FULLTIME)
Hi Dennis, Nirnimesh, Updated the patch. As the first step, it outputs 'tc-used-all' values by ...
8 years, 7 months ago (2012-05-07 11:56:33 UTC) #18
dennis_jeffrey
Cool! Some comments for the latest patch set. http://codereview.chromium.org/9655016/diff/42002/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://codereview.chromium.org/9655016/diff/42002/chrome/test/functional/perf_endure.py#newcode35 chrome/test/functional/perf_endure.py:35: add ...
8 years, 7 months ago (2012-05-09 04:31:47 UTC) #19
Dai Mikurube (NOT FULLTIME)
Thank you, Dennis! Updated the patch. http://codereview.chromium.org/9655016/diff/42002/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://codereview.chromium.org/9655016/diff/42002/chrome/test/functional/perf_endure.py#newcode35 chrome/test/functional/perf_endure.py:35: On 2012/05/09 04:31:47, ...
8 years, 7 months ago (2012-05-09 07:44:33 UTC) #20
dennis_jeffrey
LGTM Awesome! Thanks for addressing all my comments. http://codereview.chromium.org/9655016/diff/42002/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://codereview.chromium.org/9655016/diff/42002/chrome/test/functional/perf_endure.py#newcode55 chrome/test/functional/perf_endure.py:55: _CHROME_BIN_PATH ...
8 years, 7 months ago (2012-05-09 23:03:55 UTC) #21
Dai Mikurube (NOT FULLTIME)
Thanks, Dennis! Checked the "Commit" box.
8 years, 7 months ago (2012-05-10 01:45:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/9655016/49002
8 years, 7 months ago (2012-05-10 01:47:08 UTC) #23
commit-bot: I haz the power
Try job failure for 9655016-49002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-10 02:14:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/9655016/49002
8 years, 7 months ago (2012-05-10 02:39:20 UTC) #25
commit-bot: I haz the power
Try job failure for 9655016-49002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-10 03:04:08 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/9655016/49002
8 years, 7 months ago (2012-05-10 03:34:09 UTC) #27
commit-bot: I haz the power
8 years, 7 months ago (2012-05-10 05:41:14 UTC) #28
Change committed as 136248

Powered by Google App Engine
This is Rietveld 408576698