/// Reads the workload script from a file and compiles it.
Reads the workload script from a file and compiles it.
Reads the workload script from a file and compiles it .
fn load_workload_script(workload: &Path, params: &[(String, String)]) -> Result<Program> {
    eprintln!("info: Loading workload script {}...", workload.display());
    let src = Source::from_path(workload)
        .map_err(|e| LatteError::ScriptRead(PathBuf::from(workload), e))?;
    workload::Program::new(src, params.iter().cloned().collect())
}
fn load_workload_script ( workload : & Path , params : & [ ( String , String ) ] ) -> Result < Program > { eprintln ! ( " " workload display ( ) ) ; let src = Source :: from_path ( workload ) . map_err ( | e | LatteError :: ScriptRead ( PathBuf :: from ( workload ) , e ) ) ? ; workload :: Program :: new ( src , params . iter ( ) . cloned ( ) . collect ( ) ) }
Reads the workload script from a file and compiles it.
Reads the workload script from a file and compiles it .
workload
&Path
params
&[(String, String)]