mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Array index is changing here.
This commit is contained in:
parent
52a7f3a39a
commit
e801943b90
@ -3125,8 +3125,7 @@ void Worker::ReconstructMemAllocPlot()
|
|||||||
if( aptr != aend && fptr != fend )
|
if( aptr != aend && fptr != fend )
|
||||||
{
|
{
|
||||||
auto atime = aptr->timeAlloc;
|
auto atime = aptr->timeAlloc;
|
||||||
const auto& memData = mem.data[*fptr];
|
auto ftime = mem.data[*fptr].timeFree;
|
||||||
auto ftime = memData.timeFree;
|
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
@ -3144,7 +3143,7 @@ void Worker::ReconstructMemAllocPlot()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
usage -= int64_t( memData.size );
|
usage -= int64_t( mem.data[*fptr].size );
|
||||||
assert( usage >= 0 );
|
assert( usage >= 0 );
|
||||||
if( max < usage ) max = usage;
|
if( max < usage ) max = usage;
|
||||||
ptr->time = ftime;
|
ptr->time = ftime;
|
||||||
@ -3152,7 +3151,7 @@ void Worker::ReconstructMemAllocPlot()
|
|||||||
ptr++;
|
ptr++;
|
||||||
fptr++;
|
fptr++;
|
||||||
if( fptr == fend ) break;
|
if( fptr == fend ) break;
|
||||||
ftime = memData.timeFree;
|
ftime = mem.data[*fptr].timeFree;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user