Updating dependency metadata only when visualization option is set.

This commit is contained in:
Iron Prando da Silva
2021-11-11 09:14:56 +01:00
parent 706db2f44c
commit 2314057f7b
3 changed files with 9 additions and 3 deletions

View File

@@ -57,7 +57,6 @@ MainWindow::MainWindow(QWidget *parent) :
traceNavigator->GeneralTraceInfo().TraceSpan());
transactions = db->getTransactionsInTimespan(
traceNavigator->GeneralTraceInfo().TraceSpan());
db->updateDependenciesInTimespan(traceNavigator->GeneralTraceInfo().TraceSpan());
ui->qwtPlot->setAxisScale(QwtPlot::xBottom,
traceNavigator->GeneralTraceInfo().TraceSpan().Begin(),

View File

@@ -508,7 +508,10 @@ void TracePlot::currentTraceTimeChanged()
{
transactions = navigator->TraceFile().getTransactionsInTimespan(
GetCurrentTimespan());
navigator->TraceFile().updateDependenciesInTimespan(GetCurrentTimespan());
if (getDrawingProperties().drawDependenciesOption.draw != DependencyOption::Disabled) {
navigator->TraceFile().updateDependenciesInTimespan(GetCurrentTimespan());
}
setAxisScale(xBottom, GetCurrentTimespan().Begin(), GetCurrentTimespan().End());
replot();

View File

@@ -197,7 +197,11 @@ void TraceScroller::currentTraceTimeChanged()
canvasClip->setInterval(spanOnTracePlot.Begin(), spanOnTracePlot.End());
Timespan span = GetCurrentTimespan();
transactions = navigator->TraceFile().getTransactionsInTimespan(span);
navigator->TraceFile().updateDependenciesInTimespan(span);
if (drawingProperties.drawDependenciesOption.draw != DependencyOption::Disabled) {
navigator->TraceFile().updateDependenciesInTimespan(span);
}
setAxisScale(xBottom, span.Begin(), span.End());
replot();