Changeset 29496 in vbox
- Timestamp:
- May 14, 2010 7:09:40 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletion.cpp
r28853 r29496 766 766 pTask->pPrev = NULL; 767 767 pTask->pNext = NULL; 768 pTask->tsNsStart = RTTimeNanoTS(); 768 769 #ifdef VBOX_WITH_STATISTICS 769 pTask->tsNsStart = RTTimeNanoTS();770 770 STAM_COUNTER_INC(&pEndpoint->StatIoOpsStarted); 771 771 #endif … … 785 785 { 786 786 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 } 787 793 788 794 #ifdef VBOX_WITH_STATISTICS 789 uint64_t tsRun = RTTimeNanoTS() - pTask->tsNsStart;790 795 uint64_t iStatIdx; 791 796 -
trunk/src/VBox/VMM/PDMAsyncCompletionInternal.h
r28800 r29496 237 237 /** Task id. */ 238 238 uint32_t uTaskId; 239 #ifdef VBOX_WITH_STATISTICS240 239 /** Start timestamp. */ 241 240 uint64_t tsNsStart; 242 #endif243 241 } PDMASYNCCOMPLETIONTASK; 244 242
Note:
See TracChangeset
for help on using the changeset viewer.