File indexing completed on 2026-04-09 07:49:20
0001
0002
0003 #include <iostream>
0004 #include <iomanip>
0005
0006 #include "sproc.h"
0007
0008 void test_ExecutableName()
0009 {
0010 std::cerr << sproc::ExecutableName() << std::endl ;
0011 }
0012
0013 void test_Query()
0014 {
0015 uint32_t virtual_size_kb, resident_size_kb ;
0016 for(int i=0 ; i < 100 ; i++)
0017 {
0018 sproc::Query(virtual_size_kb, resident_size_kb) ;
0019 std::cout
0020 << " vsk " << std::setw(10) << virtual_size_kb
0021 << " kbf " << sproc::VirtualMemoryUsageKB()
0022 << " mbf " << sproc::VirtualMemoryUsageMB()
0023 << " rsk " << std::setw(10) << resident_size_kb
0024 << " kbf " << sproc::ResidentSetSizeKB()
0025 << " mbf " << sproc::ResidentSetSizeMB()
0026 << std::endl
0027 ;
0028 }
0029
0030 }
0031
0032
0033
0034 int main()
0035 {
0036 test_Query();
0037
0038 return 0 ;
0039 }