Update V8 to version 4.6.55.
[chromium-blink-merge.git] / content / browser / power_profiler / power_data_provider_ia_win.h
blob8356fecc53884a5e541e6847a198466318812395
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_
6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_
8 #include "content/browser/power_profiler/power_data_provider.h"
9 #include "third_party/power_gadget/PowerGadgetLib.h"
11 namespace content {
13 // A class used to get power usage via Power Gadget API.
14 class PowerDataProviderIA : public PowerDataProvider {
15 public:
16 PowerDataProviderIA();
18 ~PowerDataProviderIA() override;
20 bool Initialize();
22 // PowerDataProvider:
23 PowerEventVector GetData() override;
24 base::TimeDelta GetSamplingRate() override;
25 AccuracyLevel GetAccuracyLevel() override;
27 private:
28 CIntelPowerGadgetLib energy_lib_;
30 int sockets_number_;
31 int power_msr_ids_[PowerEvent::ID_COUNT];
32 bool is_open_;
33 DISALLOW_COPY_AND_ASSIGN(PowerDataProviderIA);
36 } // namespace content
38 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_IA_WIN_H_