Example #1
0
    end_time_msec=5000.00,
)

#%% show summary

show_summary(_TRACE)

#%% analyze-single

handle_doc(
    analyze_single_for_processed_trace(
        _TRACE,
        print_events=False,
        run_metrics=parse_run_metrics_arg(("important", )),
        gc_where_filter=lambda gc: True,
        sort_gcs_by=SortGCsBy(metric=parse_single_gc_metric_arg("Number"),
                              sort_reverse=False),
        single_gc_metrics=parse_single_gc_metrics_arg(
            ("DurationMSec", "Generation", "Number", "StartMSec")),
        single_heap_metrics=parse_single_heap_metrics_arg(("InMB", "OutMB")),
        show_first_n_gcs=5,
        show_last_n_gcs=None,
        show_reasons=False,
    ))

#%% analyze-single-gc

handle_doc(
    analyze_single_gc_for_processed_trace_file(
        _TRACE,
        gc_number=42,
Example #2
0

#%% show summary

show_summary(_TRACE)


#%% analyze-single

handle_doc(
    analyze_single_for_processed_trace(
        _TRACE,
        print_events=False,
        run_metrics=parse_run_metrics_arg(("important",)),
        gc_where_filter=lambda gc: True,
        sort_gcs_by=SortGCsBy(metric=parse_single_gc_metric_arg("Number"), sort_reverse=False),
        single_gc_metrics=parse_single_gc_metrics_arg(
            ("DurationMSec", "Generation", "Number", "StartMSec")
        ),
        single_heap_metrics=parse_single_heap_metrics_arg(("InMB", "OutMB")),
        show_first_n_gcs=5,
        show_last_n_gcs=None,
        show_reasons=False,
    )
)

#%% analyze-single-gc

handle_doc(
    analyze_single_gc_for_processed_trace_file(
        _TRACE,