summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 08:01:44 (GMT)
committerTobias Hunger <tobias.hunger@qt.io>2016-09-20 18:52:44 (GMT)
commit4fb2b41a58fa3bd82649d8b19ecbe038e594e753 (patch)
tree68c4b51f8df062777bb5fecbe6f98c4956b36144 /Source/cmServer.h
parent537efe0561ef6a690fd7aac34ce1e4a46614f2e4 (diff)
downloadCMake-4fb2b41a58fa3bd82649d8b19ecbe038e594e753.zip
CMake-4fb2b41a58fa3bd82649d8b19ecbe038e594e753.tar.gz
CMake-4fb2b41a58fa3bd82649d8b19ecbe038e594e753.tar.bz2
server-mode: Add debug support
Enable the server to support development with some helper tools: You can now request debug information with statistics on how long execution of a command took, how long it took to serialize the JSON files, and how big the serialized JSON string is. Also allow to dump results into a file.
Diffstat (limited to 'Source/cmServer.h')
-rw-r--r--Source/cmServer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmServer.h b/Source/cmServer.h
index 29b61bf..38a11bb 100644
--- a/Source/cmServer.h
+++ b/Source/cmServer.h
@@ -31,6 +31,8 @@ class cmServerResponse;
class cmServer
{
public:
+ class DebugInfo;
+
cmServer(bool supportExperimental);
~cmServer();
@@ -57,10 +59,12 @@ private:
int max, const std::string& message) const;
void WriteMessage(const cmServerRequest& request, const std::string& message,
const std::string& title) const;
- void WriteResponse(const cmServerResponse& response) const;
+ void WriteResponse(const cmServerResponse& response,
+ const DebugInfo* debug) const;
void WriteParseError(const std::string& message) const;
- void WriteJsonObject(Json::Value const& jsonValue) const;
+ void WriteJsonObject(Json::Value const& jsonValue,
+ const DebugInfo* debug) const;
static cmServerProtocol* FindMatchingProtocol(
const std::vector<cmServerProtocol*>& protocols, int major, int minor);