File: proc_mem.h

package info (click to toggle)
libgclib 0.12.8%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,416 kB
  • sloc: cpp: 26,881; makefile: 58; sh: 20
file content (9 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (8)
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