VirtualBox

Changeset 62328 in vbox


Ignore:
Timestamp:
Jul 19, 2016 2:58:22 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108864
Message:

Audio/DrvAudio: Added some basic statistics for STAM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r62176 r62328  
    2727#define ___VBox_vmm_pdmaudioifs_h
    2828
    29 #include <VBox/types.h>
    3029#include <iprt/circbuf.h>
    3130#include <iprt/critsect.h>
    3231#include <iprt/list.h>
     32
     33#include <VBox/types.h>
     34#ifdef VBOX_WITH_STATISTICS
     35# include <VBox/vmm/stam.h>
     36#endif
    3337
    3438#ifdef VBOX_WITH_AUDIO_50
     
    557561typedef struct PDMAUDIOSTREAMIN
    558562{
     563    /** Timestamp (in ms) since last read. */
     564    uint64_t tsLastReadMS;
     565#ifdef VBOX_WITH_STATISTICS
     566    STAMCOUNTER StatBytesElapsed;
     567    STAMCOUNTER StatBytesTotalRead;
     568    STAMCOUNTER StatSamplesCaptured;
     569#endif
    559570} PDMAUDIOSTREAMIN, *PPDMAUDIOSTREAMIN;
    560571
     
    565576typedef struct PDMAUDIOSTREAMOUT
    566577{
     578    /** Timestamp (in ms) since last write. */
     579    uint64_t    tsLastWriteMS;
     580#ifdef VBOX_WITH_STATISTICS
     581    STAMCOUNTER StatBytesElapsed;
     582    STAMCOUNTER StatBytesTotalWritten;
     583    STAMCOUNTER StatSamplesPlayed;
     584#endif
    567585} PDMAUDIOSTREAMOUT, *PPDMAUDIOSTREAMOUT;
    568586
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