MCPcopy
hub / github.com/perkeep/perkeep / SumBlobSize

Method SumBlobSize

pkg/blobserver/memory/mem.go:293–297  ·  view source on GitHub ↗

SumBlobSize returns the total size in bytes of all the blobs in s.

()

Source from the content-addressed store, hash-verified

291
292// SumBlobSize returns the total size in bytes of all the blobs in s.
293func (s *Storage) SumBlobSize() int64 {
294 s.mu.RLock()
295 defer s.mu.RUnlock()
296 return s.size
297}
298
299// BlobrefStrings returns the sorted stringified blobrefs stored in s.
300func (s *Storage) BlobrefStrings() []string {

Callers 3

TestCacheFunction · 0.45
TestWriteFileMapFunction · 0.45
TestReaderEfficiencyFunction · 0.45

Calls 2

RLockMethod · 0.65
RUnlockMethod · 0.65

Tested by 3

TestCacheFunction · 0.36
TestWriteFileMapFunction · 0.36
TestReaderEfficiencyFunction · 0.36