Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the cycles prompt word #141

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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