Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linuxtools-dev] Tracing TMF for debugging

Hi Francis

If you import the attached custom text parser into TMF then you can load the traces (generated by TmfCoreTracer) into TMF and analyze them with TMF.
See integrated LTTng User Guide chapter "Custom Parsers" on how to import and manage custom parsers.

/Bernd

On 04/07/2014 05:02 PM, Patrick Tasse wrote:
Hi Francis,

Usually I turn this on in Run/Debug Configurations, select your JUnit Plug-in Test configuration, then under the Tracing tab, enable tracing for org.eclipse.linuxtools.tmf.core plug-in and select the four check boxes.


On Mon, Apr 7, 2014 at 4:55 PM, Francis Giraldeau <francis.giraldeau@xxxxxxxxx> wrote:
I'm trying to trace TMF for debugging purposes. I found the class TmfCoreTracer and some general instructions [1]. Here is the .options file I created:

org.eclipse.linuxtools.tmf.core/component=true
org.eclipse.linuxtools.tmf.core/request=true
org.eclipse.linuxtools.tmf.core/signal=true
org.eclipse.linuxtools.tmf.core/event=true

I copied the file in the test workspace and various source directory (project root, under org.eclipse.tmf.core plug-in) and the tracing is not enabled. It seems that the file is not taken into account. Where should this file be located when running a unit test?

Thanks!

Francis

[1]: https://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_debug_tracing_facility%3F

_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev




_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<CustomTxtTraceDefinitionList>
<Definition name="TmfGenericDefault">
<TimeStampOutputFormat>yyyy-MM-dd HH:mm:ss.SSS</TimeStampOutputFormat>
<InputLine>
<Cardinality max="2147483647" min="0"/>
<RegEx>\s*\[(\d*\.\d*)\]\s*\[TID=(\d*)\]\s*\[(SIG|CMP|EVT|REQ)\]\s*(.*)</RegEx>
<InputData action="0" format="ss.SSS" name="Time Stamp"/>
<InputData action="0" format="" name="Thread ID"/>
<InputData action="0" format="" name="Type"/>
<InputData action="0" format="" name="Message"/>
</InputLine>
<OutputColumn name="Time Stamp"/>
<OutputColumn name="Thread ID"/>
<OutputColumn name="Type"/>
<OutputColumn name="Message"/>
</Definition>
</CustomTxtTraceDefinitionList>

Back to the top