1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.timechart
;
15 import java
.util
.ArrayList
;
16 import java
.util
.HashMap
;
17 import java
.util
.Iterator
;
20 import org
.eclipse
.core
.resources
.IMarker
;
21 import org
.eclipse
.core
.resources
.IMarkerDelta
;
22 import org
.eclipse
.core
.resources
.IResource
;
23 import org
.eclipse
.core
.resources
.IResourceChangeEvent
;
24 import org
.eclipse
.core
.resources
.IResourceChangeListener
;
25 import org
.eclipse
.core
.resources
.IResourceDelta
;
26 import org
.eclipse
.core
.resources
.ResourcesPlugin
;
27 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEvent
;
28 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimestamp
;
29 import org
.eclipse
.linuxtools
.tmf
.core
.filter
.ITmfFilter
;
30 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfSignalHandler
;
31 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfTimeSynchSignal
;
32 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfTraceSelectedSignal
;
33 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfTraceUpdatedSignal
;
34 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.ITmfTrace
;
35 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.TmfContext
;
36 import org
.eclipse
.linuxtools
.tmf
.ui
.editors
.ITmfTraceEditor
;
37 import org
.eclipse
.linuxtools
.tmf
.ui
.signal
.TmfTraceClosedSignal
;
38 import org
.eclipse
.linuxtools
.tmf
.ui
.signal
.TmfTraceOpenedSignal
;
39 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.TmfViewerFactory
;
40 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.events
.ITmfEventsFilterListener
;
41 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.events
.ITmfEventsFilterProvider
;
42 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.ITimeAnalysisViewer
;
43 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.ITmfTimeScaleSelectionListener
;
44 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.ITmfTimeSelectionListener
;
45 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.TmfTimeScaleSelectionEvent
;
46 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.TmfTimeSelectionEvent
;
47 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.model
.ITimeEvent
;
48 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.model
.ITmfTimeAnalysisEntry
;
49 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.TmfView
;
50 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.colors
.ColorSetting
;
51 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.colors
.ColorSettingsManager
;
52 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.colors
.IColorSettingsListener
;
53 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.timechart
.TimeChartEvent
.RankRange
;
54 import org
.eclipse
.swt
.SWT
;
55 import org
.eclipse
.swt
.layout
.GridLayout
;
56 import org
.eclipse
.swt
.widgets
.Composite
;
57 import org
.eclipse
.swt
.widgets
.Display
;
58 import org
.eclipse
.ui
.IEditorPart
;
59 import org
.eclipse
.ui
.IEditorReference
;
61 public class TimeChartView
extends TmfView
implements ITmfTimeScaleSelectionListener
, ITmfTimeSelectionListener
, IColorSettingsListener
,
62 IResourceChangeListener
, ITmfEventsFilterListener
{
64 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.timechart"; //$NON-NLS-1$
66 private static final byte TIMESTAMP_SCALE
= -9;
68 private final int fDisplayWidth
;
69 private Composite fComposite
;
70 private ITimeAnalysisViewer fViewer
;
71 private final ArrayList
<TimeChartAnalysisEntry
> fTimeAnalysisEntries
= new ArrayList
<TimeChartAnalysisEntry
>();
72 private final Map
<ITmfTrace
, TimeChartDecorationProvider
> fDecorationProviders
= new HashMap
<ITmfTrace
, TimeChartDecorationProvider
>();
73 private ArrayList
<DecorateThread
> fDecorateThreads
;
74 private long fStartTime
= 0;
75 private long fStopTime
= Long
.MAX_VALUE
;
76 private boolean fRefreshBusy
= false;
77 private boolean fRefreshPending
= false;
78 private final Object fSyncObj
= new Object();
80 public TimeChartView() {
81 super("Time Chart"); //$NON-NLS-1$
82 fDisplayWidth
= Display
.getDefault().getBounds().width
;
86 public void createPartControl(Composite parent
) {
87 fComposite
= new Composite(parent
, SWT
.NONE
);
88 GridLayout gl
= new GridLayout();
91 fComposite
.setLayout(gl
);
93 fViewer
= TmfViewerFactory
.createViewer(fComposite
, new TimeChartAnalysisProvider());
94 fViewer
.groupTraces(false);
95 fViewer
.setTimeCalendarFormat(true);
96 fViewer
.setAcceptSelectionAPIcalls(true);
97 fViewer
.addWidgetTimeScaleSelectionListner(this);
98 fViewer
.addWidgetSelectionListner(this);
99 fViewer
.setMinimumItemWidth(1);
101 IEditorReference
[] editorReferences
= getSite().getPage().getEditorReferences();
102 for (IEditorReference editorReference
: editorReferences
) {
103 IEditorPart editor
= editorReference
.getEditor(false);
104 if (editor
instanceof ITmfTraceEditor
) {
105 ITmfTrace trace
= ((ITmfTraceEditor
) editor
).getTrace();
107 IResource resource
= ((ITmfTraceEditor
) editor
).getResource();
108 TimeChartAnalysisEntry timeAnalysisEntry
= new TimeChartAnalysisEntry(trace
, fDisplayWidth
* 2);
109 fTimeAnalysisEntries
.add(timeAnalysisEntry
);
110 fDecorationProviders
.put(trace
, new TimeChartDecorationProvider(resource
));
111 Thread thread
= new ProcessTraceThread(timeAnalysisEntry
);
116 fViewer
.display(fTimeAnalysisEntries
.toArray(new TimeChartAnalysisEntry
[0]));
118 fDecorateThreads
= new ArrayList
<DecorateThread
>();
119 ColorSettingsManager
.addColorSettingsListener(this);
120 ResourcesPlugin
.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent
.POST_CHANGE
);
124 public void dispose() {
125 ResourcesPlugin
.getWorkspace().removeResourceChangeListener(this);
126 for (DecorateThread thread
: fDecorateThreads
) {
129 ColorSettingsManager
.removeColorSettingsListener(this);
134 public void setFocus() {
139 private class ProcessTraceThread
extends Thread
{
141 private final TimeChartAnalysisEntry fTimeAnalysisEntry
;
143 public ProcessTraceThread(TimeChartAnalysisEntry timeAnalysisEntry
) {
144 super("ProcessTraceJob:" + timeAnalysisEntry
.getName()); //$NON-NLS-1$
145 fTimeAnalysisEntry
= timeAnalysisEntry
;
150 updateTraceEntry(fTimeAnalysisEntry
, Long
.MAX_VALUE
, 0, Long
.MAX_VALUE
);
154 private void updateTraceEntry(TimeChartAnalysisEntry timeAnalysisEntry
, long stopRank
, long startTime
, long stopTime
) {
155 ITmfTrace trace
= timeAnalysisEntry
.getTrace();
156 TimeChartDecorationProvider decorationProvider
= fDecorationProviders
.get(trace
);
157 if (decorationProvider
== null) {
158 return; // the trace has been closed
160 TmfContext context
= null;
161 // TmfTimestamp lastTimestamp = null;
162 boolean done
= false;
164 synchronized (timeAnalysisEntry
) {
165 if (timeAnalysisEntry
.getLastRank() >= trace
.getNbEvents()) {
169 if (context
== null || context
.getRank() != timeAnalysisEntry
.getLastRank()) {
170 if (context
!= null) {
173 if (timeAnalysisEntry
.getLastRank() != -1) {
174 context
= trace
.seekEvent(timeAnalysisEntry
.getLastRank());
176 // context = trace.seekLocation(null);
177 context
= trace
.seekEvent(0);
181 long rank
= context
.getRank();
182 TmfEvent event
= trace
.getNextEvent(context
);
187 // if (!event.getTimestamp().equals(lastTimestamp)) {
188 TimeChartEvent timeEvent
= new TimeChartEvent(timeAnalysisEntry
, event
, rank
, decorationProvider
);
189 if (timeEvent
.getTime() >= startTime
&& timeEvent
.getTime() <= stopTime
) {
190 timeAnalysisEntry
.addTraceEvent(timeEvent
);
192 // lastTimestamp = event.getTimestamp();
193 // } *** commented out so that color setting priority gets
194 // set even if the event has same time
195 if (context
.getRank() == trace
.getNbEvents() || context
.getRank() == stopRank
) {
199 if (context
.getRank() % trace
.getCacheSize() == 1) {
200 // break for UI refresh
204 // timeAnalysisEntry.setLastRank(Math.min(trace.getNbEvents(),
206 timeAnalysisEntry
.setLastRank(context
.getRank());
208 refreshViewer(false);
210 if (context
!= null) {
215 private void refreshViewer(boolean resetTimeIntervals
) {
216 if (fComposite
== null) {
219 synchronized (fSyncObj
) {
221 fRefreshPending
= true;
227 final boolean reset
= resetTimeIntervals
;
228 // Perform the refresh on the UI thread
229 Display
.getDefault().asyncExec(new Runnable() {
232 if (fComposite
.isDisposed())
234 fViewer
.display(fTimeAnalysisEntries
.toArray(new TimeChartAnalysisEntry
[0]));
236 fViewer
.resetStartFinishTime();
238 synchronized (fSyncObj
) {
239 fRefreshBusy
= false;
240 if (fRefreshPending
) {
241 fRefreshPending
= false;
242 refreshViewer(reset
);
249 private void itemize(long startTime
, long stopTime
) {
250 for (int i
= 0; i
< fTimeAnalysisEntries
.size(); i
++) {
251 Thread thread
= new ItemizeThread(fTimeAnalysisEntries
.get(i
), startTime
, stopTime
);
256 private class ItemizeThread
extends Thread
{
258 private final TimeChartAnalysisEntry fTimeAnalysisEntry
;
259 private final long fStartTime
;
260 private final long fStopTime
;
261 private final long fMaxDuration
;
263 private ItemizeThread(TimeChartAnalysisEntry timeAnalysisEntry
, long startTime
, long stopTime
) {
264 super("Itemize Thread:" + timeAnalysisEntry
.getName()); //$NON-NLS-1$
265 fTimeAnalysisEntry
= timeAnalysisEntry
;
266 fStartTime
= startTime
;
267 fStopTime
= stopTime
;
268 fMaxDuration
= 3 * (fStopTime
- fStartTime
) / fDisplayWidth
;
273 itemizeTraceEntry(fTimeAnalysisEntry
);
276 public void itemizeTraceEntry(TimeChartAnalysisEntry timeAnalysisEntry
) {
277 Iterator
<ITimeEvent
> iterator
= timeAnalysisEntry
.getTraceEventsIterator();
278 TimeChartEvent event
= null;
279 boolean hasNext
= true;
281 synchronized (timeAnalysisEntry
) {
282 while (hasNext
= iterator
.hasNext()) {
283 event
= (TimeChartEvent
) iterator
.next();
284 if (event
.getTime() + event
.getDuration() > fStartTime
&& event
.getTime() < fStopTime
&& event
.getDuration() > fMaxDuration
285 && event
.getNbEvents() > 1) {
291 if (event
.getItemizedEntry() == null) {
294 itemizeTraceEntry(event
.getItemizedEntry());
300 public void itemizeEvent(TimeChartEvent event
) {
301 synchronized (event
) {
302 if (event
.isItemizing()) {
305 event
.setItemizing(true);
307 TimeChartAnalysisEntry timeAnalysisEntry
= new TimeChartAnalysisEntry(fTimeAnalysisEntry
.getTrace(), (int) Math
.min(
308 event
.getNbEvents() + 1, fDisplayWidth
* 2));
309 synchronized (event
.getRankRangeList()) {
310 for (RankRange range
: event
.getRankRangeList()) {
311 timeAnalysisEntry
.setLastRank(range
.getFirstRank());
312 updateTraceEntry(timeAnalysisEntry
, range
.getLastRank() + 1, event
.getTime(), event
.getTime() + event
.getDuration());
315 event
.setItemizedEntry(timeAnalysisEntry
);
316 refreshViewer(false);
317 itemizeTraceEntry(timeAnalysisEntry
);
318 synchronized (event
) {
319 event
.setItemizing(false);
324 private void redecorate() {
325 synchronized (fDecorateThreads
) {
326 for (DecorateThread thread
: fDecorateThreads
) {
329 fDecorateThreads
.clear();
330 for (int i
= 0; i
< fTimeAnalysisEntries
.size(); i
++) {
331 DecorateThread thread
= new DecorateThread(fTimeAnalysisEntries
.get(i
));
333 fDecorateThreads
.add(thread
);
338 private class DecorateThread
extends Thread
{
339 private volatile boolean interrupted
= false;
340 private final TimeChartAnalysisEntry fTimeAnalysisEntry
;
341 private final TimeChartDecorationProvider fDecorationProvider
;
342 private TmfContext fContext
;
343 private int fCount
= 0;
345 private DecorateThread(TimeChartAnalysisEntry timeAnalysisEntry
) {
346 super("Decorate Thread:" + timeAnalysisEntry
.getName()); //$NON-NLS-1$
347 fTimeAnalysisEntry
= timeAnalysisEntry
;
348 fDecorationProvider
= fDecorationProviders
.get(timeAnalysisEntry
.getTrace());
353 resetTraceEntry(fTimeAnalysisEntry
);
354 refreshViewer(false);
355 decorateTraceEntry(fTimeAnalysisEntry
, null);
356 refreshViewer(false);
357 synchronized (fDecorateThreads
) {
358 fDecorateThreads
.remove(this);
360 if (fContext
!= null) {
365 public void resetTraceEntry(TimeChartAnalysisEntry timeAnalysisEntry
) {
366 Iterator
<ITimeEvent
> iterator
= timeAnalysisEntry
.getTraceEventsIterator();
367 TimeChartEvent event
= null;
368 boolean hasNext
= true;
369 while (!interrupted
&& hasNext
) {
370 synchronized (timeAnalysisEntry
) {
371 while (hasNext
= iterator
.hasNext()) {
372 event
= (TimeChartEvent
) iterator
.next();
377 // TODO possible concurrency problem here with ItemizeJob
378 event
.setColorSettingPriority(ColorSettingsManager
.PRIORITY_NONE
);
379 if (event
.getItemizedEntry() != null) {
380 resetTraceEntry(event
.getItemizedEntry());
386 public void decorateTraceEntry(TimeChartAnalysisEntry timeAnalysisEntry
, TimeChartEvent parentEvent
) {
387 // Set max duration high to ensure iterator does not consider
389 Iterator
<ITimeEvent
> iterator
= timeAnalysisEntry
.getTraceEventsIterator(0, Long
.MAX_VALUE
, Long
.MAX_VALUE
);
390 TimeChartEvent event
= null;
391 int entryPriority
= ColorSettingsManager
.PRIORITY_NONE
;
392 boolean entryIsBookmarked
= false;
393 boolean entryIsVisible
= false;
394 boolean entryIsSearchMatch
= false;
395 boolean hasNext
= true;
396 while (!interrupted
&& hasNext
) {
397 synchronized (timeAnalysisEntry
) {
398 while (hasNext
= iterator
.hasNext()) {
399 event
= (TimeChartEvent
) iterator
.next();
404 // TODO possible concurrency problem here with ItemizeJob
405 if (event
.getItemizedEntry() == null) {
406 decorateEvent(event
);
408 decorateTraceEntry(event
.getItemizedEntry(), event
);
410 entryPriority
= Math
.min(entryPriority
, event
.getColorSettingPriority());
411 entryIsBookmarked
|= event
.isBookmarked();
412 entryIsVisible
|= event
.isVisible();
413 entryIsSearchMatch
|= event
.isSearchMatch();
414 if (++fCount
% timeAnalysisEntry
.getTrace().getCacheSize() == 0) {
415 refreshViewer(false);
419 if (parentEvent
!= null) {
420 parentEvent
.setColorSettingPriority(entryPriority
);
421 parentEvent
.setIsBookmarked(entryIsBookmarked
);
422 parentEvent
.setIsVisible(entryIsVisible
);
423 parentEvent
.setIsSearchMatch(entryIsSearchMatch
);
427 public void decorateEvent(TimeChartEvent timeChartEvent
) {
428 // TODO possible concurrency problem here with ItemizeJob
429 TimeChartAnalysisEntry timeAnalysisEntry
= (TimeChartAnalysisEntry
) timeChartEvent
.getEntry();
430 ITmfTrace trace
= timeAnalysisEntry
.getTrace();
431 int priority
= ColorSettingsManager
.PRIORITY_NONE
;
432 boolean isBookmarked
= false;
433 boolean isVisible
= false;
434 boolean isSearchMatch
= false;
435 synchronized (timeChartEvent
.getRankRangeList()) {
436 for (RankRange range
: timeChartEvent
.getRankRangeList()) {
439 if (fContext
== null || fContext
.getRank() != range
.getFirstRank()) {
440 if (fContext
!= null) {
443 fContext
= trace
.seekEvent(range
.getFirstRank());
444 fContext
.setRank(range
.getFirstRank());
449 long rank
= fContext
.getRank();
450 TmfEvent event
= trace
.getNextEvent(fContext
);
454 long eventTime
= event
.getTimestamp().synchronize(0, (byte) -9).getValue();
455 if (eventTime
>= timeChartEvent
.getTime() && eventTime
<= timeChartEvent
.getTime() + timeChartEvent
.getDuration()) {
456 priority
= Math
.min(priority
, ColorSettingsManager
.getColorSettingPriority(event
));
458 isBookmarked
|= fDecorationProvider
.isBookmark(rank
);
459 isVisible
|= fDecorationProvider
.isVisible(event
);
460 isSearchMatch
|= fDecorationProvider
.isSearchMatch(event
);
461 if (fContext
.getRank() > range
.getLastRank()) {
467 timeChartEvent
.setColorSettingPriority(priority
);
468 timeChartEvent
.setIsBookmarked(isBookmarked
);
469 timeChartEvent
.setIsVisible(isVisible
);
470 timeChartEvent
.setIsSearchMatch(isSearchMatch
);
473 public void cancel() {
478 // ------------------------------------------------------------------------
480 // ------------------------------------------------------------------------
483 public void tsfTmProcessTimeScaleEvent(TmfTimeScaleSelectionEvent event
) {
484 fStartTime
= event
.getTime0();
485 fStopTime
= event
.getTime1();
486 itemize(fStartTime
, fStopTime
);
490 public void tsfTmProcessSelEvent(TmfTimeSelectionEvent event
) {
491 ITmfTimeAnalysisEntry timeAnalysisEntry
= null;
492 if (event
.getSelection() instanceof TimeChartAnalysisEntry
) {
493 timeAnalysisEntry
= (TimeChartAnalysisEntry
) event
.getSelection();
494 } else if (event
.getSelection() instanceof TimeChartEvent
) {
495 timeAnalysisEntry
= ((TimeChartEvent
) event
.getSelection()).getEntry();
497 if (timeAnalysisEntry
instanceof TimeChartAnalysisEntry
) {
498 broadcast(new TmfTraceSelectedSignal(this, ((TimeChartAnalysisEntry
) timeAnalysisEntry
).getTrace()));
500 broadcast(new TmfTimeSynchSignal(this, new TmfTimestamp(event
.getSelectedTime(), TIMESTAMP_SCALE
)));
504 public void colorSettingsChanged(ColorSetting
[] colorSettings
) {
509 public void resourceChanged(IResourceChangeEvent event
) {
510 for (IMarkerDelta delta
: event
.findMarkerDeltas(IMarker
.BOOKMARK
, false)) {
511 for (TimeChartDecorationProvider provider
: fDecorationProviders
.values()) {
512 if (delta
.getResource().equals(provider
.getResource())) {
513 if (delta
.getKind() == IResourceDelta
.CHANGED
&& delta
.getMarker().getAttribute(IMarker
.LOCATION
, -1) != -1) {
514 provider
.refreshBookmarks();
515 } else if (delta
.getKind() == IResourceDelta
.REMOVED
) {
516 provider
.refreshBookmarks();
525 public void filterApplied(ITmfFilter filter
, ITmfTrace trace
) {
526 TimeChartDecorationProvider decorationProvider
= fDecorationProviders
.get(trace
);
527 decorationProvider
.filterApplied(filter
);
532 public void searchApplied(ITmfFilter filter
, ITmfTrace trace
) {
533 TimeChartDecorationProvider decorationProvider
= fDecorationProviders
.get(trace
);
534 decorationProvider
.searchApplied(filter
);
538 // ------------------------------------------------------------------------
540 // ------------------------------------------------------------------------
543 public void traceOpened(TmfTraceOpenedSignal signal
) {
544 if (fTimeAnalysisEntries
== null)
546 final ITmfTrace trace
= signal
.getTrace();
547 final IResource resource
= signal
.getResource();
548 final ITmfEventsFilterProvider eventsFilterProvider
= signal
.getEventsFilterProvider();
549 TimeChartAnalysisEntry timeAnalysisEntry
= null;
550 for (int i
= 0; i
< fTimeAnalysisEntries
.size(); i
++) {
551 if (fTimeAnalysisEntries
.get(i
).getTrace().equals(trace
)) {
552 timeAnalysisEntry
= fTimeAnalysisEntries
.get(i
);
556 if (timeAnalysisEntry
== null) {
557 timeAnalysisEntry
= new TimeChartAnalysisEntry(trace
, fDisplayWidth
* 2);
558 fTimeAnalysisEntries
.add(timeAnalysisEntry
);
559 fDecorationProviders
.put(trace
, new TimeChartDecorationProvider(resource
));
560 Thread thread
= new ProcessTraceThread(timeAnalysisEntry
);
564 if (eventsFilterProvider
!= null) {
565 eventsFilterProvider
.addEventsFilterListener(this);
570 public void traceClosed(TmfTraceClosedSignal signal
) {
571 if (fTimeAnalysisEntries
== null)
573 final ITmfTrace trace
= signal
.getTrace();
574 for (int i
= 0; i
< fTimeAnalysisEntries
.size(); i
++) {
575 if (fTimeAnalysisEntries
.get(i
).getTrace().equals(trace
)) {
576 fTimeAnalysisEntries
.remove(i
);
577 fDecorationProviders
.remove(trace
);
585 public void traceSelected(TmfTraceSelectedSignal signal
) {
586 if (signal
.getSource() != this && fTimeAnalysisEntries
!= null) {
587 ITmfTrace trace
= signal
.getTrace();
588 for (int i
= 0; i
< fTimeAnalysisEntries
.size(); i
++) {
589 if (fTimeAnalysisEntries
.get(i
).getTrace().equals(trace
)) {
590 fViewer
.setSelectedTrace(fTimeAnalysisEntries
.get(i
));
598 public void traceUpdated(TmfTraceUpdatedSignal signal
) {
599 if (fTimeAnalysisEntries
== null)
601 final ITmfTrace trace
= signal
.getTrace();
602 for (int i
= 0; i
< fTimeAnalysisEntries
.size(); i
++) {
603 TimeChartAnalysisEntry timeAnalysisEntry
= fTimeAnalysisEntries
.get(i
);
604 if (timeAnalysisEntry
.getTrace().equals(trace
)) {
605 updateTraceEntry(timeAnalysisEntry
, Long
.MAX_VALUE
, 0, Long
.MAX_VALUE
);
612 public void currentTimeUpdated(TmfTimeSynchSignal signal
) {
613 long time
= signal
.getCurrentTime().synchronize(0, TIMESTAMP_SCALE
).getValue();
614 fViewer
.setSelectedTime(time
, true, this);