mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +00:00
Use custom vector.
This commit is contained in:
parent
e5ae1ea2cc
commit
ea424a4c8d
@ -8178,7 +8178,7 @@ void View::DrawFindZone()
|
|||||||
int64_t t;
|
int64_t t;
|
||||||
uint64_t cnt;
|
uint64_t cnt;
|
||||||
if( !GetZoneRunningTime( ctx, zone, t, cnt ) ) break;
|
if( !GetZoneRunningTime( ctx, zone, t, cnt ) ) break;
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
total += t;
|
total += t;
|
||||||
if( t < tmin ) tmin = t;
|
if( t < tmin ) tmin = t;
|
||||||
else if( t > tmax ) tmax = t;
|
else if( t > tmax ) tmax = t;
|
||||||
@ -8195,7 +8195,7 @@ void View::DrawFindZone()
|
|||||||
int64_t t;
|
int64_t t;
|
||||||
uint64_t cnt;
|
uint64_t cnt;
|
||||||
if( !GetZoneRunningTime( ctx, zone, t, cnt ) ) break;
|
if( !GetZoneRunningTime( ctx, zone, t, cnt ) ) break;
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
total += t;
|
total += t;
|
||||||
if( t < tmin ) tmin = t;
|
if( t < tmin ) tmin = t;
|
||||||
else if( t > tmax ) tmax = t;
|
else if( t > tmax ) tmax = t;
|
||||||
@ -8216,7 +8216,7 @@ void View::DrawFindZone()
|
|||||||
const auto start = zone.Start();
|
const auto start = zone.Start();
|
||||||
if( end > rangeMax || start < rangeMin ) continue;
|
if( end > rangeMax || start < rangeMin ) continue;
|
||||||
const auto t = end - start - GetZoneChildTimeFast( zone );
|
const auto t = end - start - GetZoneChildTimeFast( zone );
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8228,7 +8228,7 @@ void View::DrawFindZone()
|
|||||||
const auto end = zone.End();
|
const auto end = zone.End();
|
||||||
if( end < 0 ) break;
|
if( end < 0 ) break;
|
||||||
const auto t = end - zone.Start() - GetZoneChildTimeFast( zone );
|
const auto t = end - zone.Start() - GetZoneChildTimeFast( zone );
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8247,7 +8247,7 @@ void View::DrawFindZone()
|
|||||||
const auto start = zone.Start();
|
const auto start = zone.Start();
|
||||||
if( end > rangeMax || start < rangeMin ) continue;
|
if( end > rangeMax || start < rangeMin ) continue;
|
||||||
const auto t = end - start;
|
const auto t = end - start;
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8259,7 +8259,7 @@ void View::DrawFindZone()
|
|||||||
const auto end = zone.End();
|
const auto end = zone.End();
|
||||||
if( end < 0 ) break;
|
if( end < 0 ) break;
|
||||||
const auto t = end - zone.Start();
|
const auto t = end - zone.Start();
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8309,7 +8309,7 @@ void View::DrawFindZone()
|
|||||||
int64_t t;
|
int64_t t;
|
||||||
uint64_t cnt;
|
uint64_t cnt;
|
||||||
GetZoneRunningTime( ctx, *ev.Zone(), t, cnt );
|
GetZoneRunningTime( ctx, *ev.Zone(), t, cnt );
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
act++;
|
act++;
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
@ -8326,7 +8326,7 @@ void View::DrawFindZone()
|
|||||||
int64_t t;
|
int64_t t;
|
||||||
uint64_t cnt;
|
uint64_t cnt;
|
||||||
GetZoneRunningTime( ctx, *ev.Zone(), t, cnt );
|
GetZoneRunningTime( ctx, *ev.Zone(), t, cnt );
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
act++;
|
act++;
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
@ -8344,7 +8344,7 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() );
|
const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() );
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
act++;
|
act++;
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
@ -8358,7 +8358,7 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() );
|
const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() );
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
act++;
|
act++;
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
@ -8376,7 +8376,7 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
const auto t = ev.Zone()->End() - ev.Zone()->Start();
|
const auto t = ev.Zone()->End() - ev.Zone()->Start();
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
act++;
|
act++;
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
@ -8390,7 +8390,7 @@ void View::DrawFindZone()
|
|||||||
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
if( selGroup == GetSelectionTarget( ev, groupBy ) )
|
||||||
{
|
{
|
||||||
const auto t = ev.Zone()->End() - ev.Zone()->Start();
|
const auto t = ev.Zone()->End() - ev.Zone()->Start();
|
||||||
vec.emplace_back( t );
|
vec.push_back_no_space_check( t );
|
||||||
act++;
|
act++;
|
||||||
total += t;
|
total += t;
|
||||||
}
|
}
|
||||||
|
@ -433,7 +433,7 @@ private:
|
|||||||
int64_t hlOrig_t0, hlOrig_t1;
|
int64_t hlOrig_t0, hlOrig_t1;
|
||||||
int64_t numBins = -1;
|
int64_t numBins = -1;
|
||||||
std::unique_ptr<int64_t[]> bins, binTime, selBin;
|
std::unique_ptr<int64_t[]> bins, binTime, selBin;
|
||||||
std::vector<int64_t> sorted, selSort;
|
Vector<int64_t> sorted, selSort;
|
||||||
size_t sortedNum = 0, selSortNum, selSortActive;
|
size_t sortedNum = 0, selSortNum, selSortActive;
|
||||||
float average, selAverage;
|
float average, selAverage;
|
||||||
float median, selMedian;
|
float median, selMedian;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user