111 |
dmsg(1,("Calibrating profiler...")); |
dmsg(1,("Calibrating profiler...")); |
112 |
gig::Profiler::Calibrate(); |
gig::Profiler::Calibrate(); |
113 |
gig::Profiler::Reset(); |
gig::Profiler::Reset(); |
114 |
|
gig::Profiler::enable(); |
115 |
dmsg(1,("OK\n")); |
dmsg(1,("OK\n")); |
116 |
} |
} |
117 |
|
|
121 |
rtEvents.push_back(LSCPEvent::event_voice_count); |
rtEvents.push_back(LSCPEvent::event_voice_count); |
122 |
rtEvents.push_back(LSCPEvent::event_stream_count); |
rtEvents.push_back(LSCPEvent::event_stream_count); |
123 |
rtEvents.push_back(LSCPEvent::event_buffer_fill); |
rtEvents.push_back(LSCPEvent::event_buffer_fill); |
124 |
|
rtEvents.push_back(LSCPEvent::event_total_voice_count); |
125 |
|
|
126 |
while (true) { |
while (true) { |
127 |
if (bPrintStatistics) { |
if (bPrintStatistics) { |
163 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_voice_count, iter->first, pEngine->VoiceCount())); |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_voice_count, iter->first, pEngine->VoiceCount())); |
164 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_stream_count, iter->first, pEngine->DiskStreamCount())); |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_stream_count, iter->first, pEngine->DiskStreamCount())); |
165 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_buffer_fill, iter->first, pEngine->DiskStreamBufferFillPercentage())); |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_buffer_fill, iter->first, pEngine->DiskStreamBufferFillPercentage())); |
166 |
|
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_total_voice_count, pSampler->GetVoiceCount())); |
167 |
} |
} |
168 |
LSCPServer::UnlockRTNotify(); |
LSCPServer::UnlockRTNotify(); |
169 |
} |
} |