Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Viewing custom events in a timeline

Hi Gerlando,

You don't need to have your source trace in CTF format. Although, if you do, it would probably be faster to process (which matters only if your trace is large), excluding the one-time conversion cost.

You can create a custom parser for your source trace directly from a UI wizard, if it is in text or XML format:

http://archive.eclipse.org/tracecompass/doc/stable/org.eclipse.tracecompass.doc.user/Trace-Compass-Main-Features.html#Custom_Parsers

If your trace is neither text, XML or CTF, you would probably have to create your own trace type and parser as a plug-in extension in Java code:

http://archive.eclipse.org/tracecompass/doc/org.eclipse.tracecompass.doc.dev/Implementing-a-New-Trace-Type.html#Implementing_a_New_Trace_Type


You can then create your own state system and custom view based on it using data-driven analysis by writing an XML file:

http://archive.eclipse.org/tracecompass/doc/stable/org.eclipse.tracecompass.doc.user/Data-driven-analysis.html#Data_driven_analysis

Marc-Andre has made a presentation at EclipseCon 2015 which has an example of what you would need to do:

https://www.eclipsecon.org/na2015/sites/default/files/slides/EclipseConAmerica2015.pdf (starting at page 25)

Let us know if you need any more help, or if you have comments or suggestions after going through the process.

Patrick

On Thu, Jul 23, 2015 at 4:19 AM, Gerlando Falauto <gerlando.falauto@xxxxxxxxxxx> wrote:
Hi,

I am currently trying to analyze the behavior and performance of a system under different configurations and circumstances.
What I have is a series of events (start/stop) relative to several (~200) separate "entities" which I would like to see plotted in a timeline: Kind of like the timeline you see on the "Network" tab of the Developer Tools under Firefox, where you see how long each HTTP request lasts and how it overlaps with the others.
Or like the "Control Flow" view in Tracecompass, except each row is *NOT* a linux process/thread, rather an internal "entity". So the data shall not come from LTTNG traces, rather from external, custom data.
I suppose I could either:
a) post-process a log file (by writing some translation script), so to generate some CTF trace, "faking" processes with my own entities, or
b) instrument the code itself so to generate LTTNG-UST events.

Any ideas how I could achieve this? Just some hint on where to start...

Thank you so much!
Gerlando
______________________________
_________________
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