File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments