mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
Print tables size during execution stage (#1479)
This commit is contained in:
parent
679d70fca8
commit
7464b7924d
@ -212,6 +212,9 @@ func SpawnExecuteBlocksStage(s *StageState, stateDB ethdb.Database, chainConfig
|
|||||||
if err = tx.CommitAndBegin(context.Background()); err != nil {
|
if err = tx.CommitAndBegin(context.Background()); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err = printBucketsSize(tx.(ethdb.HasTx).Tx()); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
chainContext.SetDB(tx)
|
chainContext.SetDB(tx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -230,6 +233,9 @@ func SpawnExecuteBlocksStage(s *StageState, stateDB ethdb.Database, chainConfig
|
|||||||
if err = tx.CommitAndBegin(context.Background()); err != nil {
|
if err = tx.CommitAndBegin(context.Background()); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err = printBucketsSize(tx.(ethdb.HasTx).Tx()); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
chainContext.SetDB(tx)
|
chainContext.SetDB(tx)
|
||||||
}
|
}
|
||||||
start = time.Now()
|
start = time.Now()
|
||||||
|
@ -671,10 +671,9 @@ func (tx *MdbxTx) printDebugInfo() {
|
|||||||
"id", txInfo.Id,
|
"id", txInfo.Id,
|
||||||
"read_lag", txInfo.ReadLag,
|
"read_lag", txInfo.ReadLag,
|
||||||
"ro", tx.readOnly,
|
"ro", tx.readOnly,
|
||||||
"space_used_mb", txInfo.SpaceUsed/1024/1024,
|
//"space_retired_mb", txInfo.SpaceRetired/1024/1024,
|
||||||
"space_retired_mb", txInfo.SpaceRetired/1024/1024,
|
|
||||||
"space_dirty_kb", txInfo.SpaceDirty/1024,
|
"space_dirty_kb", txInfo.SpaceDirty/1024,
|
||||||
"callers", debug.Callers(8),
|
"callers", debug.Callers(7),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user