Skip to content

Commit

Permalink
[draft] Debugger benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemitenkov committed Nov 20, 2024
1 parent 47f777b commit 4beb0d6
Show file tree
Hide file tree
Showing 8 changed files with 519 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions aptos-move/aptos-debugger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ clap = { workspace = true }
itertools = { workspace = true }
regex = { workspace = true }
reqwest = { workspace = true }
serde = { workspace = true }
tokio = { workspace = true }
url = { workspace = true }

Expand Down
13 changes: 9 additions & 4 deletions aptos-move/aptos-debugger/src/aptos_debugger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ impl AptosDebugger {
)?)))
}

pub(crate) async fn get_committed_transactions(
&self,
begin: Version,
limit: u64,
) -> anyhow::Result<(Vec<Transaction>, Vec<TransactionInfo>)> {
self.debugger.get_committed_transactions(begin, limit).await
}

pub fn execute_transactions_at_version(
&self,
version: Version,
Expand Down Expand Up @@ -161,10 +169,7 @@ impl AptosDebugger {
repeat_execution_times: u64,
concurrency_levels: &[usize],
) -> anyhow::Result<Vec<TransactionOutput>> {
let (txns, txn_infos) = self
.debugger
.get_committed_transactions(begin, limit)
.await?;
let (txns, txn_infos) = self.get_committed_transactions(begin, limit).await?;

if use_same_block_boundaries {
// when going block by block, no need to worry about epoch boundaries
Expand Down
Loading

0 comments on commit 4beb0d6

Please sign in to comment.