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

Issue 754203004: There is a cyclic import in dmprof

Created:
6 years ago by wensheng
Modified:
6 years ago
CC:
chromium-reviews, Dai Mikurube (NOT FULLTIME)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

There is a cyclic import in dmprof Cyclic import (lib.deep_dump -> lib.dump) dues to new pylint checker. R=kouhei@chromium.org BUG=439878

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -36 lines) Patch
M tools/deep_memory_profiler/lib/deep_dump.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/deep_memory_profiler/lib/dump.py View 2 chunks +1 line, -34 lines 0 comments Download
A tools/deep_memory_profiler/lib/dumplist.py View 1 chunk +35 lines, -0 lines 0 comments Download
M tools/deep_memory_profiler/lib/subcommand.py View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
wensheng
6 years ago (2014-12-08 08:03:14 UTC) #1
wensheng
On 2014/12/08 08:03:14, wensheng wrote: As my understand, Dump is base class of DeepDump, but ...
6 years ago (2014-12-08 08:08:53 UTC) #2
Dai Mikurube (NOT FULLTIME)
I remember that DeepDump was introduced to support multiple dump formats (like Android heap dump), ...
6 years ago (2014-12-08 12:35:34 UTC) #4
Dai Mikurube (NOT FULLTIME)
Ah, it doesn't fix the cyclic import error. But, I think I imported DeepDump from ...
6 years ago (2014-12-08 12:45:27 UTC) #5
wensheng
On 2014/12/08 12:45:27, Dai Mikurube (NOT FULLTIME) wrote: > Ah, it doesn't fix the cyclic ...
6 years ago (2014-12-09 02:53:39 UTC) #6
Dai Mikurube (NOT FULLTIME)
Okay, how about: 1) Remove DeepDump.load. 2) Change "from lib.deep_dump import DeepDump" to "import lib.deep_dump" ...
6 years ago (2014-12-09 03:05:29 UTC) #7
wensheng
6 years ago (2014-12-09 03:18:30 UTC) #8
On 2014/12/09 03:05:29, Dai Mikurube (NOT FULLTIME) wrote:
> Okay, how about:
> 
> 1) Remove DeepDump.load.
> 2) Change "from lib.deep_dump import DeepDump" to "import lib.deep_dump" and
> "DeepDump(path, os....) " to "deep_dump.DeepDump(path, os...)". It should be
> valid in Python. (I'm not sure how pylint works, though.)
> 3) If (1) and (2) don't make pylint happy, add "pylint disable" like
>
http://src.chromium.org/viewvc/chrome/trunk/src/tools/deep_memory_profiler/li...
> tentatively with descriptive comments, and do your work.
> 4) After (3), ask a Python expert about it.

OK, I'll try to fix this error. It maybe need some time.
Thanks.

Powered by Google App Engine
This is Rietveld 408576698