pub fn demangle_function_name_or_index(
    writer: &mut impl Write,
    name: Option<&str>,
    func_id: usize
) -> Result
Expand description

Demangles a function name if it’s provided, or returns a unified representation based on the function index otherwise.

Examples found in repository?
src/profiling.rs (line 60)
57
58
59
60
61
62
63
fn debug_name(module: &CompiledModule, index: DefinedFuncIndex) -> String {
    let index = module.module().func_index(index);
    let mut debug_name = String::new();
    demangle_function_name_or_index(&mut debug_name, module.func_name(index), index.index())
        .unwrap();
    debug_name
}