Home
last modified time | relevance | path

Searched refs:statm_fd (Results 1 – 1 of 1) sorted by relevance

/aosp12/bionic/benchmarks/
H A Dget_heap_size_benchmark.cpp75 int statm_fd = open("/proc/self/statm", O_RDONLY); in BM_read_statm() local
76 if (statm_fd == -1) { in BM_read_statm()
80 off_t result = lseek(statm_fd, 0 /* offset */, SEEK_SET); in BM_read_statm()
84 ssize_t nread = read(statm_fd, buf, BUF_SIZE); in BM_read_statm()
91 if (close(statm_fd) == -1) { in BM_read_statm()