Home
last modified time | relevance | path

Searched refs:meminfo (Results 1 – 25 of 42) sorted by relevance

12

/external/libchrome/base/process/
Dprocess_metrics_unittest.cc89 struct SystemMemoryInfoKB meminfo; in TEST_F() local
102 EXPECT_FALSE(ParseProcMeminfo(invalid_input1, &meminfo)); in TEST_F()
103 EXPECT_FALSE(ParseProcMeminfo(invalid_input2, &meminfo)); in TEST_F()
104 EXPECT_FALSE(ParseProcMeminfo(invalid_input3, &meminfo)); in TEST_F()
171 EXPECT_TRUE(ParseProcMeminfo(valid_input1, &meminfo)); in TEST_F()
172 EXPECT_EQ(meminfo.total, 3981504); in TEST_F()
173 EXPECT_EQ(meminfo.free, 140764); in TEST_F()
174 EXPECT_EQ(meminfo.buffers, 116480); in TEST_F()
175 EXPECT_EQ(meminfo.cached, 406160); in TEST_F()
176 EXPECT_EQ(meminfo.active_anon, 2972352); in TEST_F()
[all …]
Dprocess_metrics_linux.cc434 SystemMemoryInfoKB meminfo; in GetSystemCommitCharge() local
435 if (!GetSystemMemoryInfo(&meminfo)) in GetSystemCommitCharge()
437 return meminfo.total - meminfo.free - meminfo.buffers - meminfo.cached; in GetSystemCommitCharge()
598 SystemMemoryInfoKB* meminfo) { in ParseProcMeminfo() argument
611 meminfo->total = 0; in ParseProcMeminfo()
627 target = &meminfo->total; in ParseProcMeminfo()
629 target = &meminfo->free; in ParseProcMeminfo()
632 target = &meminfo->available; in ParseProcMeminfo()
635 target = &meminfo->buffers; in ParseProcMeminfo()
637 target = &meminfo->cached; in ParseProcMeminfo()
[all …]
Dprocess_metrics.h318 BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo);
341 SystemMemoryInfoKB* meminfo);
346 SystemMemoryInfoKB* meminfo);
Dprocess_metrics_mac.cc372 bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { in GetSystemMemoryInfo() argument
382 meminfo->total = static_cast<int>(hostinfo.max_mem / 1024); in GetSystemMemoryInfo()
393 meminfo->free = static_cast<int>( in GetSystemMemoryInfo()
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dlinux_based_platform_backend.py29 meminfo = self._GetProcFileDict(meminfo_contents)
30 if not meminfo:
32 return (self._ConvertToKb(meminfo['MemTotal'])
33 - self._ConvertToKb(meminfo['MemFree'])
34 - self._ConvertToKb(meminfo['Buffers'])
35 - self._ConvertToKb(meminfo['Cached']))
40 meminfo = self._GetProcFileDict(meminfo_contents)
41 if not meminfo:
43 return self._ConvertToBytes(meminfo['MemTotal'])
/external/autotest/server/site_tests/kernel_BootMessagesServer/
Dkernel_BootMessagesServer.py102 def _parse_meminfo(self, meminfo, perf_vals): argument
111 for line in meminfo.splitlines():
173 meminfo = self._read_meminfo(meminfo_filename)
174 self._parse_meminfo(meminfo, perf_vals)
/external/autotest/client/profilers/catprofile/
Dcontrol1 job.profilers.add('catprofile', ['/proc/meminfo','/proc/uptime'], 'meminfo', 2)
/external/ltp/tools/pounder21/test_scripts/
Dramsnake38 MEM_AVAIL=$(( `grep ^MemFree: /proc/meminfo | awk -F " " '{print $2}'` + `grep ^Cached: /proc/memin…
Dmemxfer5b31 RAM=`cat /proc/meminfo | grep MemTotal | awk -F " " '{print $2}'`
Dstatslogging44 cat /proc/meminfo >> $INFOFILE
/external/libchrome/base/metrics/
Dpersistent_memory_allocator.cc571 void PersistentMemoryAllocator::GetMemoryInfo(MemoryInfo* meminfo) const { in GetMemoryInfo()
575 meminfo->total = mem_size_; in GetMemoryInfo()
576 meminfo->free = IsCorrupt() ? 0 : remaining - sizeof(BlockHeader); in GetMemoryInfo()
723 MemoryInfo meminfo; in UpdateTrackingHistograms() local
724 GetMemoryInfo(&meminfo); in UpdateTrackingHistograms()
726 ((meminfo.total - meminfo.free) * 100ULL / meminfo.total)); in UpdateTrackingHistograms()
/external/syslinux/gpxe/src/arch/i386/core/
Dfreebsd_loader.c267 bsdinfo.bi_basemem = meminfo.basememsize; in elf_freebsd_boot()
268 bsdinfo.bi_extmem = meminfo.memsize; in elf_freebsd_boot()
365 bsdinfo.bi_basemem = meminfo.basememsize; in aout_freebsd_boot()
366 bsdinfo.bi_extmem = meminfo.memsize; in aout_freebsd_boot()
/external/ltp/testcases/kernel/controllers/memcg/stress/
Dmemcg_stress_test.sh113 mem_free=`cat /proc/meminfo | grep MemFree | awk '{ print $2 }'`
114 swap_free=`cat /proc/meminfo | grep SwapFree | awk '{ print $2 }'`
/external/linux-kselftest/tools/testing/selftests/vm/
Drun_vmtests17 done < /proc/meminfo
36 done < /proc/meminfo
/external/ltp/testcases/commands/mkswap/
Dmkswap01.sh77 local before=`awk '/SwapTotal/ {print $2}' /proc/meminfo`
111 local after=`awk '/SwapTotal/ {print $2}' /proc/meminfo`
/external/libnl/lib/idiag/
Didiag.c164 __ADD(IDIAG_ATTR_MEMINFO, meminfo)
253 __ADD(IDIAG_ATTR_MEMINFO, meminfo)
/external/ltp/testcases/kdump/lib/
Dsysinfo.sh18 cat /proc/meminfo
/external/netperf/doc/examples/
Drunemomniaggdemo.sh239 cat /proc/meminfo 2>&1 > meminfo.txt
/external/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/
Dftrace_buffer_size_kb.sh19 free_mem=`cat /proc/meminfo | grep '^MemFree' | awk '{ print $2 }'`
/external/ltp/tools/pounder21/build_scripts/
Dbonnie++28 RAM=`cat /proc/meminfo | grep MemTotal | awk -F " " '{print $2}'`
Dmemtest24 RAM=`cat /proc/meminfo | grep MemTotal | awk -F " " '{print $2}'`
/external/ltp/tools/top-LTP/proc/
Dsysinfo.h53 extern void meminfo(void);
/external/toolchain-utils/crosperf/
Dmachine_manager.py62 self.meminfo = None
89 line = self.meminfo.splitlines()[0]
123 ret, self.meminfo, _ = self.ce.CrosRunCommandWOutput(
643 self.meminfo = self.MEMINFO_STRING
/external/ltp/tools/pounder21/test_repo/
DD01stats44 cat /proc/meminfo >> $INFOFILE
/external/syslinux/com32/modules/
DMakefile23 meminfo.c32 sdi.c32 sanboot.c32 ifcpu64.c32 vesainfo.c32 \

12