12 #ifndef __NET_WEBSTATSMANAGER_H__
13 #define __NET_WEBSTATSMANAGER_H__
23 void updateProcess(
fpreal amount);
24 void updateQueueWait(
fpreal amount);
27 inline bool isEnabled()
const {
return myIsEnabled; }
29 void addTotalRequests(
unsigned amount);
30 void addCurrentQueueSize(
int amount);
31 void addFailCount(
unsigned count);
33 fpreal maxProcessTime()
const;
34 fpreal maxQueueWaitTime()
const;
36 fpreal averageProcessTime()
const;
37 fpreal averageQueueWaitTime()
const;
39 unsigned currentQueueSize()
const;
40 unsigned maxQueueSize()
const;
49 fpreal myMaxWaits[WaitType::MAX_WAIT_TYPE];
50 fpreal myTotalWaits[WaitType::MAX_WAIT_TYPE];
52 bool myIsEnabled =
false;
54 unsigned myTotalRequests;
55 unsigned myCurrentQueueSize;
56 unsigned myMaxQueueSize;
60 #endif // __NET_WEBSTATSMANAGER_H__
void setEnabled(bool enabled)
Simple holder for statistics relating to the web server.
GLenum GLsizei const GLuint GLboolean enabled
GLuint GLuint GLsizei count