Home
last modified time | relevance | path

Searched refs:SysStatsDataSource (Results 1 – 4 of 4) sorted by relevance

/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.h46 class SysStatsDataSource : public ProbesDataSource {
51 SysStatsDataSource(base::TaskRunner*,
56 ~SysStatsDataSource() override;
62 base::WeakPtr<SysStatsDataSource> GetWeakPtr() const;
78 static void Tick(base::WeakPtr<SysStatsDataSource>);
80 SysStatsDataSource(const SysStatsDataSource&) = delete;
81 SysStatsDataSource& operator=(const SysStatsDataSource&) = delete;
108 base::WeakPtrFactory<SysStatsDataSource> weak_factory_; // Keep last.
Dsys_stats_data_source.cc69 const ProbesDataSource::Descriptor SysStatsDataSource::descriptor = {
74 SysStatsDataSource::SysStatsDataSource(base::TaskRunner* task_runner, in SysStatsDataSource() function in perfetto::SysStatsDataSource
173 void SysStatsDataSource::Start() { in Start()
175 task_runner_->PostTask(std::bind(&SysStatsDataSource::Tick, weak_this)); in Start()
179 void SysStatsDataSource::Tick(base::WeakPtr<SysStatsDataSource> weak_this) { in Tick()
182 SysStatsDataSource& thiz = *weak_this; in Tick()
189 std::bind(&SysStatsDataSource::Tick, weak_this), delay_ms); in Tick()
193 SysStatsDataSource::~SysStatsDataSource() = default;
195 void SysStatsDataSource::ReadSysStats() { in ReadSysStats()
220 void SysStatsDataSource::ReadDevfreq(protos::pbzero::SysStats* sys_stats) { in ReadDevfreq()
[all …]
Dsys_stats_data_source_unittest.cc193 class TestSysStatsDataSource : public SysStatsDataSource {
200 : SysStatsDataSource(task_runner, in TestSysStatsDataSource()
239 void Poller(SysStatsDataSource* ds, std::function<void()> checkpoint) { in Poller()
247 void WaitTick(SysStatsDataSource* data_source) { in WaitTick()
/external/perfetto/src/traced/probes/
Dprobes_producer.cc72 &SysStatsDataSource::descriptor, //
170 } else if (config.name() == SysStatsDataSource::descriptor.name) { in SetupDataSource()
307 return std::unique_ptr<SysStatsDataSource>( in CreateSysStatsDataSource()
308 new SysStatsDataSource(task_runner_, session_id, in CreateSysStatsDataSource()