MCPcopy Index your code
hub / github.com/uber/aresdb / applyBatchStats

Method applyBatchStats

query/stats.go:202–210  ·  view source on GitHub ↗

applyBatchStats applies the current batch stats onto the overall query stats. It computes information like max, minCallName, average for each stage as well as the percentage.

(batchStats oopkBatchStats)

Source from the content-addressed store, hash-verified

200// applyBatchStats applies the current batch stats onto the overall query stats. It computes information
201// like max, minCallName, average for each stage as well as the percentage.
202func (stats *oopkQueryStats) applyBatchStats(batchStats oopkBatchStats) {
203 for name, value := range batchStats.timings {
204 stats.applyStageStats(name, value)
205 }
206 stats.NumBatches++
207 stats.NumRecords += batchStats.batchSize
208 stats.BytesTransferred += batchStats.bytesTransferred
209 stats.NumTransferCalls += batchStats.numTransferCalls
210}
211
212// writeToLog writes the summary stats for this query in a tabular format to logger.
213func (stats *oopkQueryStats) writeToLog() {

Callers 2

stats_test.goFile · 0.80
reportBatchMethod · 0.80

Calls 1

applyStageStatsMethod · 0.95

Tested by

no test coverage detected