MCPcopy Index your code
hub / github.com/cortexproject/cortex / Copy

Method Copy

pkg/querier/stats/stats.go:52–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (s *QueryStats) Copy() *QueryStats {
53 if s == nil {
54 return nil
55 }
56
57 copied := &QueryStats{}
58 copied.Merge(s)
59 return copied
60}
61
62// AddWallTime adds some time to the counter.
63func (s *QueryStats) AddWallTime(t time.Duration) {

Callers 15

runRequestMethod · 0.95
TestStats_CopyFunction · 0.95
FindDifferenceMethod · 0.45
CloneMethod · 0.45
ServeHTTPMethod · 0.45
syncKVStoreToLocalMapMethod · 0.45
buildFunctionsFunction · 0.45
seriesMethod · 0.45
FetchMethod · 0.45
FetchMultiPostingsMethod · 0.45
FetchMultiSeriesMethod · 0.45

Calls 1

MergeMethod · 0.95

Tested by 8

TestStats_CopyFunction · 0.76
CloneMethod · 0.36
seriesMethod · 0.36
benchmarkDataFunction · 0.36
captureOutputFunction · 0.36