/[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 1908 by persson, Mon Jun 1 18:50:06 2009 UTC
# Line 23  Line 23 
23    
24  #include <getopt.h>  #include <getopt.h>
25  #include <signal.h>  #include <signal.h>
26    #include <sys/stat.h>
27    
28  #if defined(WIN32)  #if defined(WIN32)
29  // require at least Windows 2000 for the GlobalMemoryStatusEx() call  // require at least Windows 2000 for the GlobalMemoryStatusEx() call
30    #if _WIN32_WINNT < 0x0500
31    #ifdef _WIN32_WINNT
32    #undef _WIN32_WINNT
33    #endif
34  #define _WIN32_WINNT 0x0500  #define _WIN32_WINNT 0x0500
35  #endif  #endif
36    #endif
37    
38  #include "Sampler.h"  #include "Sampler.h"
39  #include "common/global_private.h"  #include "common/global_private.h"
# Line 114  int main(int argc, char **argv) { Line 120  int main(int argc, char **argv) {
120      dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n"));      dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n"));
121    
122      #if defined(WIN32)      #if defined(WIN32)
123        #if 0
124      // 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)
125      SYSTEM_INFO siSysInfo;      SYSTEM_INFO siSysInfo;
126      long physical_memory;      long physical_memory;
127      GetSystemInfo(&siSysInfo);      GetSystemInfo(&siSysInfo);
128      dmsg(1,("page size=%d\n", siSysInfo.dwPageSize));      dmsg(2,("page size=%d\n", siSysInfo.dwPageSize));
129    
130      MEMORYSTATUSEX statex;      MEMORYSTATUSEX statex;
131          statex.dwLength = sizeof (statex);          statex.dwLength = sizeof (statex);
132      GlobalMemoryStatusEx (&statex);      GlobalMemoryStatusEx (&statex);
133      dmsg(1, ("There are %*I64d total Kbytes of physical memory.\n",      dmsg(2, ("There are %*I64d total Kbytes of physical memory.\n",
134            8, statex.ullTotalPhys));            8, statex.ullTotalPhys));
135      dmsg(1, ("There are %*I64d free Kbytes of physical memory.\n",      dmsg(2, ("There are %*I64d free Kbytes of physical memory.\n",
136            8, statex.ullAvailPhys));            8, statex.ullAvailPhys));
137      physical_memory = statex.ullTotalPhys;      physical_memory = statex.ullTotalPhys;
138    
# Line 158  int main(int argc, char **argv) { Line 165  int main(int argc, char **argv) {
165          if(RequestedMinimumWorkingSetSize < DefaultMinimumWorkingSetSize) break;          if(RequestedMinimumWorkingSetSize < DefaultMinimumWorkingSetSize) break;
166      }      }
167    
168      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));
169        #endif
170      #endif // WIN32      #endif // WIN32
171    
172      if (tune) {      if (tune) {

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

  ViewVC Help
Powered by ViewVC