Skip to content

Commit

Permalink
restore memory footage report
Browse files Browse the repository at this point in the history
  • Loading branch information
wsodsong committed Oct 7, 2024
1 parent 2416870 commit 87e206c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions state/carmen.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,11 @@ func (s *carmenHeadState) GetArchiveBlockHeight() (uint64, bool, error) {
}

func (s *carmenStateDB) GetMemoryUsage() *MemoryUsage {
// todo waiting for implementation from carmen side
//usage := s.db.GetMemoryFootprint()
//if usage == nil {
// return &MemoryUsage{uint64(0), nil}
//}
return &MemoryUsage{uint64(0), nil}
usage := s.db.GetMemoryFootprint()
if usage == nil {
return &MemoryUsage{uint64(0), nil}
}
return &MemoryUsage{uint64(usage.Total()), usage}
}

func (s *carmenStateDB) GetShadowDB() StateDB {
Expand Down

0 comments on commit 87e206c

Please sign in to comment.