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

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

Issue 2308633002: [Telemetry] Expose platform.GetSystemTotalPhysicalMemory (Closed)
Patch Set: leave default impl to raise not implemented Created 4 years, 3 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 | no next file » | 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 5d68305acbf20292e60d4f4d86da3f6b51462bef..0056958d9d7ceb7b8defa76b7cb42b3b7ee33145 100644
--- a/telemetry/telemetry/core/platform.py
+++ b/telemetry/telemetry/core/platform.py
@@ -149,6 +149,10 @@ class Platform(object):
Examples: On Mac, 13 for Mavericks, 14 for Yosemite."""
return self._platform_backend.GetOSVersionNumber()
+ def GetSystemTotalPhysicalMemory(self):
+ """Returns an integer with the total physical memory in bytes."""
+ return self._platform_backend.GetSystemTotalPhysicalMemory()
+
def CanFlushIndividualFilesFromSystemCache(self):
"""Returns true if the disk cache can be flushed for specific files."""
return self._platform_backend.CanFlushIndividualFilesFromSystemCache()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698