Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tracecompass-dev] Fw: Getting duration for intervals in CallStackView

Hi
I found that I can get the interval start time by querying the 'CallStack' attribute to get it's interval start time, realizing I have to deal with that attribute as a stack. So I don't need the extra attribute to track interval start time.

I also solved my problem of only knowing attribute values for an interval only when I process the exit event. When I'm processing the exit event, I call StateSystem.modifyAttribute() specifying the attribute value and the interval start time.

What I am trying to do works now.
----- Forwarded by David Wootton/Poughkeepsie/Contr/IBM on 08/18/2016 12:05 PM -----

From: David Wootton/Poughkeepsie/Contr/IBM
To: tracecompass-dev-bounces@xxxxxxxxxxx
Date: 08/18/2016 08:41 AM
Subject: Fw: [tracecompass-dev] Getting duration for intervals in CallStackView




Hi
I found that I can get the interval start time by querying the 'CallStack' attribute to get it's interval start time, realizing I have to deal with that attribute as a stack. So I don't need the extra attribute to track interval start time.

I also solved my problem of only knowing attribute values for an interval only when I process the exit event. When I'm processing the exit event, I call StateSystem.modifyAttribute() specifying the attribute value and the interval start time.

What I am trying to do works now.

Dave
----- Forwarded by David Wootton/Poughkeepsie/Contr/IBM on 08/18/2016 08:34 AM -----

From: David Wootton/Poughkeepsie/Contr/IBM@IBMUS
To: "tracecompass developer discussions" <tracecompass-dev@xxxxxxxxxxx>
Date: 08/17/2016 09:36 AM
Subject: [tracecompass-dev] Getting duration for intervals in CallStackView
Sent by: tracecompass-dev-bounces@xxxxxxxxxxx




I'm able to update the state system to add additional attributes that I want to appear in the popup that appears when I hover the mouse over an interval in my extension of CallStackView. This works if I have an attribute I know the value of an attribute at the start event of the interval, where I push and pop the quark with this value.

I have some attributes that I know the value of only at the end event for the interval that I want to display similarly. If I push and pop a quark that contains the value, then that value appears in the State System Explorer view for the time/duration between the push and pop of the quark.

The problem is that I don't seem to have either the start time or the duration for the interval at the time that the end event is being processed.

I can make this work by creating another attribute/quark that contains the interval start time, and push the quark for that attribute in the processing for the entry event then get that quark in the exit event processing, use the value and pop the quark.

I'm wondering if there's a better way to do this.

Thanks

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




Back to the top