Skip to content

Commit 84a8aca

Browse files
committed
add event recording to ethereum runloop
1 parent da8c92e commit 84a8aca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/monad/runloop_ethereum.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <category/execution/ethereum/core/rlp/block_rlp.hpp>
2828
#include <category/execution/ethereum/db/block_db.hpp>
2929
#include <category/execution/ethereum/db/db.hpp>
30+
#include <category/execution/ethereum/event/exec_event_ctypes.h>
31+
#include <category/execution/ethereum/event/exec_event_recorder.hpp>
3032
#include <category/execution/ethereum/execute_block.hpp>
3133
#include <category/execution/ethereum/execute_transaction.hpp>
3234
#include <category/execution/ethereum/metrics/block_metrics.hpp>
@@ -132,6 +134,7 @@ Result<BlockHeader> process_ethereum_block(
132134
db.set_block_and_prefix(block.header.number - 1, parent_block_id);
133135
BlockMetrics block_metrics;
134136
BlockState block_state(db, vm);
137+
record_block_marker_event(MONAD_EXEC_BLOCK_PERF_EVM_ENTER);
135138
BOOST_OUTCOME_TRY(
136139
auto const receipts,
137140
execute_block<traits>(
@@ -145,6 +148,7 @@ Result<BlockHeader> process_ethereum_block(
145148
block_metrics,
146149
call_tracers,
147150
state_tracers));
151+
record_block_marker_event(MONAD_EXEC_BLOCK_PERF_EVM_EXIT);
148152

149153
// Database commit of state changes (incl. Merkle root calculations)
150154
block_state.log_debug();

0 commit comments

Comments
 (0)