File: proc_mem.h

package info (click to toggle)
stringtie 2.2.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,720 kB
  • sloc: cpp: 30,077; python: 429; makefile: 139; sh: 124
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