Changeset 32144 in vbox
- Timestamp:
- Aug 31, 2010 1:05:17 PM (14 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/FTM.cpp
r32141 r32144 127 127 STAM_REL_REG(pVM, &pVM->ftm.s.StatFullSync, STAMTYPE_COUNTER, "/FT/Sync/Full", STAMUNIT_OCCURENCES, "Number of full vm syncs."); 128 128 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 130 132 return VINF_SUCCESS; 131 133 } … … 1065 1067 * @returns VBox status code. 1066 1068 * 1067 * @param pVM The VM to operate on.1068 * @param enm TypeCheckpoint type1069 */ 1070 VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enm Type)1069 * @param pVM The VM to operate on. 1070 * @param enmCheckpoint Checkpoint type 1071 */ 1072 VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmCheckpoint) 1071 1073 { 1072 1074 if (!pVM->fFaultTolerantMaster) 1073 1075 return VINF_SUCCESS; 1074 1076 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 } 1075 1087 pVM->ftm.s.fCheckpointingActive = true; 1076 1088 int rc = PDMCritSectEnter(&pVM->ftm.s.CritSect, VERR_SEM_BUSY); -
trunk/src/VBox/VMM/FTMInternal.h
r32102 r32144 103 103 STAMCOUNTER StatDeltaVM; 104 104 STAMCOUNTER StatFullSync; 105 STAMCOUNTER StatCheckpointNetwork; 106 STAMCOUNTER StatCheckpointStorage; 107 105 108 } FTM; 106 109 AssertCompileMemberAlignment(FTM, CritSect, 8);
Note:
See TracChangeset
for help on using the changeset viewer.