VirtualBox

Changeset 92385 in vbox


Ignore:
Timestamp:
Nov 11, 2021 11:54:29 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PGM: Some more large page stats. bugref:10093

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/PGMR0.cpp

    r92383 r92385  
    304304int pgmR0PhysAllocateLargePage(PGVM pGVM, VMCPUID idCpu, RTGCPHYS GCPhys)
    305305{
     306    STAM_PROFILE_ADV_START(&pGVM->pgm.s.Stats.StatLargePageAlloc2, a);
    306307    PGM_LOCK_ASSERT_OWNER_EX(pGVM, &pGVM->aCpus[idCpu]);
    307308
     
    355356    }
    356357
    357     STAM_PROFILE_START(&pGVM->pgm.s.Stats.StatLargePageSetup, b);
     358    STAM_PROFILE_ADV_STOP_START(&pGVM->pgm.s.Stats.StatLargePageAlloc2, &pGVM->pgm.s.Stats.StatLargePageSetup, a);
    358359
    359360    /*
     
    415416    pgmPhysInvalidatePageMapTLB(pGVM);
    416417
    417     STAM_PROFILE_STOP(&pGVM->pgm.s.Stats.StatLargePageSetup, b);
     418    STAM_PROFILE_ADV_STOP(&pGVM->pgm.s.Stats.StatLargePageSetup, a);
    418419#if 0 /** @todo returning info statuses here might not be a great idea... */
    419420    LogFlow(("PGMR0PhysAllocateLargePage: returns %Rrc\n", VBOXSTRICTRC_VAL(rc) ));
  • trunk/src/VBox/VMM/VMMR3/PGM.cpp

    r92381 r92385  
    12131213    PGM_REG_COUNTER(&pPGM->StatLargePageZeroEvict,              "/PGM/LargePage/ZeroEvict",           "The number of zero page mappings we had to evict when allocating a large page.");
    12141214#ifdef VBOX_WITH_STATISTICS
     1215    PGM_REG_PROFILE(&pStats->StatLargePageAlloc2,               "/PGM/LargePage/Alloc2",              "Time spent allocating large pages.");
    12151216    PGM_REG_PROFILE(&pStats->StatLargePageSetup,                "/PGM/LargePage/Setup",               "Time spent setting up the newly allocated large pages.");
    12161217    PGM_REG_PROFILE(&pStats->StatR3IsValidLargePage,            "/PGM/LargePage/IsValidR3",           "pgmPhysIsValidLargePage profiling - R3.");
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r92381 r92385  
    30153015    STAMPROFILE StatTrackDeref;                     /**< Profiling of SyncPageWorkerTrackDeref (expensive). */
    30163016
    3017     STAMPROFILE StatLargePageSetup;                 /**< Time spent setting up newly allocated large pages. */
     3017    STAMPROFILEADV StatLargePageAlloc2;            /**< Time spent setting up newly allocated large pages. */
     3018    STAMPROFILEADV StatLargePageSetup;             /**< Time spent setting up newly allocated large pages. */
    30183019    /** pgmPhysIsValidLargePage profiling - R3 */
    30193020    STAMPROFILE StatR3IsValidLargePage;
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