Home | History | Annotate | Download | only in chromeos

Lines Matching refs:backend

44 class SwapMetrics::Backend : public base::RefCountedThreadSafe<Backend> {
46 explicit Backend(const std::string& reason);
56 friend class base::RefCountedThreadSafe<Backend>;
58 virtual ~Backend();
111 DISALLOW_COPY_AND_ASSIGN(Backend);
115 bool SwapMetrics::Backend::first_time_ = true;
117 int64 SwapMetrics::Backend::swap_total_kb_ = 0;
119 int SwapMetrics::Backend::number_of_cpus_ = 0;
121 SwapMetrics::Backend::Backend(const std::string& reason)
129 SwapMetrics::Backend::~Backend() {
132 void SwapMetrics::Backend::RecordMetricsOnBlockingPool(size_t time_index) {
136 // be deleted when the next backend is created on the UI thread.
209 scoped_refptr<Backend>(this),
214 void SwapMetrics::Backend::RecordFaultsHistogramSample(
236 void SwapMetrics::Backend::RecordCpuHistogramSample(int cpu,
260 bool SwapMetrics::Backend::GetFieldFromKernelOutput(const std::string& path,
293 bool SwapMetrics::Backend::TokenizeOneLineFile(const std::string& path,
311 bool SwapMetrics::Backend::GetMeminfoField(const std::string& name,
316 bool SwapMetrics::Backend::GetUptime(double* uptime_secs,
338 bool SwapMetrics::Backend::GetPageFaults(int64* page_faults) {
398 void SwapMetrics::PostTaskRecordMetrics(scoped_refptr<Backend> backend,
408 base::Bind(&SwapMetrics::Backend::RecordMetricsOnBlockingPool,
409 backend,
418 backend_ = new Backend(reason);