Skip to content

Conversation

@bhufmann
Copy link
Owner

@bhufmann bhufmann commented Apr 30, 2024

// Commands

 ./tsp_cli_client --load-configuration --params path=/home/user/config.json --type-id  <configuration-source-id>
 ./tsp_cli_client --list-configurations <configuration-source-id>
 ./tsp_cli_client --delete-configuration config.json --type-id <configuration-source-id>
 ./tsp_cli_client --apply-configuration <exp-uuid> --type-id <configuration-source-id> --config-id config.json 
 ./tsp_cli_client --remove-configuration <exp-uuid> --type-id <configuration-source-id> --config-id config.json 

Note:

  • config ID is filename (e.g. config.json)
  • not all configuration source types support applying configs to experiments (e.g. xml is a global config source)
  • config is applied to all traces of same type (e.g. kernel)

@bhufmann bhufmann force-pushed the analysis-api-impl-exp branch from 92cdff8 to 07eee83 Compare June 19, 2024 18:52
@bhufmann bhufmann force-pushed the analysis-api-impl-exp branch from 07eee83 to aa182a1 Compare June 28, 2024 17:08
bhufmann added a commit to bhufmann/org.eclipse.tracecompass.incubator that referenced this pull request Jun 28, 2024
- Incubator 2021-06 branch
- Trace Compass master
- use tracecompass-incubator-e4.20.target
- required bhufmann/org.eclipse.tracecompass#2
- bhufmann/tsp-python-client#1

./tsp_cli_client --load-configuration --params
"name=MyInAndOut;json=[{\"label\":\"latency\",\"inRegex\":\"(\\\\S*)_entry\",\"outRegex\":\"(\\\\S*)_exit\",\"contextInRegex\":\"(\\\\S*)_entry\",\"contextOutRegex\":\"(\\\\S*)_exit\",\"classifier\":\"CPU\"}]"
--type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config

./tsp_cli_client --apply-configuration <exp-uuid> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config
--config-id <configId>

./tsp_cli_client --remove-configuration <exp-uuid> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config
--config-id <configId>

./tsp_cli_client --delete-configuration <configId> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config

Signed-off-by: Bernd Hufmann <[email protected]>
bhufmann added a commit to bhufmann/org.eclipse.tracecompass.incubator that referenced this pull request Jul 17, 2024
- Incubator 2021-06 branch
- Trace Compass master
- use tracecompass-incubator-e4.20.target
- required bhufmann/org.eclipse.tracecompass#2
- bhufmann/tsp-python-client#1

./tsp_cli_client --load-configuration --params
"name=MyInAndOut;json=[{\"label\":\"latency\",\"inRegex\":\"(\\\\S*)_entry\",\"outRegex\":\"(\\\\S*)_exit\",\"contextInRegex\":\"(\\\\S*)_entry\",\"contextOutRegex\":\"(\\\\S*)_exit\",\"classifier\":\"CPU\"}]"
--type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config

./tsp_cli_client --apply-configuration <exp-uuid> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config
--config-id <configId>

./tsp_cli_client --remove-configuration <exp-uuid> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config
--config-id <configId>

./tsp_cli_client --delete-configuration <configId> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config

Signed-off-by: Bernd Hufmann <[email protected]>
bhufmann added a commit to bhufmann/org.eclipse.tracecompass.incubator that referenced this pull request Sep 18, 2024
- Incubator 2021-06 branch
- Trace Compass master
- use tracecompass-incubator-e4.20.target
- required bhufmann/org.eclipse.tracecompass#2
- bhufmann/tsp-python-client#1

./tsp_cli_client --load-configuration --params
"name=MyInAndOut;json=[{\"label\":\"latency\",\"inRegex\":\"(\\\\S*)_entry\",\"outRegex\":\"(\\\\S*)_exit\",\"contextInRegex\":\"(\\\\S*)_entry\",\"contextOutRegex\":\"(\\\\S*)_exit\",\"classifier\":\"CPU\"}]"
--type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config

./tsp_cli_client --apply-configuration <exp-uuid> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config
--config-id <configId>

./tsp_cli_client --remove-configuration <exp-uuid> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config
--config-id <configId>

./tsp_cli_client --delete-configuration <configId> --type-id
org.eclipse.tracecompass.incubator.internal.inandout.core.config

Signed-off-by: Bernd Hufmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant