Lines Matching defs:base
5 #include "base/process_util.h"
18 #include "base/file_util.h"
19 #include "base/logging.h"
20 #include "base/string_number_conversions.h"
21 #include "base/string_split.h"
22 #include "base/string_tokenizer.h"
23 #include "base/string_util.h"
24 #include "base/sys_info.h"
25 #include "base/threading/thread_restrictions.h"
38 base::ThreadRestrictions::ScopedAllowIO allow_io;
41 stat_file = stat_file.Append(base::IntToString(pid));
46 base::SplitString(mem_stats, ' ', proc_stats);
57 base::ThreadRestrictions::ScopedAllowIO allow_io;
60 cmd_line_file = cmd_line_file.Append(base::IntToString(pid));
75 base::ThreadRestrictions::ScopedAllowIO allow_io;
94 int cpu = base::ParseProcStatCPU(stat);
106 namespace base {
110 base::ThreadRestrictions::ScopedAllowIO allow_io;
113 stat_file = stat_file.Append(base::IntToString(process));
132 base::StringToInt(tokenizer.token(), &ppid);
145 stat_file = stat_file.Append(base::IntToString(process));
275 base::StringToInt(proc_stats[kVmSize], &vm_size);
289 if (base::StringToInt(proc_stats[kVmPeak], &vm_peak))
303 if (base::StringToInt(proc_stats[kVmRss], &num_pages))
317 base::StringToInt(proc_stats[kVmHwm], &num_pages);
344 base::ThreadRestrictions::ScopedAllowIO allow_io;
346 FilePath proc_dir = FilePath("/proc").Append(base::IntToString(process_));
356 base::ThreadRestrictions::ScopedAllowIO allow_io;
378 base::StringToInt(tokenizer.token(), &cur);
383 base::StringToInt(tokenizer.token(), &cur);
401 base::ThreadRestrictions::ScopedAllowIO allow_io;
408 base::SplitString(statm, ' ', &statm_vec);
413 base::StringToInt(statm_vec[1], &statm1);
414 base::StringToInt(statm_vec[2], &statm2);
474 base::ThreadRestrictions::ScopedAllowIO allow_io;
478 io_file = io_file.Append(base::IntToString(process_));
498 base::StringToInt64(tokenizer.token(),
501 base::StringToInt64(tokenizer.token(),
504 base::StringToInt64(tokenizer.token(),
507 base::StringToInt64(tokenizer.token(),
522 processor_count_ = base::SysInfo::NumberOfProcessors();
538 base
543 base::StringToInt(fields[11], &fields11);
544 base::StringToInt(fields[12], &fields12);
566 base::ThreadRestrictions::ScopedAllowIO allow_io;
590 base::StringToInt(meminfo_fields[kMemTotalIndex], &mem_total);
591 base::StringToInt(meminfo_fields[kMemFreeIndex], &mem_free);
592 base::StringToInt(meminfo_fields[kMemBuffersIndex], &mem_buffers);
593 base::StringToInt(meminfo_fields[kMemCacheIndex], &mem_cache);
704 oom_adj = oom_adj.Append(base::Int64ToString(process));
710 std::string score_str = base::IntToString(score);
715 } // namespace base