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 {
50 SysStatsDataSource(base::TaskRunner*,
55 ~SysStatsDataSource() override;
61 base::WeakPtr<SysStatsDataSource> GetWeakPtr() const;
73 static void Tick(base::WeakPtr<SysStatsDataSource>);
75 SysStatsDataSource(const SysStatsDataSource&) = delete;
76 SysStatsDataSource& operator=(const SysStatsDataSource&) = delete;
100 base::WeakPtrFactory<SysStatsDataSource> weak_factory_; // Keep last.
Dsys_stats_data_source.cc67 constexpr int SysStatsDataSource::kTypeId;
69 SysStatsDataSource::SysStatsDataSource(base::TaskRunner* task_runner, in SysStatsDataSource() function in perfetto::SysStatsDataSource
141 void SysStatsDataSource::Start() { in Start()
143 task_runner_->PostTask(std::bind(&SysStatsDataSource::Tick, weak_this)); in Start()
147 void SysStatsDataSource::Tick(base::WeakPtr<SysStatsDataSource> weak_this) { in Tick()
150 SysStatsDataSource& thiz = *weak_this; in Tick()
155 std::bind(&SysStatsDataSource::Tick, weak_this), delay_ms); in Tick()
159 SysStatsDataSource::~SysStatsDataSource() = default;
161 void SysStatsDataSource::ReadSysStats() { in ReadSysStats()
183 void SysStatsDataSource::ReadMeminfo(protos::pbzero::SysStats* sys_stats) { in ReadMeminfo()
[all …]
Dsys_stats_data_source_unittest.cc204 std::unique_ptr<SysStatsDataSource> GetSysStatsDataSource( in GetSysStatsDataSource()
209 auto instance = std::unique_ptr<SysStatsDataSource>(new SysStatsDataSource( in GetSysStatsDataSource()
216 void Poller(SysStatsDataSource* ds, std::function<void()> checkpoint) { in Poller()
224 void WaitTick(SysStatsDataSource* data_source) { in WaitTick()
/external/perfetto/src/traced/probes/
Dprobes_producer.cc308 return std::unique_ptr<SysStatsDataSource>( in CreateSysStatsDataSource()
309 new SysStatsDataSource(task_runner_, session_id, in CreateSysStatsDataSource()
470 case SysStatsDataSource::kTypeId: in OnFtraceDataWrittenIntoDataSourceBuffers()