VirtualBox

Changeset 80117 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Aug 3, 2019 1:52:22 PM (5 years ago)
Author:
vboxsync
Message:

VMM/TM: Added half an hour of load percentage history.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/TMInternal.h

    r76585 r80117  
    305305    uint8_t                 cPctOther;
    306306    /** Explicit alignment padding */
    307     uint8_t                 au8Alignment[5];
     307    uint8_t                 au8Alignment[1];
     308    /** Index into aHistory of the current entry. */
     309    uint16_t volatile       idxHistory;
     310    /** Number of valid history entries before idxHistory. */
     311    uint16_t volatile       cHistoryEntries;
    308312
    309313    /** Previous cNsTotal value. */
     
    313317    /** Previous cNsHalted value. */
    314318    uint64_t                cNsPrevHalted;
     319    /** Data for the last 30 min (given an interval of 1 second). */
     320    struct
     321    {
     322        uint8_t             cPctExecuting;
     323        /** The percent of the period spent halted. */
     324        uint8_t             cPctHalted;
     325        /** The percent of the period spent on other things. */
     326        uint8_t             cPctOther;
     327    }                       aHistory[30*60];
    315328} TMCPULOADSTATE;
    316329AssertCompileSizeAlignment(TMCPULOADSTATE, 8);
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