VirtualBox

Changeset 32144 in vbox


Ignore:
Timestamp:
Aug 31, 2010 1:05:17 PM (14 years ago)
Author:
vboxsync
Message:

Stats

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r32141 r32144  
    127127    STAM_REL_REG(pVM, &pVM->ftm.s.StatFullSync,                  STAMTYPE_COUNTER, "/FT/Sync/Full",                     STAMUNIT_OCCURENCES, "Number of full vm syncs.");
    128128    STAM_REL_REG(pVM, &pVM->ftm.s.StatDeltaMem,                  STAMTYPE_COUNTER, "/FT/Sync/DeltaMem",                 STAMUNIT_OCCURENCES, "Number of delta mem syncs.");
    129 
     129    STAM_REL_REG(pVM, &pVM->ftm.s.StatCheckpointStorage,         STAMTYPE_COUNTER, "/FT/Checkpoint/Storage",            STAMUNIT_OCCURENCES, "Number of storage checkpoints.");
     130    STAM_REL_REG(pVM, &pVM->ftm.s.StatCheckpointNetwork,         STAMTYPE_COUNTER, "/FT/Checkpoint/Network",            STAMUNIT_OCCURENCES, "Number of network checkpoints.");
     131   
    130132    return VINF_SUCCESS;
    131133}
     
    10651067 * @returns VBox status code.
    10661068 *
    1067  * @param   pVM         The VM to operate on.
    1068  * @param   enmType     Checkpoint type
    1069  */
    1070 VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType)
     1069 * @param   pVM             The VM to operate on.
     1070 * @param   enmCheckpoint   Checkpoint type
     1071 */
     1072VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmCheckpoint)
    10711073{
    10721074    if (!pVM->fFaultTolerantMaster)
    10731075        return VINF_SUCCESS;
    10741076
     1077    switch (enmCheckpoint)
     1078    {
     1079    case FTMCHECKPOINTTYPE_NETWORK:
     1080        STAM_REL_COUNTER_INC(&pVM->ftm.s.StatCheckpointNetwork);
     1081        break;
     1082
     1083    case FTMCHECKPOINTTYPE_STORAGE:
     1084        STAM_REL_COUNTER_INC(&pVM->ftm.s.StatCheckpointStorage);
     1085        break;
     1086    }
    10751087    pVM->ftm.s.fCheckpointingActive = true;
    10761088    int rc = PDMCritSectEnter(&pVM->ftm.s.CritSect, VERR_SEM_BUSY);
  • trunk/src/VBox/VMM/FTMInternal.h

    r32102 r32144  
    103103    STAMCOUNTER         StatDeltaVM;
    104104    STAMCOUNTER         StatFullSync;
     105    STAMCOUNTER         StatCheckpointNetwork;
     106    STAMCOUNTER         StatCheckpointStorage;
     107
    105108} FTM;
    106109AssertCompileMemberAlignment(FTM, CritSect, 8);
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