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

Unified Diff: tools/telemetry/telemetry/core/profile_types.py

Issue 14359012: Telemetry: Add option to create a dirty profile as part of a test run (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace fixes Created 7 years, 8 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
Index: tools/telemetry/telemetry/core/profile_types.py
diff --git a/tools/telemetry/telemetry/core/profile_types.py b/tools/telemetry/telemetry/core/profile_types.py
index 44ac38f39e7789152ed7f1042fd5af215e7b341b..e2c8e3a93b09bb3e7d034379011b1f61373eb49f 100644
--- a/tools/telemetry/telemetry/core/profile_types.py
+++ b/tools/telemetry/telemetry/core/profile_types.py
@@ -4,13 +4,18 @@
import os
+BASE_PROFILE_TYPES = ['clean', 'default', 'dirty_small']
+
PROFILE_TYPE_MAPPING = {
'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1',
'power_user': 'chrome/test/data/extensions/profiles/extension_webrequest',
}
-PROFILE_TYPES = PROFILE_TYPE_MAPPING.keys()
+PROFILE_TYPES = BASE_PROFILE_TYPES + PROFILE_TYPE_MAPPING.keys()
def GetProfileDir(profile_type):
+ if profile_type in BASE_PROFILE_TYPES:
+ return None
+
path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
assert os.path.exists(path)

Powered by Google App Engine
This is Rietveld 408576698