mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
No need to track min memory usage.
At least if client instrumentation was not broken and the data makes sense.
This commit is contained in:
parent
7fdc6f5453
commit
d5f0f0939d
@ -565,7 +565,6 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
auto fptr = frees.begin();
|
auto fptr = frees.begin();
|
||||||
auto fend = frees.end();
|
auto fend = frees.end();
|
||||||
|
|
||||||
double min = 0;
|
|
||||||
double max = 0;
|
double max = 0;
|
||||||
double usage = 0;
|
double usage = 0;
|
||||||
|
|
||||||
@ -589,7 +588,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
usage -= fptr->second;
|
usage -= fptr->second;
|
||||||
fptr++;
|
fptr++;
|
||||||
}
|
}
|
||||||
assert( min <= usage );
|
assert( usage >= 0 );
|
||||||
if( max < usage ) max = usage;
|
if( max < usage ) max = usage;
|
||||||
ptr->time = time;
|
ptr->time = time;
|
||||||
ptr->val = usage;
|
ptr->val = usage;
|
||||||
@ -600,7 +599,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
assert( aptr->timeFree < 0 );
|
assert( aptr->timeFree < 0 );
|
||||||
int64_t time = aptr->timeAlloc;
|
int64_t time = aptr->timeAlloc;
|
||||||
usage += int64_t( aptr->size );
|
usage += int64_t( aptr->size );
|
||||||
assert( min <= usage );
|
assert( usage >= 0 );
|
||||||
if( max < usage ) max = usage;
|
if( max < usage ) max = usage;
|
||||||
ptr->time = time;
|
ptr->time = time;
|
||||||
ptr->val = usage;
|
ptr->val = usage;
|
||||||
@ -611,7 +610,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
{
|
{
|
||||||
int64_t time = fptr->first;
|
int64_t time = fptr->first;
|
||||||
usage -= fptr->second;
|
usage -= fptr->second;
|
||||||
assert( min <= usage );
|
assert( usage >= 0 );
|
||||||
assert( max >= usage );
|
assert( max >= usage );
|
||||||
ptr->time = time;
|
ptr->time = time;
|
||||||
ptr->val = usage;
|
ptr->val = usage;
|
||||||
@ -619,7 +618,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
fptr++;
|
fptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
plot->min = min;
|
plot->min = 0;
|
||||||
plot->max = max;
|
plot->max = max;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user