This information can be found in the previous log entries.
}
void
-sgen_client_log_timing (GGTimingInfo *info, mword promoted_size, mword last_los_memory_usage)
+sgen_client_log_timing (GGTimingInfo *info, mword promoted_size)
{
SgenMajorCollector *major_collector = sgen_get_major_collector ();
mword num_major_sections = major_collector->get_num_major_sections ();
if (!info->is_overflow)
sprintf (full_timing_buff, "total %.2fms, bridge %.2fms", info->stw_time / 10000.0f, (int)info->bridge_time / 10000.0f);
if (info->generation == GENERATION_OLD)
- mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_GC, "GC_MAJOR%s: (%s) pause %.2fms, %s los %dK/%dK",
+ mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_GC, "GC_MAJOR%s: (%s) pause %.2fms, %s los %dK",
info->is_overflow ? "_OVERFLOW" : "",
info->reason ? info->reason : "",
(int)info->total_time / 10000.0f,
full_timing_buff,
- los_memory_usage / 1024,
- last_los_memory_usage / 1024);
+ los_memory_usage / 1024);
else
mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_GC, "GC_MINOR%s: (%s) pause %.2fms, %s promoted %dK major %dK los %dK",
info->is_overflow ? "_OVERFLOW" : "",
* Called after collections, reporting the amount of time they took. No action is
* necessary.
*/
-void sgen_client_log_timing (GGTimingInfo *info, mword promoted_size, mword last_los_memory_usage);
+void sgen_client_log_timing (GGTimingInfo *info, mword promoted_size);
/*
* Called to handle `MONO_GC_PARAMS` and `MONO_GC_DEBUG` options. The `handle` functions
static mword major_pre_sweep_heap_size;
static mword major_start_heap_size;
-static mword last_major_num_sections = 0;
-static mword last_los_memory_usage = 0;
-
static gboolean need_calculate_minor_collection_allowance;
/* The size of the LOS after the last major collection, after sweeping. */
{
mword num_major_sections = major_collector.get_num_major_sections ();
- mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_GC, "GC_MAJOR_SWEEP: major %dK/%dK",
- num_major_sections * major_collector.section_size / 1024,
- last_major_num_sections * major_collector.section_size / 1024);
- last_major_num_sections = num_major_sections;
+ mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_GC, "GC_MAJOR_SWEEP: major %dK",
+ num_major_sections * major_collector.section_size / 1024);
}
void
int i;
for (i = 0; i < info_count; ++i) {
if (info[i].generation != -1)
- sgen_client_log_timing (&info [i], total_promoted_size - total_promoted_size_start, last_los_memory_usage);
+ sgen_client_log_timing (&info [i], total_promoted_size - total_promoted_size_start);
}
- last_los_memory_usage = los_memory_usage;
}
/*