beagle r4384 - trunk/beagle/Util
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4384 - trunk/beagle/Util
- Date: Sat, 12 Jan 2008 01:37:41 +0000 (GMT)
Author: dbera
Date: Sat Jan 12 01:37:41 2008
New Revision: 4384
URL: http://svn.gnome.org/viewvc/beagle?rev=4384&view=rev
Log:
Also display the collection count in the debug-memory message. Helps to read the mind of the GC.
Modified:
trunk/beagle/Util/SystemInformation.cs
Modified: trunk/beagle/Util/SystemInformation.cs
==============================================================================
--- trunk/beagle/Util/SystemInformation.cs (original)
+++ trunk/beagle/Util/SystemInformation.cs Sat Jan 12 01:37:41 2008
@@ -204,8 +204,8 @@
int vm_size = VmSize;
int vm_rss = VmRss;
- Logger.Log.Debug ("Memory usage: VmSize={0:.0} MB, VmRSS={1:.0} MB, GC.GetTotalMemory={2}",
- vm_size/1024.0, vm_rss/1024.0, GC.GetTotalMemory (false));
+ Logger.Log.Debug ("Memory usage: VmSize={0:.0} MB, VmRSS={1:.0} MB, GC.GetTotalMemory={2} ({3} colls)",
+ vm_size/1024.0, vm_rss/1024.0, GC.GetTotalMemory (false), GC.CollectionCount (2));
}
///////////////////////////////////////////////////////////////
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]