The great troubleshooting encounter:
CDT meets Trace Compass
EclipseCon, March 2015
CDT meets Trace Compass EclipseCon, March 2015 Marc Khouzam - - PowerPoint PPT Presentation
The great troubleshooting encounter: CDT meets Trace Compass EclipseCon, March 2015 Marc Khouzam Marc-Andr Laperle ABOUT US Marc Khouzam Software Developer at Ericsson since 1998 CDT project co-lead, focusing on Debugging
EclipseCon, March 2015
2
2
Marc Khouzam Software Developer at Ericsson since 1998 CDT project co-lead, focusing on Debugging Working with CDT since 2009 Marc-André Laperle Software Developer at Ericsson since 2013 Committer for Trace Compass, CDT and Linux Tools Contributor to other projects (Platform UI, SWT, EGit, Mylyn, PDE)
3
A bit of background: Debug and Tracing CDT Debug and Trace Compass integration
Conclusion
5
5
6 DYNAMIC PRINTF INSERTED AT RUNTIME WITH GDB
7
Sockets Shared Memory Segments Process Groups All Processes All Threads File Descriptors Loaded Kernel Modules Semaphores Message Queues
9
10
11
12
13
A bit of background: Debug and Tracing CDT Debug and Trace Compass integration
Conclusion
16
17
18
19
20
21
A bit of background: Debug and Tracing CDT Debug and Trace Compass integration
Conclusion
24
Suspended
CDT Debug Trace Compass LTTng
Take snapshot Snapshot acquired
Open snapshot!
25
26
1) Create a tracing session 2) Select session in Debug configuration 3) Suspend (or hit a breakpoint)
27
28
29
Current stack frames (GDB)
Previous events with function entry and exit (LTTng snaphot)
30
Callstack can be visualized moments before suspend!
A bit of background: Debug and Tracing CDT Debug and Trace Compass integration
Conclusion
33
34
All of them could run
35
36
37
38
39
40
A bit of background: Debug and Tracing CDT Debug and Trace Compass integration
Conclusion
43
44
Collected Data Line where trace was collected Tracepoint that was hit
45
47
48
“Analyzing Eclipse Applications with Trace Compass”
50
50
51
54
55
56
57
58
59
60
61
prompt
Event reporting Command history Command completion Synchronized with GUI Integrated Or stand-alone
62