diff --git a/TimeMem.c b/TimeMem.c index 9ed0fed..9f2f5a1 100644 --- a/TimeMem.c +++ b/TimeMem.c @@ -53,10 +53,10 @@ static int info(HANDLE hProcess) _tprintf(_T("User time : %.2lf (%.1lf%%)\n"), tUser, 100.0*tUser/tElapsed); _tprintf(_T("page fault # : %u\n"), pmc.PageFaultCount); - _tprintf(_T("Working set : %u KB\n"), pmc.PeakWorkingSetSize/1024); - _tprintf(_T("Paged pool : %u KB\n"), pmc.QuotaPeakPagedPoolUsage/1024); - _tprintf(_T("Non-paged pool : %u KB\n"), pmc.QuotaPeakNonPagedPoolUsage/1024); - _tprintf(_T("Page file size : %u KB\n"), pmc.PeakPagefileUsage/1024); + _tprintf(_T("Working set : %zd KB\n"), pmc.PeakWorkingSetSize/1024); + _tprintf(_T("Paged pool : %zd KB\n"), pmc.QuotaPeakPagedPoolUsage/1024); + _tprintf(_T("Non-paged pool : %zd KB\n"), pmc.QuotaPeakNonPagedPoolUsage/1024); + _tprintf(_T("Page file size : %zd KB\n"), pmc.PeakPagefileUsage/1024); return 0; } diff --git a/TimeMem.sln b/TimeMem.sln index 3f82f24..3b01ce2 100644 --- a/TimeMem.sln +++ b/TimeMem.sln @@ -1,18 +1,26 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TimeMem", "TimeMem.vcxproj", "{A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 Release|Win32 = Release|Win32 + Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Debug|Win32.ActiveCfg = Debug|Win32 {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Debug|Win32.Build.0 = Debug|Win32 + {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Debug|x64.ActiveCfg = Debug|x64 + {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Debug|x64.Build.0 = Debug|x64 {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Release|Win32.ActiveCfg = Release|Win32 {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Release|Win32.Build.0 = Release|Win32 + {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Release|x64.ActiveCfg = Release|x64 + {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TimeMem.vcxproj b/TimeMem.vcxproj index 82d3967..a8a736a 100644 --- a/TimeMem.vcxproj +++ b/TimeMem.vcxproj @@ -1,14 +1,22 @@  - + Debug Win32 + + Debug + x64 + Release Win32 + + Release + x64 + {A7E71A37-FC74-4532-B3F7-7181D6C1AC4F} @@ -20,14 +28,27 @@ Application true Unicode - v110 + v140 + + + Application + true + Unicode + v140 Application false true Unicode - v110 + v140 + + + Application + false + true + Unicode + v140 @@ -35,20 +56,36 @@ + + + + + + true $(SolutionDir)build\$(Platform)\$(Configuration)\ build\$(Platform)\$(Configuration)\ + + true + $(SolutionDir)build\$(Platform)\$(Configuration)\ + build\$(Platform)\$(Configuration)\ + false $(SolutionDir)build\$(Platform)\$(Configuration)\ build\$(Platform)\$(Configuration)\ + + false + $(SolutionDir)build\$(Platform)\$(Configuration)\ + build\$(Platform)\$(Configuration)\ + @@ -63,6 +100,20 @@ psapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + + + + Level4 + Disabled + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + + + Console + true + psapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + Level4 @@ -81,6 +132,24 @@ psapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + + Level4 + + + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + + + Console + true + true + true + psapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + +