Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Multiple state providers

Hi Genevieve, 


For the state system described using XML, is there a way and example that I can use a stack to push and pop the value of an attribute? E.g. when an event happen, I want to push the current attribute value (old) to a stack and update the attribute with the new value. After another event, I want to pop the value from a stack and use it as the current attribute value. It seems lots of application, e.g. call stack, are like this behavior and it could be a very useful feature, if it is not there. 

Thank you
Yonghong

On Tue, Mar 3, 2020 at 12:28 PM tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx> wrote:
Thank you very much Genevieve. I will give it a try. 
Yonghong

On Tue, Mar 3, 2020 at 10:30 AM tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx> wrote:

Hi Yonghong,

Yes you definitely can! As long as each of your XML analysis has a different ID, the ID being the one from the state provider or pattern element, so you have a line like this in your XML:


<stateProvider id="test.xml.attributes" version="1">

or

<pattern id="org.eclipse.tracecompass.xml.tests.statevaluescenarios" version="0">


Best regards,

Geneviève


On 3/2/20 4:13 PM, tracecompass developer discussions wrote:
We are experimenting tracecompass XML-based data-driven analysis. Can we create two or multiple XML files, each with its own provider (unique named) and then imported to the tracecompass to process a trace. Basically, are we allowed to have two or more state systems for the same trace. 
Thank you
Yonghong

_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tracecompass-dev
_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tracecompass-dev
_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tracecompass-dev

Back to the top