Changeset 101898 in vbox
- Timestamp:
- Nov 6, 2023 7:37:35 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4/xpcom/threads
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/threads/plevent.c
r101897 r101898 522 522 PLDestroyEventProc destructor) 523 523 { 524 #ifdef PL_POST_TIMINGS525 self->postTime = PR_IntervalNow();526 #endif527 524 PR_INIT_CLIST(&self->link); 528 525 self->handler = handler; … … 568 565 } 569 566 } 570 #ifdef PL_POST_TIMINGS571 static long s_eventCount = 0;572 static long s_totalTime = 0;573 #endif574 567 575 568 PR_IMPLEMENT(void) … … 586 579 if(self->lock) 587 580 PR_DestroyLock(self->lock); 588 589 #ifdef PL_POST_TIMINGS590 s_totalTime += PR_IntervalNow() - self->postTime;591 s_eventCount++;592 printf("$$$ running avg (%d) \n", PR_IntervalToMilliseconds(s_totalTime/s_eventCount));593 #endif594 581 595 582 self->destructor(self); -
trunk/src/libs/xpcom18a4/xpcom/threads/plevent.h
r101897 r101898 529 529 PRCondVar* condVar; 530 530 PRBool handled; 531 #ifdef PL_POST_TIMINGS532 PRIntervalTime postTime;533 #endif534 531 #ifdef XP_UNIX 535 532 unsigned long id;
Note:
See TracChangeset
for help on using the changeset viewer.