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

Unified Diff: tools/deep_memory_profiler/lib/range_dict.py

Issue 19346002: Refactor dmprof: Split dmprof.py into modules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/deep_memory_profiler/lib/policy.py ('k') | tools/deep_memory_profiler/lib/sorter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/deep_memory_profiler/lib/range_dict.py
diff --git a/tools/deep_memory_profiler/range_dict.py b/tools/deep_memory_profiler/lib/range_dict.py
similarity index 96%
rename from tools/deep_memory_profiler/range_dict.py
rename to tools/deep_memory_profiler/lib/range_dict.py
index 9acf8a641ff8c5e906cdcd2d68ce47305ab1dbc0..119046ce0d0ce089c0442d302212d316832accb9 100644
--- a/tools/deep_memory_profiler/range_dict.py
+++ b/tools/deep_memory_profiler/lib/range_dict.py
@@ -5,10 +5,10 @@
import os
import sys
-BASE_PATH = os.path.dirname(os.path.abspath(__file__))
-BINTREES_PATH = os.path.join(
- BASE_PATH, os.pardir, os.pardir, 'third_party', 'bintrees')
-sys.path.insert(0, BINTREES_PATH)
+_BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+_BINTREES_PATH = os.path.join(
+ _BASE_PATH, os.pardir, os.pardir, 'third_party', 'bintrees')
+sys.path.insert(0, _BINTREES_PATH)
from bintrees import FastRBTree # pylint: disable=F0401
« no previous file with comments | « tools/deep_memory_profiler/lib/policy.py ('k') | tools/deep_memory_profiler/lib/sorter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698