Changeset View
Changeset View
Standalone View
Standalone View
src/server/connection.h
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 110 | protected: | |||
---|---|---|---|---|---|
123 | QTime m_time; | 123 | QTime m_time; | ||
124 | qint64 m_totalTime = 0; | 124 | qint64 m_totalTime = 0; | ||
125 | QHash<QString, qint64> m_totalTimeByHandler; | 125 | QHash<QString, qint64> m_totalTimeByHandler; | ||
126 | QHash<QString, qint64> m_executionsByHandler; | 126 | QHash<QString, qint64> m_executionsByHandler; | ||
127 | 127 | | |||
128 | bool m_connectionClosing = false; | 128 | bool m_connectionClosing = false; | ||
129 | 129 | | |||
130 | private: | 130 | private: | ||
131 | void parseStream(const Protocol::CommandPtr &cmd); | ||||
dvratil: const& | |||||
131 | template<typename T> | 132 | template<typename T> | ||
132 | inline typename std::enable_if<std::is_base_of<Protocol::Command, T>::value>::type | 133 | inline typename std::enable_if<std::is_base_of<Protocol::Command, T>::value>::type | ||
133 | sendResponse(qint64 tag, T &&response); | 134 | sendResponse(qint64 tag, T &&response); | ||
134 | 135 | | |||
135 | /** For debugging */ | 136 | /** For debugging */ | ||
136 | void startTime(); | 137 | void startTime(); | ||
137 | void stopTime(const QString &identifier); | 138 | void stopTime(const QString &identifier); | ||
138 | void reportTime() const; | 139 | void reportTime() const; | ||
Show All 35 Lines |
const&