diff options
Diffstat (limited to 'kradio3/src/debug-profiler.cpp')
-rw-r--r-- | kradio3/src/debug-profiler.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kradio3/src/debug-profiler.cpp b/kradio3/src/debug-profiler.cpp index 8c5a9ab..ac2f372 100644 --- a/kradio3/src/debug-profiler.cpp +++ b/kradio3/src/debug-profiler.cpp @@ -17,7 +17,7 @@ #include "include/debug-profiler.h" -#include <qstringlist.h> +#include <tqstringlist.h> #include <sys/resource.h> @@ -45,11 +45,11 @@ void Profiler::startInternalCounter() { m_tmpStartVal = getCounter(); } -void Profiler::startProfile(const QString &descr) +void Profiler::startProfile(const TQString &descr) { stopInternalCounter(); - if (m_ProfileData.contains(descr)) { + if (m_ProfileData.tqcontains(descr)) { profile_data &d = m_ProfileData[descr]; d.startCounter = m_internalCounter; } else { @@ -60,11 +60,11 @@ void Profiler::startProfile(const QString &descr) } -void Profiler::stopProfile (const QString &descr) +void Profiler::stopProfile (const TQString &descr) { stopInternalCounter(); - if (!descr.isNull() && m_ProfileData.contains(descr)) { + if (!descr.isNull() && m_ProfileData.tqcontains(descr)) { profile_data &d = m_ProfileData[descr]; long long diff = m_internalCounter - d.startCounter; d.accumulatedCounter += diff; @@ -83,16 +83,16 @@ void Profiler::printData () { stopInternalCounter(); - QStringList keys=m_ProfileData.keys(); + TQStringList keys=m_ProfileData.keys(); keys.sort(); - QValueListIterator<QString> it = keys.begin(); - QValueListIterator<QString> end = keys.end(); + TQValueListIterator<TQString> it = keys.begin(); + TQValueListIterator<TQString> end = keys.end(); for (; it != end; ++it) { int l = (*it).length(); l = (((l-1) / 25) + 1) * 25; if (l < 50) l = 50; const profile_data &d = m_ProfileData[*it]; - printf(("%-"+QString::number(l)+"s: total: %3.8f (%9lli) avg: %3.8f min: %3.8f max: %3.8f\n").ascii(), + printf(("%-"+TQString::number(l)+"s: total: %3.8f (%9lli) avg: %3.8f min: %3.8f max: %3.8f\n").ascii(), (*it).ascii(), (double)d.accumulatedCounter / 1.666e9, d.callCounter, @@ -116,7 +116,7 @@ long long MemProfiler::getCounter() const } -BlockProfiler::BlockProfiler(const QString &descr) +BlockProfiler::BlockProfiler(const TQString &descr) : m_Description(descr) { global_mem_profiler.startProfile(m_Description); @@ -133,6 +133,6 @@ void BlockProfiler::stop() { global_time_profiler.stopProfile(m_Description); global_mem_profiler.stopProfile(m_Description); - m_Description = QString::null; + m_Description = TQString(); } |