MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / ToLogFields

Method ToLogFields

utils/timer/timer.go:51–62  ·  view source on GitHub ↗

ToLogFields returns analysis results as log fields.

()

Source from the content-addressed store, hash-verified

49
50// ToLogFields returns analysis results as log fields.
51func (t *Timer) ToLogFields() log.Fields {
52 var (
53 m = t.ToMap()
54 f = log.Fields{}
55 )
56
57 for k, v := range m {
58 f[k] = v
59 }
60
61 return f
62}
63
64// ToMap returns analysis results as time duration map.
65func (t *Timer) ToMap() map[string]time.Duration {

Callers 6

TestTimerFunction · 0.95
ApplyMethod · 0.95
FetchMethod · 0.95
followerApplyMethod · 0.95
followerPrepareMethod · 0.80
followerCommitMethod · 0.80

Calls 1

ToMapMethod · 0.95

Tested by 1

TestTimerFunction · 0.76