ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/proc_mem.cpp
(Generate patch)
# Line 35 | Line 35
35  
36     stat_stream.close();
37  
38 +
39     long page_size_kb = sysconf(_SC_PAGE_SIZE) / 1024; // in case x86-64 is configured to use 2MB pages
40     vm_usage     = vsize / 1024.0;
41     resident_set = rss * page_size_kb;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines