Skip to content

Commit

Permalink
Use /run instead of /var/run to avoid disk IO for a symlink
Browse files Browse the repository at this point in the history
BUG=476443
TEST=On a Chromebook, about:discards shows a non-zero value for "Graphics".

Review URL: https://codereview.chromium.org/1086523002

Cr-Commit-Position: refs/heads/master@{#325702}
  • Loading branch information
hashimoto authored and Commit bot committed Apr 17, 2015
1 parent 9cbc00a commit f3e19a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/process/process_metrics_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -669,13 +669,13 @@ bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) {
}

#if defined(OS_CHROMEOS)
// Report on Chrome OS GEM object graphics memory. /var/run/debugfs_gpu is a
// Report on Chrome OS GEM object graphics memory. /run/debugfs_gpu is a
// bind mount into /sys/kernel/debug and synchronously reading the in-memory
// files in /sys is fast.
#if defined(ARCH_CPU_ARM_FAMILY)
FilePath geminfo_file("/var/run/debugfs_gpu/exynos_gem_objects");
FilePath geminfo_file("/run/debugfs_gpu/exynos_gem_objects");
#else
FilePath geminfo_file("/var/run/debugfs_gpu/i915_gem_objects");
FilePath geminfo_file("/run/debugfs_gpu/i915_gem_objects");
#endif
std::string geminfo_data;
meminfo->gem_objects = -1;
Expand Down

0 comments on commit f3e19a5

Please sign in to comment.