MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / Load

Method Load

cmd/http-stats.go:230–238  ·  view source on GitHub ↗

Load returns the recorded stats.

()

Source from the content-addressed store, hash-verified

228
229// Load returns the recorded stats.
230func (stats *HTTPAPIStats) Load() map[string]int {
231 stats.Lock()
232 defer stats.Unlock()
233 apiStats := make(map[string]int, len(stats.apiStats))
234 for k, v := range stats.apiStats {
235 apiStats[k] = v
236 }
237 return apiStats
238}
239
240// HTTPStats holds statistics information about
241// HTTP requests made by all clients

Callers 1

toServerHTTPStatsMethod · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected