| Eclipse Trace Compass Server |
| ============================ |
| |
| Compiling manually |
| ------------------ |
| mvn clean install |
| |
| Running the server |
| ------------------ |
| cd trace-server/org.eclipse.tracecompass.incubator.trace.server.product/target/products/traceserver/linux/gtk/x86_64/trace-compass-server/ |
| ./tracecompss-server |
| |
| OpenAPI REST specification: |
| The REST API is documented using the OpenAPI specification in the API.json file. |
| The file can be opened with an IDE plug-in, or Swagger tools. |
| For more information, see https://swagger.io/docs/. |
| |
| Example REST Commands |
| --------------------- |
| * Open a trace |
| |
| curl -X POST \ |
| http://localhost:8080/tracecompass/traces \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' \ |
| -H 'content-type: application/x-www-form-urlencoded' \ |
| -d 'name=trace2&path=/home/user/git/tracecompass-test-traces/ctf/src/main//resources/trace2' |
| |
| * Getting list of traces |
| |
| curl -X GET \ |
| http://localhost:8080/tracecompass/traces \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' |
| |
| * Getting events (events table) |
| |
| curl -X GET \ |
| 'http://localhost:8080/tracecompass/eventTable?name=trace2&low=10000&size=20' \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' \ |
| -H 'content-type: application/x-www-form-urlencoded' |
| |
| * Getting Filtered events |
| |
| curl -X PUT \ |
| 'http://localhost:8080/tracecompass/eventTable?name=trace2&low=0&size=20' \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' \ |
| -H 'content-type: application/x-www-form-urlencoded' \ |
| -d 'Contents=ret.*' |
| |
| * Start DiskIOAnalsis |
| |
| curl -X POST \ |
| 'http://localhost:8080/tracecompass/DiskActivityView?name=trace2' \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' \ |
| -H 'content-type: application/x-www-form-urlencoded' |
| |
| * Get Disk IO Analysis |
| |
| curl -X GET \ |
| http://localhost:8080/tracecompass/DiskActivityView \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' |
| |
| |
| * Get XY View data for Disk IO Analysis |
| |
| curl -X GET \ |
| 'http://localhost:8080/tracecompass/DiskActivityView/trace2?start=1331668247314038062&end=1331668247324038062&resolution=275520' \ |
| -H 'accept: application/json' \ |
| -H 'cache-control: no-cache' \ |
| -H 'content-type: application/x-www-form-urlencoded' |
| |