()
| 206 | } |
| 207 | |
| 208 | func (qs *QuerySamples) samplesReadPerStepPoints() []stepStat { |
| 209 | if !qs.EnablePerStepStats || qs.SamplesReadPerStep == nil { |
| 210 | return nil |
| 211 | } |
| 212 | |
| 213 | ts := make([]stepStat, len(qs.SamplesReadPerStep)) |
| 214 | for i, c := range qs.SamplesReadPerStep { |
| 215 | ts[i] = stepStat{T: qs.StartTimestamp + int64(i)*qs.Interval, V: c} |
| 216 | } |
| 217 | return ts |
| 218 | } |
| 219 | |
| 220 | // SpanTimer unifies tracing and timing, to reduce repetition. |
| 221 | type SpanTimer struct { |
no outgoing calls
no test coverage detected