VirtualBox

Changeset 30728 in vbox


Ignore:
Timestamp:
Jul 8, 2010 9:55:11 AM (15 years ago)
Author:
vboxsync
Message:

Give some feedback for every processed megabyte

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r30573 r30728  
    41874187    unsigned cUnique = 0;
    41884188    unsigned cDuplicate = 0;
     4189    unsigned cPages = 0;
    41894190
    41904191    pgmLock(pVM);
     
    42314232            pPage++;
    42324233            GCPhys += PAGE_SIZE;
     4234            cPages++;
     4235            /* Give some feedback for every processed megabyte. */
     4236            if ((cPages & 0x7f) == 0)
     4237                pCmdHlp->pfnPrintf(pCmdHlp, NULL, ".");
    42334238        }
    42344239    }
    42354240    pgmUnlock(pVM);
    42364241
    4237     pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Number of zero pages      %x\n", cZero);
     4242    pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\nNumber of zero pages      %x\n", cZero);
    42384243    pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Number of ballooned pages %x\n", cBallooned);
    42394244    pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Number of shared pages    %x\n", cShared);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette