- Trim options read from response file (to allow indentation in multi target scenarios).

- Added more statistics to -time output.
This commit is contained in:
jfrijters 2008-11-14 08:36:23 +00:00
Родитель 172d448cbf
Коммит a81bc1a529
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -55,7 +55,7 @@ class IkvmcCompiler
string line; string line;
while((line = sr.ReadLine()) != null) while((line = sr.ReadLine()) != null)
{ {
arglist.Add(line); arglist.Add(line.Trim());
} }
} }
} }
@ -105,7 +105,13 @@ class IkvmcCompiler
if (time) if (time)
{ {
Console.WriteLine("Total cpu time: {0}", System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime); Console.WriteLine("Total cpu time: {0}", System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime);
Console.WriteLine("User cpu time: {0}", System.Diagnostics.Process.GetCurrentProcess().UserProcessorTime);
Console.WriteLine("Total wall clock time: {0}", DateTime.Now - start); Console.WriteLine("Total wall clock time: {0}", DateTime.Now - start);
Console.WriteLine("Peak virtual memory: {0}", System.Diagnostics.Process.GetCurrentProcess().PeakVirtualMemorySize64);
for (int i = 0; i <= GC.MaxGeneration; i++)
{
Console.WriteLine("GC({0}) count: {1}", i, GC.CollectionCount(i));
}
} }
return rc; return rc;
} }