VirtualBox

Changeset 76748 in vbox for trunk


Ignore:
Timestamp:
Jan 9, 2019 5:58:01 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r76727 r76748  
    993993            else
    994994            {
    995                 Log3Func(("[%s] Writing %RU32 frames (%RU64ms), now filled with %RU64ms -- %RU8%%\n",
    996                           pStream->szName, cfGstWritten, DrvAudioHlpFramesToMilli(cfGstWritten, &pStream->Guest.Cfg.Props),
     995                const uint64_t tsNowNs = RTTimeNanoTS();
     996
     997                Log3Func(("[%s] Writing %RU32 frames (%RU64ms)\n",
     998                          pStream->szName, cfGstWritten, DrvAudioHlpFramesToMilli(cfGstWritten, &pStream->Guest.Cfg.Props)));
     999
     1000                Log3Func(("[%s] Last written %RU64ns (%RU64ms), now filled with %RU64ms -- %RU8%%\n",
     1001                          pStream->szName, tsNowNs - pStream->tsLastReadWrittenNs,
     1002                          (tsNowNs - pStream->tsLastReadWrittenNs) / RT_NS_1MS,
    9971003                          DrvAudioHlpFramesToMilli(AudioMixBufUsed(&pStream->Host.MixBuf), &pStream->Host.Cfg.Props),
    9981004                          AudioMixBufUsed(&pStream->Host.MixBuf) * 100 / AudioMixBufSize(&pStream->Host.MixBuf)));
    9991005
    1000                 pStream->tsLastReadWrittenNs = RTTimeNanoTS();
     1006                pStream->tsLastReadWrittenNs = tsNowNs;
    10011007                /* Keep going. */
    10021008            }
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