Skip to content
Prev Previous commit
Next Next commit
#409 add metrics
  • Loading branch information
otselnik committed Dec 27, 2021
commit 560c4d6d6fa8e692bab80dcbf7fa5b93e95f70fa
5 changes: 5 additions & 0 deletions proxy/indexer/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def process_functions(self):


def process_receipts(self):
start_time = time.time()

counter = 0
holder_table = {}
continue_table = {}
Expand Down Expand Up @@ -442,6 +444,9 @@ def process_receipts(self):
else:
self.processed_slot = max(self.processed_slot, max_slot)

process_receipts_ms = (time.time() - start_time)*1000 # convert this into milliseconds
logger.debug(f"process_receipts_ms: {process_receipts_ms} transaction_receipts.len: {len(self.transaction_receipts)} from {self.processed_slot} to {self.current_slot} slots")



def submit_transaction(self, trx_struct):
Expand Down