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

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, 6 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..85f67e7f5fb9a048c45eab8cf5cea4fe457a5d54 100644
--- a/content/browser/power_profiler/power_data_provider.h
+++ b/content/browser/power_profiler/power_data_provider.h
@@ -10,6 +10,10 @@
#include "base/memory/scoped_ptr.h"
#include "content/browser/power_profiler/power_event.h"
+namespace base {
+class TimeDelta;
+} // namespace base
+
namespace content {
typedef std::vector<PowerEvent> PowerEventVector;
@@ -24,6 +28,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.
+ virtual base::TimeDelta GetSamplingRate() = 0;
};
} // 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