Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass.incubator-dev] trace data that could be recognized and potential UML diagram? [updated version]

Dear All, 


Thank you for your effort and timely support. I have updated my incubator version with git pull, but it seems like the error message is still not very detailed. I only saw "Most assuredly NOT a Trace-Event trace." Is this the final message you have decided to display? 


Is there any other method I could use so that I could understand more about what kind of data the program will read in and parse? Maybe someone could help and point out which part of the source code I could read and learn and maybe get some inspiration from.


Have a nice weekend!


Best, 

Xiaolin 


Xiaolin Liu

PhD student

KTH Royal Institute of Technology

EECS/TCS

Malvinas v 10, 114 28 Stockholm, Sweden

Mobile: +46-70-029 6605

xiaolinl@xxxxxxhttps://www.linkedin.com/in/aisliu/



From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Matthew Khouzam via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: Thursday, September 5, 2024 9:43:25 PM
To: tracecompass-dev@xxxxxxxxxxx; tracecompass.incubator-dev@xxxxxxxxxxx
Cc: Matthew Khouzam
Subject: Re: [tracecompass-dev] trace data that could be recognized and potential UML diagram? [updated version]
 

From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Matthew Khouzam via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: Thursday, September 5, 2024 1:25 PM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>; tracecompass.incubator-dev@xxxxxxxxxxx <tracecompass.incubator-dev@xxxxxxxxxxx>
Cc: Matthew Khouzam <matthew.khouzam@xxxxxxxxxxxx>
Subject: Re: [tracecompass-dev] trace data that could be recognized and potential UML diagram? [updated version]
 
Hi, I think my mail client is acting up, I cannot see the pictures. I checked out the github project.

Some observations.

  1. you are depending on the incubator but developing in core, I would recommend considering using the incubator for dev.
  2. Your trace looks nothing like a trace-event trace, so yeah, it cannot fill a trace event trace.
  3. The trace event trace failed validation message is bad, we should update it. Could you open a github issue on that?
  4. You would need to make a custom parser for your json, I would look at traceeventtrace for inspiration.

I hope this helps.

Matthew


From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Xiaolin Liu via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: Thursday, September 5, 2024 10:03 AM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>; tracecompass.incubator-dev@xxxxxxxxxxx <tracecompass.incubator-dev@xxxxxxxxxxx>
Cc: Xiaolin Liu <xiaolinl@xxxxxx>
Subject: Re: [tracecompass-dev] trace data that could be recognized and potential UML diagram? [updated version]
 

Dear All, 


Sorry about the multiple emails, but I have noticed that the screenshots I was trying to insert were broken. So, I have uploaded the screenshots in PNG format to my GitHub repository branch. I will quickly update the content I was trying to depict in my previous email below. 


"

Dear All,


I hope you all have a nice week so far. I am running into some problems when using the software, and I am seeking some technical support.


I am working on a research project using Eclipse Trace Compass to visualize smart contract transaction data. The software could only recognize specific transaction data and show some visualization graphs on the panels. However, once the attributes in the JSON file changed, the visualization did not show up again. 


In my case, I have uploaded some transaction data to my GitHub repository https://github.com/AisXiaolin/org.eclipse.tracecompass/tree/AisXiaolin-patch-1

under the folder org.eclipse. trace-compass/SmartContractTransactionJSON, only test.json , and test2.json can be imported directly as JSON files, but the other two cannot. I have tested on some other smart contract transaction files in JSON format as well, and I could not see the pattern of what Eclipse Trace Compass is looking for as required attributes. When the file cannot be shown as a Trace-Event trace, the error will shown as below in the screenshot. 

[validationError.png]


The error shown is quite generic, and I could not see much other information. So, I have checked the source code and tried to insert some print statements to see where the flag has been changed from ok to not. But the print statement is not showing anywhere in the console or terminal.

[printStatement.png]


I am not sure if there will be some other ways for me to understand the attributes in the JSON format that the software is expecting without any error messages. For example, in the data file I have uploaded,

[JSONattributes.png]


I am unsure what I should change the name for the "gas" and "gasCost" to have the information shown on the trace compass. 


For me to better understand the architecture of the software, is it possible for me to find a UML diagram of the Java software itself?


Looking forward to hearing from you soon."



Xiaolin Liu

PhD student

KTH Royal Institute of Technology

EECS/TCS

Malvinas v 10, 114 28 Stockholm, Sweden

Mobile: +46-70-029 6605

xiaolinl@xxxxxx, https://www.linkedin.com/in/aisliu/





From: Xiaolin Liu
Sent: Thursday, September 5, 2024 02:15 PM
To: tracecompass-dev@xxxxxxxxxxx; tracecompass.incubator-dev@xxxxxxxxxxx
Subject: trace data that could be recognized and potential UML diagram?
 

Dear All,


I hope you all have a nice week so far. I am running into some problems when using the software, and I am seeking some technical support.


I am working on a research project using Eclipse Trace Compass to visualize smart contract transaction data. The software could only recognize specific transaction data and show some visualization graphs on the panels. However, once the attributes in the JSON file changed, the visualization did not show up again. 


In my case, I have uploaded some transaction data to my GitHub repository https://github.com/AisXiaolin/org.eclipse.tracecompass/tree/AisXiaolin-patch-1

under the folder org.eclipse.tracecompass/SmartContractTransactionJSON, only test.json and  test2.json can be imported directly as Json file but the other two cannot. I have test on some other smart contract transaction files in JSON format as well, and I could not see the pattern on what Eclipse Trace Compass is looking for as required attributes. When the file cannot be shown as a Trace-Event trace, the error will shown as below in the screenshot. 

the error shown is quite generic and there are not a lot of other information I could see. So I have checked the source code and try to insert some print statement to see where the flag has been changed from ok to not. But the print statement is not showing up anywhere in the console nor in the terminal.


I am not sure if there will be some other ways for me to understand the attributes in the json format that the software is expecting without any error messages. For example, in the data file I have uploaded,

I am not sure what I should change the name for the "gas" and "gasCost" to, in order to have the information shown in on the trace compass. 


For me to better understand the architecture of the software, is it possible for me to find an UML diagram of the java software itself?


Looking to hear from you soon.

Best, 

Xiaolin


Back to the top