##// END OF EJS Templates
Change info to debug on thread display log
perrinel -
r367:df969ff9808a
parent child
Show More
@@ -60,7 +60,7 void Variable::setDateTime(const SqpDateTime &dateTime) noexcept
60
60
61 void Variable::setDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept
61 void Variable::setDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept
62 {
62 {
63 qCInfo(LOG_Variable()) << "Variable::setDataSeries" << QThread::currentThread()->objectName();
63 qCDebug(LOG_Variable()) << "Variable::setDataSeries" << QThread::currentThread()->objectName();
64 if (!dataSeries) {
64 if (!dataSeries) {
65 /// @todo ALX : log
65 /// @todo ALX : log
66 return;
66 return;
@@ -33,7 +33,7 VariableCacheController::VariableCacheController(QObject *parent)
33 void VariableCacheController::addDateTime(std::shared_ptr<Variable> variable,
33 void VariableCacheController::addDateTime(std::shared_ptr<Variable> variable,
34 const SqpDateTime &dateTime)
34 const SqpDateTime &dateTime)
35 {
35 {
36 qCInfo(LOG_VariableCacheController()) << "VariableCacheController::addDateTime"
36 qCDebug(LOG_VariableCacheController()) << "VariableCacheController::addDateTime"
37 << QThread::currentThread()->objectName();
37 << QThread::currentThread()->objectName();
38 if (variable) {
38 if (variable) {
39 auto findVariableIte = impl->m_VariableToSqpDateTimeListMap.find(variable);
39 auto findVariableIte = impl->m_VariableToSqpDateTimeListMap.find(variable);
@@ -84,7 +84,7 QVector<SqpDateTime>
84 VariableCacheController::provideNotInCacheDateTimeList(std::shared_ptr<Variable> variable,
84 VariableCacheController::provideNotInCacheDateTimeList(std::shared_ptr<Variable> variable,
85 const SqpDateTime &dateTime)
85 const SqpDateTime &dateTime)
86 {
86 {
87 qCInfo(LOG_VariableCacheController())
87 qCDebug(LOG_VariableCacheController())
88 << "VariableCacheController::provideNotInCacheDateTimeList"
88 << "VariableCacheController::provideNotInCacheDateTimeList"
89 << QThread::currentThread()->objectName();
89 << QThread::currentThread()->objectName();
90 auto notInCache = QVector<SqpDateTime>{};
90 auto notInCache = QVector<SqpDateTime>{};
@@ -107,7 +107,7 VariableCacheController::provideNotInCacheDateTimeList(std::shared_ptr<Variable>
107 QVector<SqpDateTime>
107 QVector<SqpDateTime>
108 VariableCacheController::dateCacheList(std::shared_ptr<Variable> variable) const noexcept
108 VariableCacheController::dateCacheList(std::shared_ptr<Variable> variable) const noexcept
109 {
109 {
110 qCInfo(LOG_VariableCacheController()) << "VariableCacheController::dateCacheList"
110 qCDebug(LOG_VariableCacheController()) << "VariableCacheController::dateCacheList"
111 << QThread::currentThread()->objectName();
111 << QThread::currentThread()->objectName();
112 try {
112 try {
113 return impl->m_VariableToSqpDateTimeListMap.at(variable);
113 return impl->m_VariableToSqpDateTimeListMap.at(variable);
@@ -11,7 +11,7 namespace {
11
11
12 class SqpDataContainer : public QCPGraphDataContainer {
12 class SqpDataContainer : public QCPGraphDataContainer {
13 public:
13 public:
14 void sqpAdd(const QCPGraphData &data) { mData.append(data); }
14 void appendGraphDataUnsorted(const QCPGraphData &data) { mData.append(data); }
15 };
15 };
16
16
17
17
@@ -37,7 +37,7 QSharedPointer<QCPAxisTicker> axisTicker(bool isTimeAxis)
37 void updateScalarData(QCPAbstractPlottable *component, ScalarSeries &scalarSeries,
37 void updateScalarData(QCPAbstractPlottable *component, ScalarSeries &scalarSeries,
38 const SqpDateTime &dateTime)
38 const SqpDateTime &dateTime)
39 {
39 {
40 qCInfo(LOG_VisualizationGraphHelper()) << "TORM: updateScalarData"
40 qCDebug(LOG_VisualizationGraphHelper()) << "TORM: updateScalarData"
41 << QThread::currentThread()->objectName();
41 << QThread::currentThread()->objectName();
42 if (auto qcpGraph = dynamic_cast<QCPGraph *>(component)) {
42 if (auto qcpGraph = dynamic_cast<QCPGraph *>(component)) {
43 // Clean the graph
43 // Clean the graph
@@ -58,7 +58,7 void updateScalarData(QCPAbstractPlottable *component, ScalarSeries &scalarSerie
58 for (auto i = 0; i < count; ++i) {
58 for (auto i = 0; i < count; ++i) {
59 const auto x = xData[i];
59 const auto x = xData[i];
60 if (x >= dateTime.m_TStart && x <= dateTime.m_TEnd) {
60 if (x >= dateTime.m_TStart && x <= dateTime.m_TEnd) {
61 sqpDataContainer->sqpAdd(QCPGraphData(x, valuesData[i]));
61 sqpDataContainer->appendGraphDataUnsorted(QCPGraphData(x, valuesData[i]));
62 }
62 }
63 }
63 }
64 sqpDataContainer->sort();
64 sqpDataContainer->sort();
@@ -40,7 +40,7 CosinusProvider::retrieveData(const DataProviderParameters &parameters) const
40
40
41 void CosinusProvider::requestDataLoading(const QVector<SqpDateTime> &dateTimeList)
41 void CosinusProvider::requestDataLoading(const QVector<SqpDateTime> &dateTimeList)
42 {
42 {
43 qCInfo(LOG_CosinusProvider()) << "CosinusProvider::requestDataLoading"
43 qCDebug(LOG_CosinusProvider()) << "CosinusProvider::requestDataLoading"
44 << QThread::currentThread()->objectName();
44 << QThread::currentThread()->objectName();
45 // NOTE: Try to use multithread if possible
45 // NOTE: Try to use multithread if possible
46 for (const auto &dateTime : dateTimeList) {
46 for (const auto &dateTime : dateTimeList) {
General Comments 0
You need to be logged in to leave comments. Login now