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

Unified Diff: telemetry/telemetry/core/platform.py

Issue 2123713005: [Telemetry] Add MeasureMemory method to action_runner (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: rephrase comment Created 4 years, 4 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 | « no previous file | telemetry/telemetry/internal/actions/action_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/core/platform.py
diff --git a/telemetry/telemetry/core/platform.py b/telemetry/telemetry/core/platform.py
index dc46515c93d04dfc92847244879ff2bf085500da..da550cf54f1ccab0da40d4b26d3b80e1e06072c9 100644
--- a/telemetry/telemetry/core/platform.py
+++ b/telemetry/telemetry/core/platform.py
@@ -171,6 +171,10 @@ class Platform(object):
This function may require root or administrator access."""
return self._platform_backend.FlushDnsCache()
+ def CanElevatePrivilege(self):
+ """Returns true if root or admin rights are available on the platform."""
+ return self._platform_backend.CanElevatePrivilege()
+
def LaunchApplication(self,
application,
parameters=None,
« no previous file with comments | « no previous file | telemetry/telemetry/internal/actions/action_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698