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

Unified Diff: content/browser/power_profiler/power_data_provider.h

Issue 309803002: [PowerProfiler] Power Profiler service should detect the sampling rate from the data provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | content/browser/power_profiler/power_data_provider_ia_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_profiler/power_data_provider.h
diff --git a/content/browser/power_profiler/power_data_provider.h b/content/browser/power_profiler/power_data_provider.h
index f6c043811f016479cfacc53ff05150fe25e116ec..5c8279f3704f8a93dfbbcf71c28ef3e8c1b2c19e 100644
--- a/content/browser/power_profiler/power_data_provider.h
+++ b/content/browser/power_profiler/power_data_provider.h
@@ -24,6 +24,9 @@ class PowerDataProvider {
// Returns a vector of power events, one per type, for the types it supports.
virtual PowerEventVector GetData() = 0;
+
+ // Returns sampling rate at which the provider can operate in milliseconds
+ virtual int64 SamplingRate() = 0;
sky 2014/06/03 15:41:01 How about: virtual base::TimeDelta GetSamplingRate
vivekg 2014/06/04 04:35:45 Done. Yes it makes sense to return the TimeDelta i
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/power_profiler/power_data_provider_ia_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698