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

Use the same algorithm for selection group binning.

This commit is contained in:
Bartosz Taudul
2018-09-02 03:17:05 +02:00
parent c1630936d4
commit 5733b420a1
2 changed files with 92 additions and 48 deletions
+10 -2
View File
@@ -292,8 +292,8 @@ private:
int64_t hlOrig_t0, hlOrig_t1;
int64_t numBins = -1;
std::unique_ptr<int64_t[]> bins, binTime, selBin;
std::vector<int64_t> sorted;
size_t sortedNum;
std::vector<int64_t> sorted, selSort;
size_t sortedNum, selSortNum, selSortActive;
float average;
float median;
int64_t total;
@@ -314,10 +314,18 @@ private:
void ResetGroups()
{
ResetSelection();
groups.clear();
processed = 0;
}
void ResetSelection()
{
selSort.clear();
selSortNum = 0;
selSortActive = 0;
}
void ShowZone( int32_t srcloc, const char* name )
{
show = true;