Skip to content

Commit

Permalink
perf: add additional rdtsc count (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousGiga committed Feb 19, 2024
1 parent 67d1161 commit 9504001
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 82 deletions.
103 changes: 22 additions & 81 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ reth-trie = { path = "crates/trie" }
# revm
# revm = { version = "6.0", features = ["std", "secp256k1"], default-features = false }
# revm-primitives = { version = "2.0", features = ["std"], default-features = false }
revm-inspectors = { git = "https://github.com/paradigmxyz/evm-inspectors", rev = "ac63f06" }
# revm-inspectors = { git = "https://github.com/paradigmxyz/evm-inspectors", rev = "ac63f06" }

revm-inspectors = { path = "/home/andy/Source/work/evm-inspectors" }
revm = { path = "/home/andy/Source/work/revm/crates/revm", features = ["std", "secp256k1"], default-features = false }
revm-primitives = { path = "/home/andy/Source/work/revm/crates/primitives", features = ["std"], default-features = false }

Expand Down
4 changes: 4 additions & 0 deletions crates/perf-metrics/src/dashboard/displayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ impl OpcodeStats {
self.cat(op).unwrap_or(""),
);
}

println!();
println!();
println!("additional rdtsc count: {}", self.opcode_record.additional_count);
}
fn print_category(&self) {
println!("\n");
Expand Down

0 comments on commit 9504001

Please sign in to comment.