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

Issue 19346002: Refactor dmprof: Split dmprof.py into modules. (Closed)

Created:
7 years, 5 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
7 years, 5 months ago
Reviewers:
peria, M-A Ruel
CC:
chromium-reviews, dmikurube+memory_chromium.org
Visibility:
Public.

Description

Refactor dmprof: Split dmprof.py into modules. No changes in behavior and the main code. Changes are: - .*Commands are moved into subcommands/. - Other classes and functions are moved into into lib/. - Constants are defined in their appropriate files in lib/. - External libraries are imported via lib/. - "Command" is renamed to "SubCommand". BUG=123750 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211976

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3214 lines, -3154 lines) Patch
M tools/deep_memory_profiler/dmprof.py View 1 2 3 4 5 1 chunk +16 lines, -2971 lines 0 comments Download
A + tools/deep_memory_profiler/lib/__init__.py View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/deep_memory_profiler/lib/bucket.py View 1 2 3 4 5 1 chunk +191 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/dump.py View 1 2 3 4 5 1 chunk +487 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/exceptions.py View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/ordered_dict.py View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/pageframe.py View 1 chunk +163 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/policy.py View 1 1 chunk +404 lines, -0 lines 0 comments Download
A + tools/deep_memory_profiler/lib/range_dict.py View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
A tools/deep_memory_profiler/lib/sorter.py View 1 2 1 chunk +443 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/subcommand.py View 1 1 chunk +160 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/lib/symbol.py View 1 1 chunk +189 lines, -0 lines 0 comments Download
D tools/deep_memory_profiler/range_dict.py View 1 chunk +0 lines, -144 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/__init__.py View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/buckets.py View 1 1 chunk +35 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/cat.py View 1 2 3 4 1 chunk +172 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/expand.py View 1 1 chunk +104 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/map.py View 1 1 chunk +102 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/policies.py View 1 2 1 chunk +375 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/pprof.py View 1 1 chunk +161 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/stacktrace.py View 1 1 chunk +41 lines, -0 lines 0 comments Download
A tools/deep_memory_profiler/subcommands/upload.py View 1 1 chunk +79 lines, -0 lines 0 comments Download
M tools/deep_memory_profiler/tests/dmprof_test.py View 1 4 chunks +25 lines, -27 lines 0 comments Download
M tools/deep_memory_profiler/tests/range_dict_tests.py View 6 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Dai Mikurube (NOT FULLTIME)
Hi maruel@ and peria@, It's the big refactoring of dmprof.py with no changes in the ...
7 years, 5 months ago (2013-07-16 09:15:11 UTC) #1
peria
https://codereview.chromium.org/19346002/diff/6001/tools/deep_memory_profiler/lib/bucket.py File tools/deep_memory_profiler/lib/bucket.py (right): https://codereview.chromium.org/19346002/diff/6001/tools/deep_memory_profiler/lib/bucket.py#newcode13 tools/deep_memory_profiler/lib/bucket.py:13: BUCKET_ID = 5 please put comments what those constants ...
7 years, 5 months ago (2013-07-16 10:30:11 UTC) #2
Dai Mikurube (NOT FULLTIME)
Thanks! Addressed the comments. https://codereview.chromium.org/19346002/diff/6001/tools/deep_memory_profiler/lib/bucket.py File tools/deep_memory_profiler/lib/bucket.py (right): https://codereview.chromium.org/19346002/diff/6001/tools/deep_memory_profiler/lib/bucket.py#newcode13 tools/deep_memory_profiler/lib/bucket.py:13: BUCKET_ID = 5 On 2013/07/16 ...
7 years, 5 months ago (2013-07-16 10:42:39 UTC) #3
peria
https://codereview.chromium.org/19346002/diff/12001/tools/deep_memory_profiler/lib/bucket.py File tools/deep_memory_profiler/lib/bucket.py (right): https://codereview.chromium.org/19346002/diff/12001/tools/deep_memory_profiler/lib/bucket.py#newcode14 tools/deep_memory_profiler/lib/bucket.py:14: BUCKET_ID = 5 If all constant numbers are indexes, ...
7 years, 5 months ago (2013-07-16 11:50:32 UTC) #4
M-A Ruel
mostly lgtm, feel free to commit after addressing these. https://codereview.chromium.org/19346002/diff/12001/tools/deep_memory_profiler/lib/__init__.py File tools/deep_memory_profiler/lib/__init__.py (right): https://codereview.chromium.org/19346002/diff/12001/tools/deep_memory_profiler/lib/__init__.py#newcode5 tools/deep_memory_profiler/lib/__init__.py:5: ...
7 years, 5 months ago (2013-07-16 13:31:32 UTC) #5
Dai Mikurube (NOT FULLTIME)
Thank you! Addressed the comments. What do you think, Peria-san? https://codereview.chromium.org/19346002/diff/12001/tools/deep_memory_profiler/lib/__init__.py File tools/deep_memory_profiler/lib/__init__.py (right): https://codereview.chromium.org/19346002/diff/12001/tools/deep_memory_profiler/lib/__init__.py#newcode5 ...
7 years, 5 months ago (2013-07-17 05:55:06 UTC) #6
peria
lgtm
7 years, 5 months ago (2013-07-17 06:05:04 UTC) #7
Dai Mikurube (NOT FULLTIME)
Thanks! Committing.
7 years, 5 months ago (2013-07-17 06:06:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/19346002/38001
7 years, 5 months ago (2013-07-17 06:08:42 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-17 06:29:01 UTC) #10
Message was sent while issue was closed.
Change committed as 211976

Powered by Google App Engine
This is Rietveld 408576698