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

Issue 2946033002: Android systrace: Optimize memory dumps. (Closed)

Created:
3 years, 6 months ago by kraynov
Modified:
3 years, 5 months ago
CC:
picksi
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Android systrace: Optimize memory dumps. - Faster parsing of smaps - Smaller dump size, process info mentioned once - Skipping in-kernel workers - Skipping GPU stats for non-app processes - Selective full dumps BUG=catapult:#3437 Review-Url: https://codereview.chromium.org/2946033002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/3b0c0e04db0bd422a420e3e9b45bbbaad1dd978b

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : for review #

Total comments: 14

Patch Set 4 : fix #

Total comments: 5

Patch Set 5 : simplier #

Patch Set 6 : nit #

Patch Set 7 : tiny fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -341 lines) Patch
M systrace/atrace_helper/Makefile View 1 1 chunk +1 line, -1 line 0 comments Download
M systrace/atrace_helper/jni/Android.mk View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
A systrace/atrace_helper/jni/atrace_process_dump.h View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A systrace/atrace_helper/jni/atrace_process_dump.cc View 1 2 3 4 5 6 1 chunk +211 lines, -0 lines 0 comments Download
M systrace/atrace_helper/jni/libmemtrack_wrapper.h View 1 chunk +1 line, -1 line 0 comments Download
M systrace/atrace_helper/jni/logging.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M systrace/atrace_helper/jni/main.cc View 1 2 3 4 4 chunks +45 lines, -138 lines 0 comments Download
M systrace/atrace_helper/jni/process_info.h View 1 2 3 4 1 chunk +24 lines, -55 lines 0 comments Download
M systrace/atrace_helper/jni/process_info.cc View 1 2 3 4 1 chunk +0 lines, -102 lines 0 comments Download
M systrace/atrace_helper/jni/process_memory_stats.h View 1 2 3 6 chunks +13 lines, -8 lines 0 comments Download
M systrace/atrace_helper/jni/process_memory_stats.cc View 1 2 3 4 5 4 chunks +51 lines, -34 lines 0 comments Download
A systrace/atrace_helper/jni/procfs_utils.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A systrace/atrace_helper/jni/procfs_utils.cc View 1 2 3 4 1 chunk +117 lines, -0 lines 0 comments Download
A systrace/atrace_helper/jni/time_utils.h View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A systrace/atrace_helper/jni/time_utils.cc View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
kraynov
PTAL https://codereview.chromium.org/2946033002/diff/40001/systrace/atrace_helper/jni/libmemtrack_wrapper.h File systrace/atrace_helper/jni/libmemtrack_wrapper.h (left): https://codereview.chromium.org/2946033002/diff/40001/systrace/atrace_helper/jni/libmemtrack_wrapper.h#oldcode30 systrace/atrace_helper/jni/libmemtrack_wrapper.h:30: bool has_errors() const { return proc_ != nullptr; ...
3 years, 6 months ago (2017-06-21 14:23:36 UTC) #2
kraynov
Example after running atrace_helper -c 1 -m system_server -g -s https://drive.google.com/open?id=0B-IDmAzWp11ibzZYODlFckZhZEU
3 years, 6 months ago (2017-06-21 14:27:41 UTC) #3
Primiano Tucci (use gerrit)
Looks overall good, but few remarks: 1) This patch is 600 LOC. The median of ...
3 years, 6 months ago (2017-06-22 07:55:52 UTC) #4
kraynov
Updated :) https://codereview.chromium.org/2946033002/diff/40001/systrace/atrace_helper/jni/atrace_process_dump.cc File systrace/atrace_helper/jni/atrace_process_dump.cc (right): https://codereview.chromium.org/2946033002/diff/40001/systrace/atrace_helper/jni/atrace_process_dump.cc#newcode72 systrace/atrace_helper/jni/atrace_process_dump.cc:72: int n_mmaps = mem->mmaps_count(); On 2017/06/22 07:55:51, ...
3 years, 6 months ago (2017-06-22 09:19:45 UTC) #5
Primiano Tucci (use gerrit)
On 2017/06/22 09:19:45, kraynov wrote: > Updated :) This seems still a 600 lines patch. ...
3 years, 6 months ago (2017-06-23 08:50:19 UTC) #6
kraynov
Unfortunately this change has incurred some refactoring and seems to be quite atomic. Also -146 ...
3 years, 6 months ago (2017-06-23 11:44:42 UTC) #7
Primiano Tucci (use gerrit)
On 2017/06/23 11:44:42, kraynov wrote: > Unfortunately this change has incurred some refactoring and seems ...
3 years, 6 months ago (2017-06-23 13:15:38 UTC) #8
Primiano Tucci (use gerrit)
It seems there are still unresolved questions from my previous review, specifically: - atrace_process_dump.cc vs ...
3 years, 6 months ago (2017-06-26 10:07:20 UTC) #9
kraynov
PTAL
3 years, 5 months ago (2017-06-28 14:08:32 UTC) #10
Primiano Tucci (use gerrit)
lgtm
3 years, 5 months ago (2017-06-29 15:21:34 UTC) #11
kraynov
+jreck +ccraik
3 years, 5 months ago (2017-06-29 15:28:29 UTC) #14
John Reck
lgtm
3 years, 5 months ago (2017-06-30 21:11:51 UTC) #15
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/2946033002/120001
3 years, 5 months ago (2017-07-01 21:19:28 UTC) #18
commit-bot: I haz the power
3 years, 5 months ago (2017-07-01 21:44:24 UTC) #21
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698