Author: lluis
Date: 2006-11-15 19:54:23 -0500 (Wed, 15 Nov 2006)
New Revision: 67967
Modified:
trunk/heap-shot/ChangeLog
trunk/heap-shot/HeapShot.Gui.Widgets/ReferenceTreeViewer.cs
trunk/heap-shot/HeapShot.Reader/ObjectMapFileReader.cs
Log:
2006-11-15 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* HeapShot.Gui.Widgets/ReferenceTreeViewer.cs: Removed debug code.
* HeapShot.Reader/ObjectMapFileReader.cs: Fixed object filter when
getting object references. Removed some debug code.
Modified: trunk/heap-shot/ChangeLog
===================================================================
--- trunk/heap-shot/ChangeLog 2006-11-16 00:53:11 UTC (rev 67966)
+++ trunk/heap-shot/ChangeLog 2006-11-16 00:54:23 UTC (rev 67967)
@@ -1,3 +1,9 @@
+2006-11-15 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * HeapShot.Gui.Widgets/ReferenceTreeViewer.cs: Removed debug code.
+ * HeapShot.Reader/ObjectMapFileReader.cs: Fixed object filter when
+ getting object references. Removed some debug code.
+
2006-11-13 Joe Shaw <[EMAIL PROTECTED]>
* profiler/heap-shot.c (mono_profiler_startup): Fix an
Modified: trunk/heap-shot/HeapShot.Gui.Widgets/ReferenceTreeViewer.cs
===================================================================
--- trunk/heap-shot/HeapShot.Gui.Widgets/ReferenceTreeViewer.cs 2006-11-16
00:53:11 UTC (rev 67966)
+++ trunk/heap-shot/HeapShot.Gui.Widgets/ReferenceTreeViewer.cs 2006-11-16
00:54:23 UTC (rev 67967)
@@ -71,8 +71,6 @@
treeview.RowActivated += new Gtk.RowActivatedHandler
(OnNodeActivated);
treeview.AppendColumn (new Gtk.TreeViewColumn());
- Console.WriteLine (treeview.Columns [1].Widget);
-
int nc = 0;
foreach (TreeViewColumn c in treeview.Columns) {
store.SetSortFunc (nc, CompareNodes);
Modified: trunk/heap-shot/HeapShot.Reader/ObjectMapFileReader.cs
===================================================================
--- trunk/heap-shot/HeapShot.Reader/ObjectMapFileReader.cs 2006-11-16
00:53:11 UTC (rev 67966)
+++ trunk/heap-shot/HeapShot.Reader/ObjectMapFileReader.cs 2006-11-16
00:54:23 UTC (rev 67967)
@@ -326,14 +326,11 @@
typeCodes [n] = types [typeIndices[n]].Code;
}
- Console.WriteLine ("--");
// Assign the type index to each object
for (int n=0; n<numObjects; n++) {
int i = Array.BinarySearch<uint> (typeCodes,
objectTypeCodes [n]);
- if (i < 0)
- Console.WriteLine ("TNF: " +
objectTypeCodes [n]);
- else {
+ if (i >= 0) {
objects [n].Type = typeIndices [i];
types [objects [n].Type].ObjectCount++;
types [objects [n].Type].TotalSize +=
objects [n].Size;
@@ -505,9 +502,9 @@
int n = objects [obj].RefsIndex;
int end = n + objects [obj].RefsCount;
for (; n<end; n++) {
- int ro = inverseRefs [n];
+ int ro = references [n];
if (filteredObjects == null || !filteredObjects
[ro])
- yield return references [n];
+ yield return ro;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches