File: proc_mem.h

package info (click to toggle)
libgclib 0.12.7%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,364 kB
  • sloc: cpp: 25,739; makefile: 58; sh: 20
file content (9 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#ifndef PROC_MEM_H
#define PROC_MEM_H
#include <stdio.h>
// a Linux-specific way to report the memory usage of the current process
void get_mem_usage(double& vm_usage, double& resident_set);

void print_mem_usage(FILE* fout=stderr);

#endif