diff options
author | Brad King <brad.king@kitware.com> | 2016-09-21 12:47:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-21 12:47:48 (GMT) |
commit | eca2af6e66343c51389f6605df79f7e6ce60cf37 (patch) | |
tree | e29abb1e6ccc488eebcaaa6a3705e3d5e2e80620 /Help | |
parent | 1657fa0795fe6109780593a265a240d9ef73ef77 (diff) | |
parent | 4fb2b41a58fa3bd82649d8b19ecbe038e594e753 (diff) | |
download | CMake-eca2af6e66343c51389f6605df79f7e6ce60cf37.zip CMake-eca2af6e66343c51389f6605df79f7e6ce60cf37.tar.gz CMake-eca2af6e66343c51389f6605df79f7e6ce60cf37.tar.bz2 |
Merge topic 'cmake-server-more-info'
4fb2b41a server-mode: Add debug support
537efe05 server-mode: Report Messages from cmake to clients
ca779948 server-mode: Automate progress reporting
70b8ba9a cmake-server: Use consistent constant naming style
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-server.7.rst | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Help/manual/cmake-server.7.rst b/Help/manual/cmake-server.7.rst index fd0c9ee..75aa0ee 100644 --- a/Help/manual/cmake-server.7.rst +++ b/Help/manual/cmake-server.7.rst @@ -68,6 +68,40 @@ Messages sent to and from the process are wrapped in magic strings:: The server is now ready to accept further requests via stdin. +Debugging +========= + +CMake server mode can be asked to provide statistics on execution times, etc. +or to dump a copy of the response into a file. This is done passing a "debug" +JSON object as a child of the request. + +The debug object supports the "showStats" key, which takes a boolean and makes +the server mode return a "zzzDebug" object with stats as part of its response. +"dumpToFile" takes a string value and will cause the cmake server to copy +the response into the given filename. + +This is a response from the cmake server with "showStats" set to true:: + + [== CMake Server ==[ + { + "cookie":"", + "errorMessage":"Waiting for type \"handshake\".", + "inReplyTo":"unknown", + "type":"error", + "zzzDebug": { + "dumpFile":"/tmp/error.txt", + "jsonSerialization":0.011016, + "size":111, + "totalTime":0.025995 + } + } + ]== CMake Server ==] + +The server has made a copy of this response into the file /tmp/error.txt and +took 0.011 seconds to turn the JSON response into a string, and it took 0.025 +seconds to process the request in total. The reply has a size of 111 bytes. + + Protocol API ============ @@ -132,6 +166,21 @@ a message of type "reply" or "error" that complete the request. the request that triggered the responses was delivered. +Type "message" +^^^^^^^^^^^^^^ + +A message is triggered when the server processes a request and produces some +form of output that should be displayed to the user. A Message has a "message" +with the actual text to display as well as a "title" with a suggested dialog +box title. + +Example:: + + [== CMake Server ==[ + {"cookie":"","message":"Something happened.","title":"Title Text","inReplyTo":"handshake","type":"message"} + ]== CMake Server ==] + + Specific Message Types ---------------------- |