Skip to content

Commit dd539f8

Browse files
committed
DEBUG: Improve log output.
1 parent bdfbf07 commit dd539f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mono/metadata/appdomain.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3364,13 +3364,17 @@ unload_thread_main (void *arg)
33643364
* now be null we won't do any unnecessary copies and after
33653365
* the collection there won't be any more remsets.
33663366
*/
3367-
g_print("UnityAllocations");
3367+
g_print("UnityAllocations:\n");
3368+
size_t total = 0;
33683369
for (i = 0; i < memory_manager->class_vtable_array->len; ++i)
33693370
{
33703371
MonoVTable* vtable = (MonoVTable*)g_ptr_array_index(memory_manager->class_vtable_array, i);
33713372
g_print(" %zu %s\n", vtable->alloc_count, vtable->klass->name);
3373+
total = total + vtable->alloc_count;
33723374
zero_static_data((MonoVTable*)g_ptr_array_index(memory_manager->class_vtable_array, i));
33733375
}
3376+
3377+
g_print("UnityAllocations total : %zu\n", total);
33743378
#if !HAVE_BOEHM_GC
33753379
mono_gc_collect (0);
33763380
#endif

0 commit comments

Comments
 (0)