MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_ty_usage_file

Method get_ty_usage_file

src/execution/logger.rs:326–331  ·  view source on GitHub ↗
(&self, ty: &str)

Source from the content-addressed store, hash-verified

324 }
325
326 fn get_ty_usage_file(&self, ty: &str) -> PathBuf {
327 let mut save_path = self.dir.clone();
328 save_path.push(ty);
329 save_path.set_extension("cost");
330 save_path
331 }
332
333 pub fn log(&self, ty: &str) -> eyre::Result<()> {
334 let usage = time::Instant::elapsed(&self.start).as_secs_f32();

Callers 2

logMethod · 0.80
loadMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected