Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Side by Side Diff: base/process/process_metrics_linux.cc

Issue 468253002: Move file_util to base/files/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to add forwarding header to patch Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/process/process_linux.cc ('k') | base/rand_util_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/process/process_metrics.h" 5 #include "base/process/process_metrics.h"
6 6
7 #include <dirent.h> 7 #include <dirent.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #include <sys/time.h> 10 #include <sys/time.h>
11 #include <sys/types.h> 11 #include <sys/types.h>
12 #include <unistd.h> 12 #include <unistd.h>
13 13
14 #include "base/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/process/internal_linux.h" 16 #include "base/process/internal_linux.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
19 #include "base/strings/string_tokenizer.h" 19 #include "base/strings/string_tokenizer.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/sys_info.h" 21 #include "base/sys_info.h"
22 #include "base/threading/thread_restrictions.h" 22 #include "base/threading/thread_restrictions.h"
23 23
24 namespace base { 24 namespace base {
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 swap_info->num_reads = ReadFileToUint64(zram_path.Append("num_reads")); 870 swap_info->num_reads = ReadFileToUint64(zram_path.Append("num_reads"));
871 swap_info->num_writes = ReadFileToUint64(zram_path.Append("num_writes")); 871 swap_info->num_writes = ReadFileToUint64(zram_path.Append("num_writes"));
872 swap_info->compr_data_size = 872 swap_info->compr_data_size =
873 ReadFileToUint64(zram_path.Append("compr_data_size")); 873 ReadFileToUint64(zram_path.Append("compr_data_size"));
874 swap_info->mem_used_total = 874 swap_info->mem_used_total =
875 ReadFileToUint64(zram_path.Append("mem_used_total")); 875 ReadFileToUint64(zram_path.Append("mem_used_total"));
876 } 876 }
877 #endif // defined(OS_CHROMEOS) 877 #endif // defined(OS_CHROMEOS)
878 878
879 } // namespace base 879 } // namespace base
OLDNEW
« no previous file with comments | « base/process/process_linux.cc ('k') | base/rand_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698