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

Back-and-pop operation on Vector.

This commit is contained in:
Bartosz Taudul
2017-11-19 19:17:54 +01:00
parent a4e909a740
commit 94bd563753
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -662,8 +662,7 @@ void View::ProcessZoneEnd( const QueueZoneEnd& ev )
auto td = tit->second;
auto& stack = td->stack;
assert( !stack.empty() );
auto zone = stack.back();
stack.pop_back();
auto zone = stack.back_and_pop();
assert( zone->end == -1 );
zone->end = ev.time * m_timerMul;
assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits<int8_t>::max() );