1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Calculate group average and median times.

This commit is contained in:
Bartosz Taudul
2018-09-02 12:48:04 +02:00
parent 5733b420a1
commit 2d3ce1bf25
2 changed files with 14 additions and 4 deletions
+6 -3
View File
@@ -294,9 +294,9 @@ private:
std::unique_ptr<int64_t[]> bins, binTime, selBin;
std::vector<int64_t> sorted, selSort;
size_t sortedNum, selSortNum, selSortActive;
float average;
float median;
int64_t total;
float average, selAverage;
float median, selMedian;
int64_t total, selTotal;
void Reset()
{
@@ -324,6 +324,9 @@ private:
selSort.clear();
selSortNum = 0;
selSortActive = 0;
selAverage = 0;
selMedian = 0;
selTotal = 0;
}
void ShowZone( int32_t srcloc, const char* name )