VirtualBox

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


Ignore:
Timestamp:
Oct 3, 2012 3:48:45 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81117
Message:

AsyncCompletion: More statistics and include them in a release build (configurable through CFGM, default is disabled)

File:
1 edited

Legend:

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

    r41777 r43529  
    184184    /** Task cache. */
    185185    RTMEMCACHE                                  hMemCacheTasks;
     186    /** Flag whether to gather advanced statistics about requests. */
     187    bool                                        fGatherAdvancedStatistics;
    186188} PDMASYNCCOMPLETIONEPCLASS;
    187189/** Pointer to the PDM async completion endpoint class data. */
     
    208210    /** Pointer to the assigned bandwidth manager. */
    209211    volatile PPDMACBWMGR                        pBwMgr;
    210 #ifdef VBOX_WITH_STATISTICS
     212    /** Aligns following statistic counters on a 8 byte boundary. */
    211213    uint32_t                                    u32Alignment;
     214    /** @name Request size statistics.
     215     * @{ */
     216    STAMCOUNTER                                 StatReqSizeSmaller512;
     217    STAMCOUNTER                                 StatReqSize512To1K;
     218    STAMCOUNTER                                 StatReqSize1KTo2K;
     219    STAMCOUNTER                                 StatReqSize2KTo4K;
     220    STAMCOUNTER                                 StatReqSize4KTo8K;
     221    STAMCOUNTER                                 StatReqSize8KTo16K;
     222    STAMCOUNTER                                 StatReqSize16KTo32K;
     223    STAMCOUNTER                                 StatReqSize32KTo64K;
     224    STAMCOUNTER                                 StatReqSize64KTo128K;
     225    STAMCOUNTER                                 StatReqSize128KTo256K;
     226    STAMCOUNTER                                 StatReqSize256KTo512K;
     227    STAMCOUNTER                                 StatReqSizeOver512K;
     228    STAMCOUNTER                                 StatReqsUnaligned512;
     229    STAMCOUNTER                                 StatReqsUnaligned4K;
     230    /** @} */
     231    /** @name Request completion time statistics.
     232     * @{ */
    212233    STAMCOUNTER                                 StatTaskRunTimesNs[10];
    213234    STAMCOUNTER                                 StatTaskRunTimesUs[10];
     
    220241    uint64_t                                    tsIntervalStartMs;
    221242    uint64_t                                    cIoOpsCompleted;
    222 #endif
     243    /** @} */
    223244} PDMASYNCCOMPLETIONENDPOINT;
    224 #ifdef VBOX_WITH_STATISTICS
     245AssertCompileMemberAlignment(PDMASYNCCOMPLETIONENDPOINT, StatReqSizeSmaller512, sizeof(uint64_t));
    225246AssertCompileMemberAlignment(PDMASYNCCOMPLETIONENDPOINT, StatTaskRunTimesNs, sizeof(uint64_t));
    226 #endif
    227247
    228248/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette