fn insert_measurement(
    module: &mut Module,
    debugdata: &DebugData,
    measure_sym: &str,
    name_map: &HashMap<String, ItemType>,
    sym_map: &HashMap<String, ItemType>,
) -> Result<String, String> {
    // get info about the symbol from the debug data
    match crate::symbol::find_symbol(measure_sym, debugdata) {
        Ok((address, typeinfo)) => {
            insert_measurement_sym(module, measure_sym, name_map, sym_map, typeinfo, address)
        }
        Err(errmsg) => Err(format!(
            "Symbol {} could not be added: {}",
            measure_sym, errmsg
        )),
    }
}
// create a new MEASUREMENT for the given symbol
create a new MEASUREMENT for the given symbol
create a new MEASUREMENT for the given symbol
fn insert_measurement(
    module: &mut Module,
    debugdata: &DebugData,
    measure_sym: &str,
    name_map: &HashMap<String, ItemType>,
    sym_map: &HashMap<String, ItemType>,
) -> Result<String, String> {
    // get info about the symbol from the debug data
    match crate::symbol::find_symbol(measure_sym, debugdata) {
        Ok((address, typeinfo)) => {
            insert_measurement_sym(module, measure_sym, name_map, sym_map, typeinfo, address)
        }
        Err(errmsg) => Err(format!(
            "Symbol {} could not be added: {}",
            measure_sym, errmsg
        )),
    }
}
fn insert_measurement ( module : & mut Module , debugdata : & DebugData , measure_sym : & str , name_map : & HashMap < String , ItemType > , sym_map : & HashMap < String , ItemType > , ) -> Result < String , String > { // get info about the symbol from the debug data match crate :: symbol :: find_symbol ( measure_sym , debugdata ) { Ok ( ( address , typeinfo ) ) => { insert_measurement_sym ( module , measure_sym , name_map , sym_map , typeinfo , address ) } Err ( errmsg ) => Err ( format ! ( " " measure_sym errmsg ) ) , } }
create a new MEASUREMENT for the given symbol
create a new MEASUREMENT for the given symbol
module
&mut Module
debugdata
&DebugData
measure_sym
&str
name_map
&HashMap<String, ItemType>
sym_map
&HashMap<String, ItemType>