@@ -9,10 +9,11 @@ import "C"
99
1010import (
1111 "fmt"
12- "github.com/erigontech/mdbx-go/mdbx/threads"
1312 "log"
1413 "time"
1514 "unsafe"
15+
16+ "github.com/erigontech/mdbx-go/mdbx/threads"
1617)
1718
1819// This flags are used exclusively for Txn.OpenDBISimple and Txn.OpenRoot. The
@@ -221,6 +222,9 @@ type CommitLatencyGC struct {
221222 WorkCounter uint32
222223 SelfCounter uint32
223224
225+ MaxRetainedPage uint32
226+ MaxReaderLag uint32
227+
224228 // WorkPnlMergeTime time.Duration
225229 // WorkPnlMergeVolume uint64
226230 // WorkPnlMergeCalls uint32
@@ -265,10 +269,12 @@ func (txn *Txn) commit() (CommitLatency, error) {
265269 Ending : toDuration (_stat .ending ),
266270 Whole : toDuration (_stat .whole ),
267271 GCDetails : CommitLatencyGC {
268- WorkRtime : toDuration (_stat .gc_prof .work_rtime_monotonic ),
269- WorkRsteps : uint32 (_stat .gc_prof .work_rsteps ),
270- WorkRxpages : uint32 (_stat .gc_prof .work_xpages ),
271- WorkMajflt : uint32 (_stat .gc_prof .work_majflt ),
272+ WorkRtime : toDuration (_stat .gc_prof .work_rtime_monotonic ),
273+ MaxRetainedPage : uint32 (_stat .gc_prof .max_retained_page ),
274+ MaxReaderLag : uint32 (_stat .gc_prof .max_reader_lag ),
275+ WorkRsteps : uint32 (_stat .gc_prof .work_rsteps ),
276+ WorkRxpages : uint32 (_stat .gc_prof .work_xpages ),
277+ WorkMajflt : uint32 (_stat .gc_prof .work_majflt ),
272278 //WorkPnlMergeTime: toDuration(_stat.gc_prof.pnl_merge_work.time),
273279 //WorkPnlMergeVolume: uint64(_stat.gc_prof.pnl_merge_work.volume),
274280 //WorkPnlMergeCalls: uint32(_stat.gc_prof.pnl_merge_work.calls),
0 commit comments