-
Notifications
You must be signed in to change notification settings - Fork 16
Add custom analysis related APIs #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom analysis related APIs #87
Conversation
tsp/output_descriptor.py
Outdated
# COMPATIBLE_PROVIDERS_KEY: obj.compatible_providers | ||
} | ||
result = {} | ||
# optinal parent_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -41,6 +41,7 @@ from tsp.tsp_client import TspClient | |||
|
|||
TRACE_MISSING = "Trace UUID is missing" | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line or intentional?
edit: Ok, It gets removed in the next commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
@@ -160,6 +160,18 @@ optional arguments: | |||
--params PARAMS comma separated key value pairs (key1=val1,key2=val2) | |||
--get-health Get the health status of the server | |||
--get-identifier Identify important information regarding the server and the system | |||
--list-output-configuration-sources OUTPUT_ID | |||
Get available configuration sources for a given experiment and output | |||
--list-output-configuration-source TYPE_ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it missing OUTPUT_ID ?
Oh, I see it has to be provided as a separate argument. It's not really clear which arguments must be provided together. But that's the way it is I guess. The user will get a proper error message when missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's not clear at all. That's why I added the examples below to show all options needed per command. The help output (./tsp_typescript_client --help
) is not good.
@@ -160,6 +160,18 @@ optional arguments: | |||
--params PARAMS comma separated key value pairs (key1=val1,key2=val2) | |||
--get-health Get the health status of the server | |||
--get-identifier Identify important information regarding the server and the system | |||
--list-output-configuration-sources OUTPUT_ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these new options need to be added after line 91 also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they are missing.
0d71253
to
94de35c
Compare
Signed-off-by: Bernd Hufmann <[email protected]>
- Add configuration service per output (data provider) This addition enables clients to create derived data providers from an existing data provider. - Add unit tests - Add cli to invoke new endpoints - Update README.md for new commands Signed-off-by: Bernd Hufmann <[email protected]>
This allows users to use a file with JSON parameters. Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
The merge-base changed after approval.
94de35c
to
3f84c81
Compare
Changes (multiple commits)
This addition enables clients to create derived data providers from
an existing data provider.
This allows users to use a file with JSON parameters.
To Test
With Trace Compass Trace Server of today, the new CLI commands below can be used to configure InAndOut analysis, with LTTng Kernel traces or UST traces with function entry or exit.
Content of JSON file:
Note: This PR includes changes of #86 which needs to merged before.
Signed-off-by: Bernd Hufmann [email protected]