VirtualBox

Changeset 29496 in vbox


Ignore:
Timestamp:
May 14, 2010 7:09:40 PM (15 years ago)
Author:
vboxsync
Message:

AsyncCompletion: Log requests which take longer than 10 seconds

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

Legend:

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

    r28853 r29496  
    766766        pTask->pPrev     = NULL;
    767767        pTask->pNext     = NULL;
     768        pTask->tsNsStart = RTTimeNanoTS();
    768769#ifdef VBOX_WITH_STATISTICS
    769         pTask->tsNsStart = RTTimeNanoTS();
    770770        STAM_COUNTER_INC(&pEndpoint->StatIoOpsStarted);
    771771#endif
     
    785785{
    786786    PPDMASYNCCOMPLETIONEPCLASS pEndpointClass = pEndpoint->pEpClass;
     787    uint64_t tsRun  = RTTimeNanoTS() - pTask->tsNsStart;
     788
     789    if (RT_UNLIKELY(tsRun >= (uint64_t)10*1000*1000*1000))
     790    {
     791        LogRel(("AsyncCompletion: Task completed after %llu seconds\n", tsRun / ((uint64_t)1000*1000*1000)));
     792    }
    787793
    788794#ifdef VBOX_WITH_STATISTICS
    789     uint64_t tsRun  = RTTimeNanoTS() - pTask->tsNsStart;
    790795    uint64_t iStatIdx;
    791796
  • trunk/src/VBox/VMM/PDMAsyncCompletionInternal.h

    r28800 r29496  
    237237    /** Task id. */
    238238    uint32_t                                uTaskId;
    239 #ifdef VBOX_WITH_STATISTICS
    240239    /** Start timestamp. */
    241240    uint64_t                                tsNsStart;
    242 #endif
    243241} PDMASYNCCOMPLETIONTASK;
    244242
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