mdbx: add pgop_stat.gcrtime for collect the time spent loading and searching inside GC.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-06-07 21:20:35 +03:00
parent 48c6051482
commit 4f6b92248d
3 changed files with 29 additions and 0 deletions

View File

@@ -561,6 +561,9 @@ typedef struct {
MDBX_atomic_uint64_t unspill; /* Quantity of unspilled/reloaded pages */
MDBX_atomic_uint64_t
wops; /* Number of explicit write operations (not a pages) to a disk */
MDBX_atomic_uint64_t
gcrtime; /* Time spending for reading/searching GC (aka FreeDB). The
unit/scale is platform-depended, see mdbx_osal_monotime(). */
} MDBX_pgop_stat_t;
#endif /* MDBX_ENABLE_PGOP_STAT */