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)
| 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. |
| 202 | func (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. |
| 213 | func (stats *oopkQueryStats) writeToLog() { |
no test coverage detected