- Timestamp:
- 05/31/13 13:11:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r15442 r16525 1561 1561 1562 1562 /* 1563 //info about status of the main threads 1564 int32_t readStat ; //read thread 1565 int32_t procStat ; //processing thread(s) 1566 int32_t writStat ; //write thread 1563 uint32_t bufNew ; //# incomplete events in buffer (evtCtrl) 1564 uint32_t bufEvt ; //# complete events in buffer (primaryQueue) 1565 uint32_t bufWrite ; //# events in write queue (secondaryQueue) 1566 uint32_t bufProc ; //# events in processing queue (processingQueue1) 1567 uint32_t bufTot ; //# total events currently in buffer (this corresponds to totMem) 1568 1569 uint64_t totMem; //# Bytes available in Buffer 1570 uint64_t usdMem; //# Bytes currently used 1571 uint64_t maxMem; //max # Bytes used during past cycle 1567 1572 */ 1568 1573 1569 fFadBufferMax->setValue(stat. totMem/1000000);1574 fFadBufferMax->setValue(stat.maxMem/1000000); 1570 1575 fFadBuffer->setMaximum(stat.totMem/100); 1571 fFadBuffer->setValue( (stat.maxMem>stat.totMem?stat.totMem:stat.maxMem)/100); // Max mem used in last second1576 fFadBuffer->setValue(stat.usdMem/100); // Max mem used in last second 1572 1577 1573 1578 uint32_t sum = 0; 1574 //int32_t min = 0x7fffff;1575 //int32_t max = 0;1576 1577 1579 int cnt = 0; 1578 1580 1579 1581 for (int i=0; i<40; i++) 1580 1582 { 1581 if (stat.numConn[i]!=1) 1582 continue; 1583 1584 cnt++; 1585 1586 sum += stat.rateBytes[i]; 1587 1588 //if (stat.rateBytes[i]<min) 1589 // min = stat.rateBytes[i]; 1590 //if (stat.rateBytes[i]>max) 1591 // max = stat.rateBytes[i]; 1583 if (stat.numConn[i]==1) 1584 { 1585 sum += stat.rateBytes[i]; 1586 cnt++; 1587 } 1592 1588 } 1593 1589 … … 1596 1592 fFadEvtBufNew->setValue(stat.bufNew); // Incomplete in buffer 1597 1593 fFadEvtBufEvt->setValue(stat.bufEvt); // Complete in buffer 1598 fFadEvtBufMax->setValue(stat.maxEvt); // Complete in buffer 1599 fFadEvtWrite->setValue(stat.evtWrite-stat.evtSkip-stat.evtErr); 1600 fFadEvtSkip->setValue(stat.evtSkip); 1601 fFadEvtErr->setValue(stat.evtErr); 1594 fFadEvtBufMax->setValue(stat.bufTot); // Complete in buffer 1595 fFadEvtWrite->setValue(stat.bufWrite); 1596 fFadEvtSkip->setValue(stat.bufProc); 1602 1597 1603 1598 if (stat.deltaT==0)
Note:
See TracChangeset
for help on using the changeset viewer.