diff options
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r-- | src/plugins/perfprofiler/perfdatareader.cpp | 8 | ||||
-rw-r--r-- | src/plugins/perfprofiler/perfprofilertracemanager.cpp | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/plugins/perfprofiler/perfdatareader.cpp b/src/plugins/perfprofiler/perfdatareader.cpp index 4ea37251acc..f5b3c15b10a 100644 --- a/src/plugins/perfprofiler/perfdatareader.cpp +++ b/src/plugins/perfprofiler/perfdatareader.cpp @@ -188,9 +188,11 @@ void PerfDataReader::triggerRecordingStateChange(bool recording) qMin(delay(currentTime) / (1000ll * million), static_cast<qint64>(std::numeric_limits<int>::max()))); - Core::FutureProgress *fp = Core::ProgressManager::addTimedTask( - future(), Tr::tr("Skipping Processing Delay"), - Constants::PerfProfilerTaskSkipDelay, seconds); + Core::FutureProgress *fp + = Core::ProgressManager::addTimedTask(future(), + Tr::tr("Skipping Processing Delay"), + Constants::PerfProfilerTaskSkipDelay, + std::chrono::seconds(seconds)); fp->setToolTip(recording ? Tr::tr("Cancel this to ignore the processing delay and immediately " "start recording.") : diff --git a/src/plugins/perfprofiler/perfprofilertracemanager.cpp b/src/plugins/perfprofiler/perfprofilertracemanager.cpp index 7a3643660c1..609112f8232 100644 --- a/src/plugins/perfprofiler/perfprofilertracemanager.cpp +++ b/src/plugins/perfprofiler/perfprofilertracemanager.cpp @@ -605,9 +605,11 @@ void PerfProfilerTraceManager::loadFromPerfData(const FilePath &filePath, const int fileMegabytes = static_cast<int>( qMin(filePath.fileSize() >> 20, static_cast<qint64>(std::numeric_limits<int>::max()))); - Core::FutureProgress *fp = Core::ProgressManager::addTimedTask( - reader->future(), Tr::tr("Loading Trace Data"), Constants::PerfProfilerTaskLoadPerf, - fileMegabytes); + Core::FutureProgress *fp + = Core::ProgressManager::addTimedTask(reader->future(), + Tr::tr("Loading Trace Data"), + Constants::PerfProfilerTaskLoadPerf, + std::chrono::seconds(fileMegabytes)); connect(fp, &Core::FutureProgress::canceled, reader, [reader]() { reader->stopParser(); |