From e0c0cf12ed615307393e7e9887ec4e59178f1e30 Mon Sep 17 00:00:00 2001 From: Mohanson Date: Thu, 5 Sep 2024 11:14:36 +0800 Subject: [PATCH] Modify the cycles prompt word (#141) --- ckb-debugger/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ckb-debugger/src/main.rs b/ckb-debugger/src/main.rs index 7dcec35..46239ab 100644 --- a/ckb-debugger/src/main.rs +++ b/ckb-debugger/src/main.rs @@ -387,7 +387,7 @@ fn main() -> Result<(), Box> { if matches_mode == "fast" { let cycles = verifier.verify_single(verifier_script_group_type, &verifier_script_hash, verifier_max_cycles)?; - println!("Total cycles consumed: {}", HumanReadableCycles(cycles)); + println!("All cycles: {}", HumanReadableCycles(cycles)); return Ok(()); } @@ -411,7 +411,7 @@ fn main() -> Result<(), Box> { match result { Ok(data) => { println!("Run result: {:?}", data); - println!("Total cycles consumed: {}", HumanReadableCycles(cycles)); + println!("All cycles: {}", HumanReadableCycles(cycles)); if let Some(fp) = matches_pprof { let mut output = std::fs::File::create(&fp)?; machine.profile.display_flamegraph(&mut output); @@ -459,7 +459,7 @@ fn main() -> Result<(), Box> { match result { Ok((exit_code, cycles)) => { println!("Exit code: {:?}", exit_code); - println!("Total cycles consumed: {}", HumanReadableCycles(cycles)); + println!("All cycles: {}", HumanReadableCycles(cycles)); } Err(e) => { println!("Error: {}", e); @@ -502,7 +502,7 @@ fn main() -> Result<(), Box> { } let result = step_result.map(|_| machine.exit_code()); println!("Run result: {:?}", result); - println!("Total cycles consumed: {}", HumanReadableCycles(machine.scheduler.consumed_cycles())); + println!("All cycles: {}", HumanReadableCycles(machine.scheduler.consumed_cycles())); } Ok(())