Changeset 32308 in vbox
- Timestamp:
- Sep 8, 2010 11:38:05 AM (14 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/FTM.cpp
r32302 r32308 138 138 #ifdef VBOX_WITH_STATISTICS 139 139 STAM_REG(pVM, &pVM->ftm.s.StatCheckpoint, STAMTYPE_PROFILE, "/FT/Checkpoint", STAMUNIT_TICKS_PER_CALL, "Profiling of FTMR3SetCheckpoint."); 140 STAM_REG(pVM, &pVM->ftm.s.StatCheckpointPause, STAMTYPE_PROFILE, "/FT/Checkpoint/Pause", STAMUNIT_TICKS_PER_CALL, "Profiling of FTMR3SetCheckpoint."); 141 STAM_REG(pVM, &pVM->ftm.s.StatCheckpointResume, STAMTYPE_PROFILE, "/FT/Checkpoint/Resume", STAMUNIT_TICKS_PER_CALL, "Profiling of FTMR3SetCheckpoint."); 140 142 STAM_REG(pVM, &pVM->ftm.s.StatSentMemRAM, STAMTYPE_COUNTER, "/FT/Sent/Mem/RAM", STAMUNIT_BYTES, "The amount of memory pages that was sent."); 141 143 STAM_REG(pVM, &pVM->ftm.s.StatSentMemMMIO2, STAMTYPE_COUNTER, "/FT/Sent/Mem/MMIO2", STAMUNIT_BYTES, "The amount of memory pages that was sent."); … … 1232 1234 * is only a short suspend. 1233 1235 */ 1236 STAM_PROFILE_START(&pVM->ftm.s.StatCheckpointPause, a); 1234 1237 PDMR3Suspend(pVM); 1235 1238 1236 1239 /** Hack alert: as EM is responsible for dealing with the suspend state. We must do this here ourselves, but only for this EMT.*/ 1237 1240 EMR3NotifySuspend(pVM); 1241 STAM_PROFILE_STOP(&pVM->ftm.s.StatCheckpointPause, a); 1238 1242 1239 1243 STAM_REL_COUNTER_INC(&pVM->ftm.s.StatDeltaVM); … … 1268 1272 * is only a short suspend. 1269 1273 */ 1274 STAM_PROFILE_START(&pVM->ftm.s.StatCheckpointResume, b); 1270 1275 PGMR3ResetNoMorePhysWritesFlag(pVM); 1271 1276 PDMR3Resume(pVM); … … 1273 1278 /** Hack alert as EM is responsible for dealing with the suspend state. We must do this here ourselves, but only for this EMT.*/ 1274 1279 EMR3NotifyResume(pVM); 1280 STAM_PROFILE_STOP(&pVM->ftm.s.StatCheckpointResume, b); 1281 1275 1282 return rc; 1276 1283 } -
trunk/src/VBox/VMM/FTMInternal.h
r32302 r32308 111 111 #ifdef VBOX_WITH_STATISTICS 112 112 STAMPROFILE StatCheckpoint; 113 STAMPROFILE StatCheckpointResume; 114 STAMPROFILE StatCheckpointPause; 113 115 STAMCOUNTER StatSentMemRAM; 114 116 STAMCOUNTER StatSentMemMMIO2;
Note:
See TracChangeset
for help on using the changeset viewer.