/[svn]/linuxsampler/trunk/src/linuxsampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/linuxsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1830 by schoenebeck, Sat Jan 31 11:31:41 2009 UTC revision 1888 by persson, Sat Apr 18 09:26:45 2009 UTC
# Line 114  int main(int argc, char **argv) { Line 114  int main(int argc, char **argv) {
114      dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n"));      dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n"));
115    
116      #if defined(WIN32)      #if defined(WIN32)
117        #if 0
118      // some WIN32 memory info code which tries to determine the maximum lockable amount of memory (for debug purposes)      // some WIN32 memory info code which tries to determine the maximum lockable amount of memory (for debug purposes)
119      SYSTEM_INFO siSysInfo;      SYSTEM_INFO siSysInfo;
120      long physical_memory;      long physical_memory;
121      GetSystemInfo(&siSysInfo);      GetSystemInfo(&siSysInfo);
122      dmsg(1,("page size=%d\n", siSysInfo.dwPageSize));      dmsg(2,("page size=%d\n", siSysInfo.dwPageSize));
123    
124      MEMORYSTATUSEX statex;      MEMORYSTATUSEX statex;
125          statex.dwLength = sizeof (statex);          statex.dwLength = sizeof (statex);
126      GlobalMemoryStatusEx (&statex);      GlobalMemoryStatusEx (&statex);
127      dmsg(1, ("There are %*I64d total Kbytes of physical memory.\n",      dmsg(2, ("There are %*I64d total Kbytes of physical memory.\n",
128            8, statex.ullTotalPhys));            8, statex.ullTotalPhys));
129      dmsg(1, ("There are %*I64d free Kbytes of physical memory.\n",      dmsg(2, ("There are %*I64d free Kbytes of physical memory.\n",
130            8, statex.ullAvailPhys));            8, statex.ullAvailPhys));
131      physical_memory = statex.ullTotalPhys;      physical_memory = statex.ullTotalPhys;
132    
# Line 158  int main(int argc, char **argv) { Line 159  int main(int argc, char **argv) {
159          if(RequestedMinimumWorkingSetSize < DefaultMinimumWorkingSetSize) break;          if(RequestedMinimumWorkingSetSize < DefaultMinimumWorkingSetSize) break;
160      }      }
161    
162      dmsg(1,("AFTER GetProcessWorkingSetSize: res = %d  MinimumWorkingSetSize=%d, MaximumWorkingSetSize=%d\n", res,MinimumWorkingSetSize, MaximumWorkingSetSize));      dmsg(2,("AFTER GetProcessWorkingSetSize: res = %d  MinimumWorkingSetSize=%d, MaximumWorkingSetSize=%d\n", res,MinimumWorkingSetSize, MaximumWorkingSetSize));
163        #endif
164      #endif // WIN32      #endif // WIN32
165    
166      if (tune) {      if (tune) {

Legend:
Removed from v.1830  
changed lines
  Added in v.1888

  ViewVC Help
Powered by ViewVC