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:
+10
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user