Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ type Stats struct {
TotNewDocsDropped uint64
TotNewVectorsProcessed uint64

TotPersistBeg uint64
TotPersistEnd uint64
TotPersistErrors uint64
TotPersistBeg uint64
TotPersistEnd uint64
TotPersistErr uint64

TotMergesBeg uint64
TotMergesEnd uint64
Expand All @@ -41,6 +41,7 @@ type Stats struct {

TotVecSectionMergesBegin uint64
TotVecSectionMergesEnd uint64
TotVecSectionMergeErr uint64
TotVecSectionMergeTime uint64
TotVecSectionVecsReconstructed uint64
TotVecSectionIVFIndexesCreated uint64
Expand Down Expand Up @@ -68,7 +69,7 @@ type Stats struct {
}

func (s *Stats) StatsMap() map[string]interface{} {
svet := reflect.TypeOf(*s)
svet := reflect.TypeOf(s).Elem()
n := svet.NumField()
m := make(map[string]interface{}, n)
base := unsafe.Pointer(s)
Expand Down
Loading