Beispiel #1
0
void MemInfo::updateMax(const MemInfo& other)
{
    max_mai = max(max_mai, other.getMAIIndex());
    max_heap_mai = max(max_heap_mai, other.getHeapMAIIndex());
    max_moi = max(max_moi, other.getMOIIndex());
    max_heap_moi = max(max_heap_moi, other.getHeapMOIIndex());
    max_stack = max(max_stack, other.getStackRatio());
    max_flow = max(max_flow, other.getFlowRatio());
    max_heap_flow = max(max_heap_flow, other.getHeapFlowRatio());
    max_bpa = max(max_bpa, other.getBytesPerAccess());
}
Beispiel #2
0
void MemInfo::updateMin(const MemInfo& other)
{
    static bool firsttime = true;

    min_mai = min(min_mai, other.getMAIIndex());
    min_heap_mai = min(min_heap_mai, other.getHeapMAIIndex());
    min_moi = min(min_moi, other.getMOIIndex());
    min_heap_moi = min(min_heap_moi, other.getHeapMOIIndex());
    min_stack = min(min_stack, other.getStackRatio());
    min_flow = min(min_flow, other.getFlowRatio());
    min_heap_flow = min(min_heap_flow, other.getHeapFlowRatio());
    min_bpa = min(min_bpa, other.getBytesPerAccess());
    firsttime = false;
}