Commit | Line | Data |
---|---|---|
6e512b93 | 1 | /******************************************************************************* |
e0752744 | 2 | * Copyright (c) 2009, 2010, 2011, 2012 Ericsson |
6e512b93 ASL |
3 | * |
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 | |
8 | * | |
9 | * Contributors: | |
b59134e1 | 10 | * William Bourque - Initial API and implementation |
c392540b FC |
11 | * Yuriy Vashchuk - GUI reorganisation, simplification and some related code improvements. |
12 | * Yuriy Vashchuk - Histograms optimisation. | |
13 | * Yuriy Vashchuk - Histogram Canvas Heritage correction | |
14 | * Francois Chouinard - Cleanup and refactoring | |
e0752744 | 15 | * Francois Chouinard - Moved from LTTng to TMF |
6e512b93 | 16 | *******************************************************************************/ |
3e9fdb8b | 17 | |
e0752744 | 18 | package org.eclipse.linuxtools.tmf.ui.views.histogram; |
6e512b93 | 19 | |
e0752744 | 20 | import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; |
4df4581d | 21 | import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; |
6c13869b FC |
22 | import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange; |
23 | import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp; | |
24 | import org.eclipse.linuxtools.tmf.core.experiment.TmfExperiment; | |
25 | import org.eclipse.linuxtools.tmf.core.request.ITmfDataRequest.ExecutionType; | |
26 | import org.eclipse.linuxtools.tmf.core.signal.TmfExperimentRangeUpdatedSignal; | |
27 | import org.eclipse.linuxtools.tmf.core.signal.TmfExperimentSelectedSignal; | |
28 | import org.eclipse.linuxtools.tmf.core.signal.TmfRangeSynchSignal; | |
29 | import org.eclipse.linuxtools.tmf.core.signal.TmfSignalHandler; | |
30 | import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager; | |
31 | import org.eclipse.linuxtools.tmf.core.signal.TmfTimeSynchSignal; | |
b59134e1 WB |
32 | import org.eclipse.linuxtools.tmf.ui.views.TmfView; |
33 | import org.eclipse.swt.SWT; | |
34 | import org.eclipse.swt.layout.GridData; | |
252ae4bd | 35 | import org.eclipse.swt.layout.GridLayout; |
6e512b93 | 36 | import org.eclipse.swt.widgets.Composite; |
6e512b93 | 37 | |
544fe9b7 WB |
38 | /** |
39 | * <b><u>HistogramView</u></b> | |
40 | * <p> | |
12c155f5 | 41 | * The purpose of this view is to provide graphical time distribution statistics about the experiment/trace events. |
544fe9b7 | 42 | * <p> |
c392540b FC |
43 | * The view is composed of two histograms and two controls: |
44 | * <ul> | |
45 | * <li>an event distribution histogram for the whole experiment; | |
46 | * <li>an event distribution histogram for current time window (window span); | |
47 | * <li>the timestamp of the currently selected event; | |
48 | * <li>the window span (size of the time window of the smaller histogram). | |
49 | * </ul> | |
50 | * The histograms x-axis show their respective time range. | |
544fe9b7 | 51 | */ |
c392540b FC |
52 | public class HistogramView extends TmfView { |
53 | ||
54 | // ------------------------------------------------------------------------ | |
55 | // Constants | |
56 | // ------------------------------------------------------------------------ | |
57 | ||
58 | // The view ID as defined in plugin.xml | |
e0752744 | 59 | public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.histogram"; //$NON-NLS-1$ |
c392540b FC |
60 | |
61 | // The initial window span (in nanoseconds) | |
1cceddbe | 62 | public static final long INITIAL_WINDOW_SPAN = (1L * 100 * 1000 * 1000); // .1sec |
c392540b FC |
63 | |
64 | // Time scale | |
65 | private final byte TIME_SCALE = Histogram.TIME_SCALE; | |
66 | ||
67 | // ------------------------------------------------------------------------ | |
68 | // Attributes | |
69 | // ------------------------------------------------------------------------ | |
70 | ||
71 | // Parent widget | |
72 | private Composite fParent; | |
73 | ||
74 | // The current experiment | |
e0752744 | 75 | private TmfExperiment<ITmfEvent> fCurrentExperiment; |
c392540b FC |
76 | |
77 | // Current timestamp/time window | |
78 | private long fExperimentStartTime; | |
79 | private long fExperimentEndTime; | |
80 | private long fWindowStartTime; | |
81 | private long fWindowEndTime; | |
82 | private long fWindowSpan = INITIAL_WINDOW_SPAN; | |
83 | private long fCurrentTimestamp; | |
84 | ||
85 | // Time controls | |
86 | private HistogramTextControl fCurrentEventTimeControl; | |
87 | private HistogramTextControl fTimeSpanControl; | |
88 | ||
89 | // Histogram/request for the full trace range | |
90 | private static FullTraceHistogram fFullTraceHistogram; | |
91 | private HistogramRequest fFullTraceRequest; | |
92 | ||
93 | // Histogram/request for the selected time range | |
94 | private static TimeRangeHistogram fTimeRangeHistogram; | |
95 | private HistogramRequest fTimeRangeRequest; | |
96 | ||
97 | // ------------------------------------------------------------------------ | |
98 | // Constructor | |
99 | // ------------------------------------------------------------------------ | |
100 | ||
101 | public HistogramView() { | |
102 | super(ID); | |
103 | } | |
104 | ||
6a13fa07 | 105 | @Override |
c392540b | 106 | public void dispose() { |
4dc47e28 FC |
107 | if (fTimeRangeRequest != null && !fTimeRangeRequest.isCompleted()) { |
108 | fTimeRangeRequest.cancel(); | |
109 | } | |
110 | if (fFullTraceRequest != null && !fFullTraceRequest.isCompleted()) { | |
111 | fFullTraceRequest.cancel(); | |
112 | } | |
6a13fa07 FC |
113 | fFullTraceHistogram.dispose(); |
114 | fTimeRangeHistogram.dispose(); | |
4dc47e28 | 115 | super.dispose(); |
c392540b FC |
116 | } |
117 | ||
118 | // ------------------------------------------------------------------------ | |
119 | // TmfView | |
120 | // ------------------------------------------------------------------------ | |
121 | ||
122 | @Override | |
b59134e1 | 123 | @SuppressWarnings("unchecked") |
c392540b FC |
124 | public void createPartControl(Composite parent) { |
125 | ||
126 | fParent = parent; | |
127 | ||
128 | // Control labels | |
129 | final String currentEventLabel = Messages.HistogramView_currentEventLabel; | |
130 | final String windowSpanLabel = Messages.HistogramView_windowSpanLabel; | |
131 | ||
132 | // -------------------------------------------------------------------- | |
133 | // Set the HistogramView layout | |
134 | // -------------------------------------------------------------------- | |
135 | ||
136 | Composite viewComposite = new Composite(fParent, SWT.FILL); | |
137 | GridLayout gridLayout = new GridLayout(); | |
138 | gridLayout.numColumns = 2; | |
139 | gridLayout.horizontalSpacing = 5; | |
140 | gridLayout.verticalSpacing = 0; | |
141 | gridLayout.marginHeight = 0; | |
142 | gridLayout.marginWidth = 0; | |
143 | viewComposite.setLayout(gridLayout); | |
144 | ||
145 | // Use all available space | |
146 | GridData gridData = new GridData(); | |
147 | gridData.horizontalAlignment = SWT.FILL; | |
148 | gridData.verticalAlignment = SWT.FILL; | |
149 | gridData.grabExcessHorizontalSpace = true; | |
150 | viewComposite.setLayoutData(gridData); | |
151 | ||
152 | // -------------------------------------------------------------------- | |
153 | // Time controls | |
154 | // -------------------------------------------------------------------- | |
155 | ||
156 | Composite controlsComposite = new Composite(viewComposite, SWT.FILL); | |
157 | gridLayout = new GridLayout(); | |
158 | gridLayout.numColumns = 2; | |
159 | gridLayout.marginHeight = 0; | |
160 | gridLayout.marginWidth = 0; | |
161 | gridLayout.horizontalSpacing = 5; | |
162 | gridLayout.verticalSpacing = 0; | |
163 | gridLayout.makeColumnsEqualWidth = true; | |
164 | gridLayout.marginLeft = 5; | |
165 | gridLayout.marginRight = 5; | |
166 | controlsComposite.setLayout(gridLayout); | |
167 | ||
168 | // Current event time control | |
169 | gridData = new GridData(); | |
170 | gridData.horizontalAlignment = SWT.CENTER; | |
171 | gridData.verticalAlignment = SWT.CENTER; | |
0301dc43 | 172 | fCurrentEventTimeControl = new HistogramCurrentTimeControl(this, controlsComposite, SWT.BORDER, SWT.NONE, |
12c155f5 | 173 | currentEventLabel, HistogramUtils.nanosecondsToString(0L)); |
c392540b FC |
174 | fCurrentEventTimeControl.setLayoutData(gridData); |
175 | ||
176 | // Window span time control | |
177 | gridData = new GridData(); | |
178 | gridData.horizontalAlignment = SWT.CENTER; | |
179 | gridData.verticalAlignment = SWT.CENTER; | |
0301dc43 | 180 | fTimeSpanControl = new HistogramTimeRangeControl(this, controlsComposite, SWT.BORDER, SWT.NONE, |
12c155f5 | 181 | windowSpanLabel, HistogramUtils.nanosecondsToString(0L)); |
c392540b FC |
182 | fTimeSpanControl.setLayoutData(gridData); |
183 | ||
184 | // -------------------------------------------------------------------- | |
185 | // Time range histogram | |
186 | // -------------------------------------------------------------------- | |
187 | ||
188 | Composite timeRangeComposite = new Composite(viewComposite, SWT.FILL); | |
189 | gridLayout = new GridLayout(); | |
190 | gridLayout.numColumns = 1; | |
191 | gridLayout.marginHeight = 0; | |
192 | gridLayout.marginWidth = 0; | |
193 | gridLayout.marginTop = 5; | |
194 | gridLayout.horizontalSpacing = 0; | |
195 | gridLayout.verticalSpacing = 0; | |
196 | gridLayout.marginLeft = 5; | |
197 | gridLayout.marginRight = 5; | |
198 | timeRangeComposite.setLayout(gridLayout); | |
199 | ||
200 | // Use remaining horizontal space | |
201 | gridData = new GridData(); | |
202 | gridData.horizontalAlignment = SWT.FILL; | |
203 | gridData.verticalAlignment = SWT.FILL; | |
204 | gridData.grabExcessHorizontalSpace = true; | |
205 | timeRangeComposite.setLayoutData(gridData); | |
206 | ||
207 | // Histogram | |
208 | fTimeRangeHistogram = new TimeRangeHistogram(this, timeRangeComposite); | |
209 | ||
210 | // -------------------------------------------------------------------- | |
211 | // Full range histogram | |
212 | // -------------------------------------------------------------------- | |
213 | ||
214 | Composite fullRangeComposite = new Composite(viewComposite, SWT.FILL); | |
215 | gridLayout = new GridLayout(); | |
216 | gridLayout.numColumns = 1; | |
217 | gridLayout.marginHeight = 0; | |
218 | gridLayout.marginWidth = 0; | |
219 | gridLayout.marginTop = 5; | |
220 | gridLayout.horizontalSpacing = 0; | |
221 | gridLayout.verticalSpacing = 0; | |
222 | gridLayout.marginLeft = 5; | |
223 | gridLayout.marginRight = 5; | |
224 | fullRangeComposite.setLayout(gridLayout); | |
225 | ||
226 | // Use remaining horizontal space | |
227 | gridData = new GridData(); | |
228 | gridData.horizontalAlignment = SWT.FILL; | |
229 | gridData.verticalAlignment = SWT.FILL; | |
230 | gridData.horizontalSpan = 2; | |
231 | gridData.grabExcessHorizontalSpace = true; | |
232 | fullRangeComposite.setLayoutData(gridData); | |
233 | ||
234 | // Histogram | |
235 | fFullTraceHistogram = new FullTraceHistogram(this, fullRangeComposite); | |
236 | ||
237 | // Load the experiment if present | |
e0752744 | 238 | fCurrentExperiment = (TmfExperiment<ITmfEvent>) TmfExperiment.getCurrentExperiment(); |
c392540b FC |
239 | if (fCurrentExperiment != null) |
240 | loadExperiment(); | |
ecfd1d41 | 241 | } |
c392540b FC |
242 | |
243 | @Override | |
3e9fdb8b | 244 | @SuppressWarnings("unchecked") |
c392540b | 245 | public void setFocus() { |
e0752744 | 246 | TmfExperiment<ITmfEvent> experiment = (TmfExperiment<ITmfEvent>) TmfExperiment.getCurrentExperiment(); |
c392540b FC |
247 | if ((experiment != null) && (experiment != fCurrentExperiment)) { |
248 | fCurrentExperiment = experiment; | |
249 | initializeHistograms(); | |
250 | } | |
251 | fParent.redraw(); | |
833a21aa | 252 | } |
c392540b FC |
253 | |
254 | // ------------------------------------------------------------------------ | |
255 | // Accessors | |
256 | // ------------------------------------------------------------------------ | |
257 | ||
258 | public TmfTimeRange getTimeRange() { | |
12c155f5 FC |
259 | return new TmfTimeRange(new TmfTimestamp(fWindowStartTime, TIME_SCALE), new TmfTimestamp(fWindowEndTime, |
260 | TIME_SCALE)); | |
c392540b FC |
261 | } |
262 | ||
263 | // ------------------------------------------------------------------------ | |
264 | // Operations | |
265 | // ------------------------------------------------------------------------ | |
266 | ||
267 | public void updateCurrentEventTime(long newTime) { | |
268 | if (fCurrentExperiment != null) { | |
269 | TmfTimeRange timeRange = new TmfTimeRange(new TmfTimestamp(newTime, TIME_SCALE), TmfTimestamp.BigCrunch); | |
fbd124dd | 270 | HistogramRequest request = new HistogramRequest(fTimeRangeHistogram.getDataModel(), timeRange, 0, 1, ExecutionType.FOREGROUND) { |
c392540b | 271 | @Override |
e0752744 | 272 | public void handleData(ITmfEvent event) { |
c392540b FC |
273 | if (event != null) { |
274 | TmfTimeSynchSignal signal = new TmfTimeSynchSignal(this, event.getTimestamp()); | |
275 | TmfSignalManager.dispatchSignal(signal); | |
276 | } | |
277 | } | |
278 | }; | |
279 | fCurrentExperiment.sendRequest(request); | |
280 | } | |
281 | } | |
282 | ||
283 | public void updateTimeRange(long startTime, long endTime) { | |
284 | if (fCurrentExperiment != null) { | |
285 | // Build the new time range; keep the current time | |
12c155f5 FC |
286 | TmfTimeRange timeRange = new TmfTimeRange(new TmfTimestamp(startTime, TIME_SCALE), new TmfTimestamp( |
287 | endTime, TIME_SCALE)); | |
c392540b | 288 | TmfTimestamp currentTime = new TmfTimestamp(fCurrentTimestamp, TIME_SCALE); |
6a13fa07 | 289 | |
c392540b FC |
290 | fTimeSpanControl.setValue(endTime - startTime); |
291 | ||
292 | // Send the FW signal | |
293 | TmfRangeSynchSignal signal = new TmfRangeSynchSignal(this, timeRange, currentTime); | |
294 | TmfSignalManager.dispatchSignal(signal); | |
295 | } | |
296 | } | |
297 | ||
298 | public synchronized void updateTimeRange(long newDuration) { | |
299 | if (fCurrentExperiment != null) { | |
6a13fa07 FC |
300 | long delta = newDuration - fWindowSpan; |
301 | long newStartTime = fWindowStartTime + delta / 2; | |
302 | setNewRange(newStartTime, newDuration); | |
c392540b FC |
303 | } |
304 | } | |
305 | ||
306 | private void setNewRange(long startTime, long duration) { | |
307 | if (startTime < fExperimentStartTime) | |
6a13fa07 | 308 | startTime = fExperimentStartTime; |
c392540b FC |
309 | |
310 | long endTime = startTime + duration; | |
311 | if (endTime > fExperimentEndTime) { | |
6a13fa07 FC |
312 | endTime = fExperimentEndTime; |
313 | if (endTime - duration > fExperimentStartTime) | |
314 | startTime = endTime - duration; | |
315 | else { | |
316 | startTime = fExperimentStartTime; | |
317 | } | |
c392540b FC |
318 | } |
319 | updateTimeRange(startTime, endTime); | |
833a21aa | 320 | } |
c392540b FC |
321 | |
322 | // ------------------------------------------------------------------------ | |
323 | // Signal handlers | |
324 | // ------------------------------------------------------------------------ | |
325 | ||
1406f802 | 326 | @TmfSignalHandler |
c392540b | 327 | @SuppressWarnings("unchecked") |
e0752744 | 328 | public void experimentSelected(TmfExperimentSelectedSignal<ITmfEvent> signal) { |
c392540b | 329 | assert (signal != null); |
e0752744 | 330 | fCurrentExperiment = (TmfExperiment<ITmfEvent>) signal.getExperiment(); |
c392540b | 331 | loadExperiment(); |
ecfd1d41 | 332 | } |
550d787e | 333 | |
c392540b | 334 | private void loadExperiment() { |
c392540b FC |
335 | initializeHistograms(); |
336 | fParent.redraw(); | |
550d787e FC |
337 | } |
338 | ||
74237cc3 | 339 | @TmfSignalHandler |
74237cc3 FC |
340 | public void experimentRangeUpdated(TmfExperimentRangeUpdatedSignal signal) { |
341 | ||
09d11238 PT |
342 | if (signal.getExperiment() != fCurrentExperiment) { |
343 | return; | |
344 | } | |
345 | ||
74237cc3 FC |
346 | boolean drawTimeRangeHistogram = fExperimentStartTime == 0; |
347 | TmfTimeRange fullRange = signal.getRange(); | |
348 | ||
349 | fExperimentStartTime = fullRange.getStartTime().getValue(); | |
350 | fExperimentEndTime = fullRange.getEndTime().getValue(); | |
351 | ||
352 | fFullTraceHistogram.setFullRange(fExperimentStartTime, fExperimentEndTime); | |
353 | fTimeRangeHistogram.setFullRange(fExperimentStartTime, fExperimentEndTime); | |
354 | ||
355 | if (drawTimeRangeHistogram) { | |
356 | fCurrentTimestamp = fExperimentStartTime; | |
357 | fCurrentEventTimeControl.setValue(fCurrentTimestamp); | |
358 | fFullTraceHistogram.setTimeRange(fExperimentStartTime, INITIAL_WINDOW_SPAN); | |
359 | fTimeRangeHistogram.setTimeRange(fExperimentStartTime, INITIAL_WINDOW_SPAN); | |
360 | sendTimeRangeRequest(fExperimentStartTime, fExperimentStartTime + INITIAL_WINDOW_SPAN); | |
361 | } | |
362 | ||
363 | sendFullRangeRequest(fullRange); | |
364 | } | |
c392540b FC |
365 | |
366 | @TmfSignalHandler | |
367 | public void currentTimeUpdated(TmfTimeSynchSignal signal) { | |
368 | // Because this can't happen :-) | |
369 | assert (signal != null); | |
370 | ||
371 | // Update the selected event time | |
4df4581d | 372 | ITmfTimestamp currentTime = signal.getCurrentTime(); |
c392540b FC |
373 | fCurrentTimestamp = currentTime.getValue(); |
374 | ||
375 | // Notify the relevant widgets | |
376 | fFullTraceHistogram.setCurrentEvent(fCurrentTimestamp); | |
377 | fTimeRangeHistogram.setCurrentEvent(fCurrentTimestamp); | |
378 | fCurrentEventTimeControl.setValue(fCurrentTimestamp); | |
ecfd1d41 | 379 | } |
f05aabed | 380 | |
c392540b FC |
381 | @TmfSignalHandler |
382 | public void timeRangeUpdated(TmfRangeSynchSignal signal) { | |
383 | // Because this can't happen :-) | |
384 | assert (signal != null); | |
385 | ||
386 | if (fCurrentExperiment != null) { | |
387 | // Update the time range | |
388 | fWindowStartTime = signal.getCurrentRange().getStartTime().getValue(); | |
389 | fWindowEndTime = signal.getCurrentRange().getEndTime().getValue(); | |
390 | fWindowSpan = fWindowEndTime - fWindowStartTime; | |
391 | ||
392 | // Notify the relevant widgets | |
393 | sendTimeRangeRequest(fWindowStartTime, fWindowEndTime); | |
394 | fFullTraceHistogram.setTimeRange(fWindowStartTime, fWindowSpan); | |
395 | fTimeSpanControl.setValue(fWindowSpan); | |
396 | } | |
b59134e1 | 397 | } |
c392540b FC |
398 | |
399 | // ------------------------------------------------------------------------ | |
400 | // Helper functions | |
401 | // ------------------------------------------------------------------------ | |
402 | ||
403 | private void initializeHistograms() { | |
74237cc3 FC |
404 | TmfTimeRange fullRange = updateExperimentTimeRange(fCurrentExperiment); |
405 | ||
406 | fTimeRangeHistogram.clear(); | |
c392540b FC |
407 | fTimeRangeHistogram.setFullRange(fExperimentStartTime, fExperimentEndTime); |
408 | fTimeRangeHistogram.setTimeRange(fExperimentStartTime, INITIAL_WINDOW_SPAN); | |
409 | fTimeRangeHistogram.setCurrentEvent(fExperimentStartTime); | |
410 | ||
74237cc3 | 411 | fFullTraceHistogram.clear(); |
6a13fa07 | 412 | fFullTraceHistogram.setFullRange(fExperimentStartTime, fExperimentEndTime); |
c392540b FC |
413 | fFullTraceHistogram.setTimeRange(fExperimentStartTime, INITIAL_WINDOW_SPAN); |
414 | fFullTraceHistogram.setCurrentEvent(fExperimentStartTime); | |
415 | ||
416 | fWindowStartTime = fExperimentStartTime; | |
417 | fWindowSpan = INITIAL_WINDOW_SPAN; | |
418 | fWindowEndTime = fWindowStartTime + fWindowSpan; | |
6a13fa07 | 419 | |
c392540b FC |
420 | fCurrentEventTimeControl.setValue(fExperimentStartTime); |
421 | fTimeSpanControl.setValue(fWindowSpan); | |
6a13fa07 | 422 | |
c392540b | 423 | sendTimeRangeRequest(fExperimentStartTime, fExperimentStartTime + fWindowSpan); |
74237cc3 FC |
424 | sendFullRangeRequest(fullRange); |
425 | } | |
426 | ||
e0752744 | 427 | private TmfTimeRange updateExperimentTimeRange(TmfExperiment<ITmfEvent> experiment) { |
74237cc3 FC |
428 | fExperimentStartTime = 0; |
429 | fExperimentEndTime = 0; | |
430 | fCurrentTimestamp = 0; | |
431 | ||
432 | TmfTimeRange timeRange = fCurrentExperiment.getTimeRange(); | |
433 | if (timeRange != TmfTimeRange.Null) { | |
434 | fExperimentStartTime = timeRange.getStartTime().getValue(); | |
435 | fExperimentEndTime = timeRange.getEndTime().getValue(); | |
436 | fCurrentTimestamp = fExperimentStartTime; | |
437 | } | |
438 | return timeRange; | |
b59134e1 | 439 | } |
c392540b FC |
440 | |
441 | private void sendTimeRangeRequest(long startTime, long endTime) { | |
442 | if (fTimeRangeRequest != null && !fTimeRangeRequest.isCompleted()) { | |
443 | fTimeRangeRequest.cancel(); | |
088c1d4e | 444 | } |
c392540b FC |
445 | TmfTimestamp startTS = new TmfTimestamp(startTime, TIME_SCALE); |
446 | TmfTimestamp endTS = new TmfTimestamp(endTime, TIME_SCALE); | |
447 | TmfTimeRange timeRange = new TmfTimeRange(startTS, endTS); | |
448 | ||
449 | fTimeRangeHistogram.clear(); | |
450 | fTimeRangeHistogram.setTimeRange(startTime, endTime - startTime); | |
fbd124dd | 451 | fTimeRangeRequest = new HistogramRequest(fTimeRangeHistogram.getDataModel(), timeRange, ExecutionType.FOREGROUND); |
c392540b | 452 | fCurrentExperiment.sendRequest(fTimeRangeRequest); |
088c1d4e | 453 | } |
c392540b | 454 | |
74237cc3 | 455 | private void sendFullRangeRequest(TmfTimeRange fullRange) { |
c392540b FC |
456 | if (fFullTraceRequest != null && !fFullTraceRequest.isCompleted()) { |
457 | fFullTraceRequest.cancel(); | |
458 | } | |
fbd124dd BH |
459 | fFullTraceRequest = new HistogramRequest(fFullTraceHistogram.getDataModel(), fullRange, (int) fFullTraceHistogram.fDataModel.getNbEvents(), |
460 | ExecutionType.BACKGROUND); | |
c392540b | 461 | fCurrentExperiment.sendRequest(fFullTraceRequest); |
ed4b3b9f | 462 | } |
c392540b | 463 | |
6e512b93 | 464 | } |