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

Issue 177003017: Optimize execution time of the memdump tool (Closed)

Created:
6 years, 10 months ago by hyunki
Modified:
6 years, 9 months ago
Reviewers:
Philippe, dw.im
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Optimize execution time of the memdump tool In GalaxyNote3 device, the execution time of memdump takes 5.3s. Among overall time, GetPagesForMemoryMap function took more than 4s. This patch removes unnecessary divisions and lseek operations for the hot loop in GetPagesForMemoryMap. It reduced the execution time from 5.3s to 4.7s on the GalaxyNote3. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253792

Patch Set 1 #

Total comments: 6

Patch Set 2 : add 'const' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M tools/android/memdump/memdump.cc View 1 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
hyunki
I have made a script tool to use memdump periodically to find peak memory usage ...
6 years, 10 months ago (2014-02-26 11:30:16 UTC) #1
Philippe
Thanks Hyunki, lgtm! (I only have minor comments) Out of curiosity, are you using the ...
6 years, 10 months ago (2014-02-26 12:05:47 UTC) #2
hyunki
On 2014/02/26 12:05:47, Philippe wrote: > Thanks Hyunki, lgtm! (I only have minor comments) > ...
6 years, 10 months ago (2014-02-26 13:12:21 UTC) #3
Philippe
On 2014/02/26 13:12:21, hyunki wrote: > On 2014/02/26 12:05:47, Philippe wrote: > > Thanks Hyunki, ...
6 years, 10 months ago (2014-02-26 13:13:52 UTC) #4
hyunki
https://codereview.chromium.org/177003017/diff/1/tools/android/memdump/memdump.cc File tools/android/memdump/memdump.cc (right): https://codereview.chromium.org/177003017/diff/1/tools/android/memdump/memdump.cc#newcode203 tools/android/memdump/memdump.cc:203: off64_t offset = memory_map.start_address / kPageSize; On 2014/02/26 12:05:48, ...
6 years, 10 months ago (2014-02-27 01:15:06 UTC) #5
hyunki
The CQ bit was checked by hyunki.baik@samsung.com
6 years, 10 months ago (2014-02-27 01:15:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hyunki.baik@samsung.com/177003017/20001
6 years, 10 months ago (2014-02-27 01:18:01 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-27 03:21:22 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 10 months ago (2014-02-27 03:21:23 UTC) #9
hyunki
The CQ bit was checked by hyunki.baik@samsung.com
6 years, 10 months ago (2014-02-27 04:06:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hyunki.baik@samsung.com/177003017/20001
6 years, 10 months ago (2014-02-27 04:08:49 UTC) #11
hyunki
The CQ bit was unchecked by hyunki.baik@samsung.com
6 years, 9 months ago (2014-02-27 13:13:16 UTC) #12
hyunki
The CQ bit was checked by hyunki.baik@samsung.com
6 years, 9 months ago (2014-02-27 13:13:30 UTC) #13
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 13:56:25 UTC) #14
Message was sent while issue was closed.
Change committed as 253792

Powered by Google App Engine
This is Rietveld 408576698