@@ -59,18 +59,28 @@ To use the **tsp_cli_client** script, type the following command in the root dir
5959``` python
6060./ tsp_cli_client - h
6161
62- usage: tsp_cli_client [- h] [-- ip IP ] [-- port PORT ] [-- open - trace TRACE_PATH ]
62+ usage: tsp_cli_client [- h] [-- ip IP ] [-- port PORT ]
63+ [-- open - trace TRACE_PATH ]
6364 [-- name NAME ] [-- list - trace UUID ] [-- list - traces]
6465 [-- delete- trace UUID ] [-- open - experiment EXP_NAME ]
6566 [-- list - experiment UUID ] [-- list - experiments]
6667 [-- delete- experiment UUID ] [-- list - outputs UUID ]
6768 [-- list - output OUTPUT_ID ] [-- get- tree OUTPUT_ID ]
69+ [-- get- timegraph- tree OUTPUT_ID ]
6870 [-- get- xy- tree OUTPUT_ID ] [-- get- xy OUTPUT_ID ]
6971 [-- items [ITEMS ... ]] [-- times [TIMES ... ]]
7072 [-- uuid UUID ] [-- uuids [UUIDS ... ]] [-- do- delete- traces]
71- [-- paths [PATHS ... ]] [-- list - extensions]
72- [-- load- extension EXTENSION_PATH ]
73- [-- delete- extension EXTENSION_NAME ]
73+ [-- paths [PATHS ... ]]
74+ [-- list - configuration- sources]
75+ [-- list - configuration- source TYPE_ID ]
76+ [-- list - configurations TYPE_ID ]
77+ [-- list - configuration CONFIG_ID ]
78+ [-- load- configuration]
79+ [-- update- configuration]
80+ [-- delete- configuration CONFIGURATION_ID ]
81+ [-- type - id TYPE_ID ]
82+ [-- config- id CONFIG_ID ]
83+ [-- params PARAMS ]
7484
7585CLI client to send Trace Server Protocol commands to a Trace Server.
7686
@@ -94,21 +104,62 @@ optional arguments:
94104 -- list - outputs UUID Get details on the given trace
95105 -- list - output OUTPUT_ID
96106 Get details on the given output of a trace
97- -- get- tree OUTPUT_ID Get the timegraph tree of an output
107+ -- get- tree OUTPUT_ID Get the tree of an output of type DATA_TREE
108+ -- get- timegraph- tree OUTPUT_ID
109+ Get the tree of an output of type TIME_GRAPH
98110 -- get- xy- tree OUTPUT_ID
99- Get the XY tree of an output
111+ Get the tree of an output of type TREE_TIME_XY
100112 -- get- xy OUTPUT_ID Get the XY data of an output
101113 -- items [ITEMS ... ] The list of XY items requested
102114 -- times [TIMES ... ] The list of XY times requested
103115 -- uuid UUID The UUID of a trace
104116 -- uuids [UUIDS ... ] The list of UUIDs
105117 -- do- delete- traces Also delete traces when deleting experiment
106118 -- paths [PATHS ... ] List of trace paths to be part of an experiment
107- -- list - extensions Get the extensions loaded
108- -- load- extension EXTENSION_PATH
109- Load an extension
110- -- delete- extension EXTENSION_NAME
111- Delete an extension
119+ -- list - configuration- sources
120+ Get the available configuration sources
121+ -- list - configuration- source TYPE_ID
122+ Get a available configuration source
123+ -- list - configurations TYPE_ID
124+ Get the configurations loaded for given type
125+ -- list - configuration CONFIG_ID
126+ Get a configuration loaded for given type and config id
127+ -- load- configuration Load an configuration using paramemeters provided by -- params
128+ -- update- configuration
129+ Update an configuration using paramemeters provided by -- params
130+ -- delete- configuration CONFIGURATION_ID
131+ Delete a configuration
132+ -- type - id TYPE_ID id of configuration source type
133+ -- config- id CONFIG_ID
134+ id of configuration
135+ -- params PARAMS comma separated key value pairs (key1 = val1,key2 = val2)
136+ ```
137+
138+ Examples:
139+ ```python
140+ ''' Open trace '''
141+ ./ tsp_cli_client -- open - trace TRACE_PATH [-- name NAME ]
142+ ./ tsp_cli_client -- list - traces
143+ ./ tsp_cli_client -- list - trace UUID
144+ ./ tsp_cli_client -- list - trace UUID
145+ ./ tsp_cli_client -- delete- trace UUID
146+ ./ tsp_cli_client -- open - experiment EXP_NAME -- uuids UUIDS
147+ ./ tsp_cli_client -- open - experiment EXP_NAME -- paths PATHS
148+ ./ tsp_cli_client -- list - experiments
149+ ./ tsp_cli_client -- list - experiment UUID
150+ ./ tsp_cli_client -- delete- experiment UUID [-- do- delete- traces]
151+ ./ tsp_cli_client -- list - outputs UUID
152+ ./ tsp_cli_client -- get- tree OUTPUT_ID -- uuid UUID
153+ ./ tsp_cli_client -- get- timegraph- tree OUTPUT_ID -- uuid UUID
154+ ./ tsp_cli_client -- get- xy- tree OUTPUT_ID -- uuid UUID
155+ ./ tsp_cli_client -- get- xy OUTPUT_ID -- uuid UUID -- items ITEMS -- times TIMES
156+ ./ tsp_cli_client -- list - configuration- sources
157+ ./ tsp_cli_client -- list - configuration- source TYPE_ID
158+ ./ tsp_cli_client -- list - configurations TYPE_ID
159+ ./ tsp_cli_client -- list - configuration CONFIG_ID -- type - id TYPE_ID
160+ ./ tsp_cli_client -- load- configuration -- type - id TYPE_ID -- params key1:value1
161+ ./ tsp_cli_client -- update- configuration -- type - id TYPE_ID -- config- id CONFIG_ID -- params key1=value1,key2=value2
162+ ./ tsp_cli_client -- delete- configuration CONFIGURATION_ID -- type - id TYPE_ID
112163```
113164
114165[agc]: https:// kislyuk.github.io/ argcomplete/ # activating-global-completion
0 commit comments