VirtualBox

Changeset 21168 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 2, 2009 2:28:47 PM (16 years ago)
Author:
vboxsync
Message:

More statistics

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

Legend:

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

    r21164 r21168  
    15911591    PGM_REG_COUNTER(&pPGM->StatR3PhysWrite,                   "/PGM/R3/Phys/Write",                 "The number of times PGMPhysWrite was called.");
    15921592    PGM_REG_COUNTER_BYTES(&pPGM->StatR3PhysWriteBytes,        "/PGM/R3/Phys/Write/Bytes",           "The number of bytes written by PGMPhysWrite.");
     1593    PGM_REG_COUNTER(&pPGM->StatR3PhysSimpleRead,              "/PGM/R3/Phys/Simple/Read",           "The number of times PGMPhysSimpleReadGCPtr was called.");
     1594    PGM_REG_COUNTER_BYTES(&pPGM->StatR3PhysSimpleReadBytes,   "/PGM/R3/Phys/Simple/Read/Bytes",     "The number of bytes read by PGMPhysSimpleReadGCPtr.");
     1595    PGM_REG_COUNTER(&pPGM->StatR3PhysSimpleWrite,             "/PGM/R3/Phys/Simple/Write",          "The number of times PGMPhysSimpleWriteGCPtr was called.");
     1596    PGM_REG_COUNTER_BYTES(&pPGM->StatR3PhysSimpleWriteBytes,  "/PGM/R3/Phys/Simple/Write/Bytes",    "The number of bytes written by PGMPhysSimpleWriteGCPtr.");
    15931597
    15941598    PGM_REG_COUNTER(&pPGM->StatRZChunkR3MapTlbHits,           "/PGM/ChunkR3Map/TlbHitsRZ",          "TLB hits.");
     
    16221626    PGM_REG_COUNTER(&pPGM->StatRZPhysWrite,                   "/PGM/RZ/Phys/Write",                 "The number of times PGMPhysWrite was called.");
    16231627    PGM_REG_COUNTER_BYTES(&pPGM->StatRZPhysWriteBytes,        "/PGM/RZ/Phys/Write/Bytes",           "The number of bytes written by PGMPhysWrite.");
     1628    PGM_REG_COUNTER(&pPGM->StatRZPhysSimpleRead,              "/PGM/RZ/Phys/Simple/Read",           "The number of times PGMPhysSimpleReadGCPtr was called.");
     1629    PGM_REG_COUNTER_BYTES(&pPGM->StatRZPhysSimpleReadBytes,   "/PGM/RZ/Phys/Simple/Read/Bytes",     "The number of bytes read by PGMPhysSimpleReadGCPtr.");
     1630    PGM_REG_COUNTER(&pPGM->StatRZPhysSimpleWrite,             "/PGM/RZ/Phys/Simple/Write",          "The number of times PGMPhysSimpleWriteGCPtr was called.");
     1631    PGM_REG_COUNTER_BYTES(&pPGM->StatRZPhysSimpleWriteBytes,  "/PGM/RZ/Phys/Simple/Write/Bytes",    "The number of bytes written by PGMPhysSimpleWriteGCPtr.");
    16241632
    16251633    /* GC only: */
     
    16331641    PGM_REG_COUNTER(&pPGM->StatRCPhysWrite,                   "/PGM/RC/Phys/Write",                 "The number of times PGMPhysWrite was called.");
    16341642    PGM_REG_COUNTER_BYTES(&pPGM->StatRCPhysWriteBytes,        "/PGM/RC/Phys/Write/Bytes",           "The number of bytes written by PGMPhysWrite.");
     1643    PGM_REG_COUNTER(&pPGM->StatRCPhysSimpleRead,              "/PGM/RC/Phys/Simple/Read",           "The number of times PGMPhysSimpleReadGCPtr was called.");
     1644    PGM_REG_COUNTER_BYTES(&pPGM->StatRCPhysSimpleReadBytes,   "/PGM/RC/Phys/Simple/Read/Bytes",     "The number of bytes read by PGMPhysSimpleReadGCPtr.");
     1645    PGM_REG_COUNTER(&pPGM->StatRCPhysSimpleWrite,             "/PGM/RC/Phys/Simple/Write",          "The number of times PGMPhysSimpleWriteGCPtr was called.");
     1646    PGM_REG_COUNTER_BYTES(&pPGM->StatRCPhysSimpleWriteBytes,  "/PGM/RC/Phys/Simple/Write/Bytes",    "The number of bytes written by PGMPhysSimpleWriteGCPtr.");
    16351647
    16361648# ifdef PGMPOOL_WITH_GCPHYS_TRACKING
  • trunk/src/VBox/VMM/PGMInternal.h

    r21164 r21168  
    24932493    STAMCOUNTER StatRCPhysWriteBytes;
    24942494
     2495    STAMCOUNTER StatRZPhysSimpleRead;
     2496    STAMCOUNTER StatRZPhysSimpleReadBytes;
     2497    STAMCOUNTER StatRZPhysSimpleWrite;
     2498    STAMCOUNTER StatRZPhysSimpleWriteBytes;
     2499    STAMCOUNTER StatR3PhysSimpleRead;
     2500    STAMCOUNTER StatR3PhysSimpleReadBytes;
     2501    STAMCOUNTER StatR3PhysSimpleWrite;
     2502    STAMCOUNTER StatR3PhysSimpleWriteBytes;
     2503    STAMCOUNTER StatRCPhysSimpleRead;
     2504    STAMCOUNTER StatRCPhysSimpleReadBytes;
     2505    STAMCOUNTER StatRCPhysSimpleWrite;
     2506    STAMCOUNTER StatRCPhysSimpleWriteBytes;
     2507
    24952508# ifdef PGMPOOL_WITH_GCPHYS_TRACKING
    24962509    STAMCOUNTER StatTrackVirgin;                    /**< The number of first time shadowings. */
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r21164 r21168  
    22822282        return VINF_SUCCESS;
    22832283
     2284    STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleRead));
     2285    STAM_COUNTER_ADD(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleReadBytes), cb);
     2286
    22842287    /* Take the PGM lock here, because many called functions take the lock for a very short period. That's counter-productive
    22852288     * when many VCPUs are fighting for the lock.
     
    23682371    if (!cb)
    23692372        return VINF_SUCCESS;
     2373
     2374    STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleWrite));
     2375    STAM_COUNTER_ADD(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleWriteBytes), cb);
    23702376
    23712377    /* map the 1st page */
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