dump_closure_profile in rustc_monomorphize::util - Rust
Description: For a given closure, writes out the data for the profiling the impact of RFC 2229 on closure size into a CSV.

Skip to main content

## dump_closure_profile

# Function dump_closure_profile

Source

    pub(crate) fn dump_closure_profile<'tcx>(
        tcx: TyCtxt<'tcx>,
        closure_instance: Instance<'tcx>,
    )

Expand description

For a given closure, writes out the data for the profiling the impact of RFC 2229 on closure size into a CSV.

During the same compile all closures dump the information in the same file “closure_profile_XXXXX.csv”, which is created in the directory where the compiler is invoked.