VirtualBox

Changeset 32308 in vbox


Ignore:
Timestamp:
Sep 8, 2010 11:38:05 AM (14 years ago)
Author:
vboxsync
Message:

FTM: More stats

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

Legend:

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

    r32302 r32308  
    138138#ifdef VBOX_WITH_STATISTICS
    139139    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.");
    140142    STAM_REG(pVM,     &pVM->ftm.s.StatSentMemRAM,                STAMTYPE_COUNTER, "/FT/Sent/Mem/RAM",                  STAMUNIT_BYTES, "The amount of memory pages that was sent.");
    141143    STAM_REG(pVM,     &pVM->ftm.s.StatSentMemMMIO2,              STAMTYPE_COUNTER, "/FT/Sent/Mem/MMIO2",                STAMUNIT_BYTES, "The amount of memory pages that was sent.");
     
    12321234     *  is only a short suspend.
    12331235     */
     1236    STAM_PROFILE_START(&pVM->ftm.s.StatCheckpointPause, a);
    12341237    PDMR3Suspend(pVM);
    12351238
    12361239    /** Hack alert: as EM is responsible for dealing with the suspend state. We must do this here ourselves, but only for this EMT.*/
    12371240    EMR3NotifySuspend(pVM);
     1241    STAM_PROFILE_STOP(&pVM->ftm.s.StatCheckpointPause, a);
    12381242
    12391243    STAM_REL_COUNTER_INC(&pVM->ftm.s.StatDeltaVM);
     
    12681272     *  is only a short suspend.
    12691273     */
     1274    STAM_PROFILE_START(&pVM->ftm.s.StatCheckpointResume, b);
    12701275    PGMR3ResetNoMorePhysWritesFlag(pVM);
    12711276    PDMR3Resume(pVM);
     
    12731278    /** Hack alert as EM is responsible for dealing with the suspend state. We must do this here ourselves, but only for this EMT.*/
    12741279    EMR3NotifyResume(pVM);
     1280    STAM_PROFILE_STOP(&pVM->ftm.s.StatCheckpointResume, b);
     1281
    12751282    return rc;
    12761283}
  • trunk/src/VBox/VMM/FTMInternal.h

    r32302 r32308  
    111111#ifdef VBOX_WITH_STATISTICS
    112112    STAMPROFILE         StatCheckpoint;
     113    STAMPROFILE         StatCheckpointResume;
     114    STAMPROFILE         StatCheckpointPause;
    113115    STAMCOUNTER         StatSentMemRAM;
    114116    STAMCOUNTER         StatSentMemMMIO2;
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