Home
last modified time | relevance | path

Searched refs:PeriodicTask (Results 1 – 5 of 5) sorted by relevance

/external/perfetto/include/perfetto/ext/base/
Dperiodic_task.h42 class PeriodicTask {
44 explicit PeriodicTask(base::TaskRunner*);
45 ~PeriodicTask(); // Calls Reset().
61 PeriodicTask(const PeriodicTask&) = delete;
62 PeriodicTask& operator=(const PeriodicTask&) = delete;
63 PeriodicTask(PeriodicTask&&) = delete;
64 PeriodicTask& operator=(PeriodicTask&&) = delete;
69 static void RunTaskAndPostNext(base::WeakPtr<PeriodicTask>,
80 base::WeakPtrFactory<PeriodicTask> weak_ptr_factory_; // Keep last.
/external/perfetto/src/base/
Dperiodic_task_unittest.cc35 PeriodicTask pt(&task_runner); in TEST()
39 PeriodicTask::Args args; in TEST()
55 PeriodicTask pt(&task_runner); in TEST()
57 PeriodicTask::Args args; in TEST()
79 PeriodicTask pt(&task_runner); in TEST()
83 PeriodicTask::Args args; in TEST()
108 std::unique_ptr<PeriodicTask> pt(new PeriodicTask(&task_runner)); in TEST()
110 PeriodicTask::Args args; in TEST()
128 std::unique_ptr<PeriodicTask> pt(new PeriodicTask(&task_runner)); in TEST()
130 PeriodicTask::Args args; in TEST()
[all …]
Dperiodic_task.cc63 PeriodicTask::PeriodicTask(base::TaskRunner* task_runner) in PeriodicTask() function in perfetto::base::PeriodicTask
66 PeriodicTask::~PeriodicTask() { in ~PeriodicTask()
70 void PeriodicTask::Start(Args args) { in Start()
85 std::bind(PeriodicTask::RunTaskAndPostNext, weak_this, generation_)); in Start()
98 void PeriodicTask::PostNextTask() { in PostNextTask()
107 std::bind(PeriodicTask::RunTaskAndPostNext, weak_this, generation_), in PostNextTask()
115 void PeriodicTask::RunTaskAndPostNext(base::WeakPtr<PeriodicTask> thiz, in RunTaskAndPostNext()
150 void PeriodicTask::Reset() { in Reset()
158 void PeriodicTask::ResetTimerFd() { in ResetTimerFd()
/external/perfetto/src/tracing/core/
Dtracing_service_impl.h583 base::PeriodicTask snapshot_periodic_task;
Dtracing_service_impl.cc1091 base::PeriodicTask::Args snapshot_task_args; in StartTracing()