Skip to content

Commit

Permalink
Modify the cycles prompt word (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson authored Sep 5, 2024
1 parent af09691 commit e0c0cf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckb-debugger/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

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(());
}

Expand All @@ -411,7 +411,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
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);
Expand Down Expand Up @@ -459,7 +459,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
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);
Expand Down Expand Up @@ -502,7 +502,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
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(())
Expand Down

0 comments on commit e0c0cf1

Please sign in to comment.