summaryrefslogtreecommitdiffstats
path: root/tdecachegrind
diff options
context:
space:
mode:
Diffstat (limited to 'tdecachegrind')
-rw-r--r--tdecachegrind/ChangeLog4
-rw-r--r--tdecachegrind/tdecachegrind/callgraphview.cpp62
-rw-r--r--tdecachegrind/tdecachegrind/callmapview.cpp14
-rw-r--r--tdecachegrind/tdecachegrind/configdlg.cpp12
-rw-r--r--tdecachegrind/tdecachegrind/configuration.cpp10
-rw-r--r--tdecachegrind/tdecachegrind/coverage.cpp14
-rw-r--r--tdecachegrind/tdecachegrind/fixcost.cpp4
-rw-r--r--tdecachegrind/tdecachegrind/functionselection.cpp6
-rw-r--r--tdecachegrind/tdecachegrind/instritem.cpp4
-rw-r--r--tdecachegrind/tdecachegrind/instrview.cpp16
-rw-r--r--tdecachegrind/tdecachegrind/listutils.cpp4
-rw-r--r--tdecachegrind/tdecachegrind/multiview.cpp2
-rw-r--r--tdecachegrind/tdecachegrind/partgraph.cpp14
-rw-r--r--tdecachegrind/tdecachegrind/partselection.cpp6
-rw-r--r--tdecachegrind/tdecachegrind/pool.cpp12
-rw-r--r--tdecachegrind/tdecachegrind/sourceitem.cpp4
-rw-r--r--tdecachegrind/tdecachegrind/sourceview.cpp16
-rw-r--r--tdecachegrind/tdecachegrind/stackbrowser.cpp6
-rw-r--r--tdecachegrind/tdecachegrind/tabview.cpp22
-rw-r--r--tdecachegrind/tdecachegrind/toplevel.cpp28
-rw-r--r--tdecachegrind/tdecachegrind/tracedata.cpp172
-rw-r--r--tdecachegrind/tdecachegrind/utils.cpp10
22 files changed, 221 insertions, 221 deletions
diff --git a/tdecachegrind/ChangeLog b/tdecachegrind/ChangeLog
index 05f3081e..5c0c8cf8 100644
--- a/tdecachegrind/ChangeLog
+++ b/tdecachegrind/ChangeLog
@@ -9,7 +9,7 @@
2004/04/28
* toplevel.h/cpp, tdecachegrindui.rc
- Switching Layouts
- * multiview.cpp: Removed some qDebug's
+ * multiview.cpp: Removed some tqDebug's
* Same term fixes
2004/04/26
@@ -37,7 +37,7 @@
- Add Context menu item "Export as Image"
- Hide Birdseye-View if call-graph fits into widget
- Error messages in Canvas when something goes wrong
- * Some Fixes, qDebug->kdDebug
+ * Some Fixes, tqDebug->kdDebug
2004/04/02
* In most views columns for 2nd Event Type added
diff --git a/tdecachegrind/tdecachegrind/callgraphview.cpp b/tdecachegrind/tdecachegrind/callgraphview.cpp
index bc01da8b..7ded6678 100644
--- a/tdecachegrind/tdecachegrind/callgraphview.cpp
+++ b/tdecachegrind/tdecachegrind/callgraphview.cpp
@@ -130,7 +130,7 @@ GraphNode::GraphNode()
TraceCall* GraphNode::visibleCaller()
{
- if (0) qDebug("GraphNode::visibleCaller %s: last %d, count %d",
+ if (0) tqDebug("GraphNode::visibleCaller %s: last %d, count %d",
_f->prettyName().ascii(), _lastCallerIndex, callers.count());
GraphEdge* e = callers.at(_lastCallerIndex);
@@ -152,7 +152,7 @@ TraceCall* GraphNode::visibleCaller()
TraceCall* GraphNode::visibleCalling()
{
- if (0) qDebug("GraphNode::visibleCalling %s: last %d, count %d",
+ if (0) tqDebug("GraphNode::visibleCalling %s: last %d, count %d",
_f->prettyName().ascii(), _lastCallingIndex, callings.count());
GraphEdge* e = callings.at(_lastCallingIndex);
@@ -840,12 +840,12 @@ void GraphExporter::buildGraph(TraceFunction* f, int d,
double incl = f->inclusive()->subCost(_costType) * factor;
n.incl += incl;
n.self += f->subCost(_costType) * factor;
- if (0) qDebug(" Added Incl. %f, now %f", incl, n.incl);
+ if (0) tqDebug(" Added Incl. %f, now %f", incl, n.incl);
// A negative depth limit means "unlimited"
int maxDepth = toCallings ? _go->maxCallingDepth() : _go->maxCallerDepth();
if ((maxDepth>=0) && (d >= maxDepth)) {
- if (0) qDebug(" Cutoff, max depth reached");
+ if (0) tqDebug(" Cutoff, max depth reached");
return;
}
@@ -858,7 +858,7 @@ void GraphExporter::buildGraph(TraceFunction* f, int d,
// note: a 2nd visit never should happen, as we don't follow inner-cycle
// calls
if (oldIncl > 0.0) {
- if (0) qDebug(" Cutoff, 2nd visit to Cycle Member");
+ if (0) tqDebug(" Cutoff, 2nd visit to Cycle Member");
// and takeback cost addition, as it's added twice
n.incl = oldIncl;
n.self -= f->subCost(_costType) * factor;
@@ -866,7 +866,7 @@ void GraphExporter::buildGraph(TraceFunction* f, int d,
}
}
else if (incl <= _realFuncLimit) {
- if (0) qDebug(" Cutoff, below limit");
+ if (0) tqDebug(" Cutoff, below limit");
return;
}
@@ -903,7 +903,7 @@ void GraphExporter::buildGraph(TraceFunction* f, int d,
e.cost += cost;
e.count += count;
- if (0) qDebug(" Edge to %s, added cost %f, now %f",
+ if (0) tqDebug(" Edge to %s, added cost %f, now %f",
f2->prettyName().ascii(), cost, e.cost);
// if this call goes into a FunctionCycle, we also show the real call
@@ -945,7 +945,7 @@ void GraphExporter::buildGraph(TraceFunction* f, int d,
// from here with full incl. cost because of previous cutoffs
if ((e.cost >= _realCallLimit) && (oldCost < _realCallLimit)) cost = e.cost;
if (cost < _realCallLimit) {
- if (0) qDebug(" Edge Cutoff, limit not reached");
+ if (0) tqDebug(" Edge Cutoff, limit not reached");
continue;
}
@@ -1204,14 +1204,14 @@ TQPointArray CanvasEdge::areaPoints() const
int maxX = minX, maxY = minY;
int i;
- if (0) qDebug("CanvasEdge::areaPoints\n P 0: %d/%d", minX, minY);
+ if (0) tqDebug("CanvasEdge::areaPoints\n P 0: %d/%d", minX, minY);
int len = poly.count();
for (i=1;i<len;i++) {
if (poly[i].x() < minX) minX = poly[i].x();
if (poly[i].y() < minY) minY = poly[i].y();
if (poly[i].x() > maxX) maxX = poly[i].x();
if (poly[i].y() > maxY) maxY = poly[i].y();
- if (0) qDebug(" P %d: %d/%d", i, poly[i].x(), poly[i].y());
+ if (0) tqDebug(" P %d: %d/%d", i, poly[i].x(), poly[i].y());
}
TQPointArray a = poly.copy(), b = poly.copy();
if (minX == maxX) {
@@ -1227,9 +1227,9 @@ TQPointArray CanvasEdge::areaPoints() const
a[2 * len - 1 -i] = b[i];
if (0) {
- qDebug(" Result:");
+ tqDebug(" Result:");
for (i=0;i<2*len;i++)
- qDebug(" P %d: %d/%d", i, a[i].x(), a[i].y());
+ tqDebug(" P %d: %d/%d", i, a[i].x(), a[i].y());
}
return a;
@@ -1318,7 +1318,7 @@ void CallGraphTip::maybeTip( const TQPoint& pos )
TQPoint cPos = cgv->viewportToContents(pos);
- if (0) qDebug("CallGraphTip for (%d/%d) -> (%d/%d) ?",
+ if (0) tqDebug("CallGraphTip for (%d/%d) -> (%d/%d) ?",
pos.x(), pos.y(), cPos.x(), cPos.y());
TQCanvasItemList l = cgv->canvas()->collisions(cPos);
@@ -1328,7 +1328,7 @@ void CallGraphTip::maybeTip( const TQPoint& pos )
if (i->rtti() == CANVAS_NODE) {
CanvasNode* cn = (CanvasNode*)i;
GraphNode* n = cn->node();
- if (0) qDebug("CallGraphTip: Mouse on Node '%s'",
+ if (0) tqDebug("CallGraphTip: Mouse on Node '%s'",
n->function()->prettyName().ascii());
TQString tipStr = TQString("%1 (%2)").arg(cn->text(0)).arg(cn->text(1));
@@ -1348,7 +1348,7 @@ void CallGraphTip::maybeTip( const TQPoint& pos )
if (i->rtti() == CANVAS_EDGE) {
CanvasEdge* ce = (CanvasEdge*)i;
GraphEdge* e = ce->edge();
- if (0) qDebug("CallGraphTip: Mouse on Edge '%s'",
+ if (0) tqDebug("CallGraphTip: Mouse on Edge '%s'",
e->prettyName().ascii());
TQString tipStr;
@@ -1474,7 +1474,7 @@ void CallGraphView::updateSizes(TQSize s)
if (zoom != _cvZoom) {
_cvZoom = zoom;
- if (0) qDebug("Canvas Size: %dx%d, Visible: %dx%d, Zoom: %f",
+ if (0) tqDebug("Canvas Size: %dx%d, Visible: %dx%d, Zoom: %f",
_canvas->width(), _canvas->height(),
cWidth, cHeight, zoom);
@@ -1915,7 +1915,7 @@ void CallGraphView::dotExited()
TQTextStream lineStream(line, IO_ReadOnly);
lineStream >> cmd;
- if (0) qDebug("%s:%d - line '%s', cmd '%s'",
+ if (0) tqDebug("%s:%d - line '%s', cmd '%s'",
_exporter.filename().ascii(), lineno,
line.ascii(), cmd.ascii());
@@ -2010,7 +2010,7 @@ void CallGraphView::dotExited()
}
if (!n) {
- qDebug("Warning: Unknown function '%s' ?!", nodeName.ascii());
+ tqDebug("Warning: Unknown function '%s' ?!", nodeName.ascii());
continue;
}
n->setVisible(true);
@@ -2050,7 +2050,7 @@ void CallGraphView::dotExited()
if (e->fromNode()) e->fromNode()->callings.append(e);
if (e->toNode()) e->toNode()->callers.append(e);
- if (0) qDebug(" Edge with %d points:", points);
+ if (0) tqDebug(" Edge with %d points:", points);
pa.resize(points);
for (i=0;i<points;i++) {
@@ -2062,13 +2062,13 @@ void CallGraphView::dotExited()
int xx = (int)(scaleX * x + _xMargin);
int yy = (int)(scaleY * (dotHeight - y) + _yMargin);
- if (0) qDebug(" P %d: ( %f / %f ) => ( %d / %d)",
+ if (0) tqDebug(" P %d: ( %f / %f ) => ( %d / %d)",
i, x, y, xx, yy);
pa.setPoint(i, xx, yy);
}
if (i < points) {
- qDebug("CallGraphView: Can't read %d spline points (%s:%d)",
+ tqDebug("CallGraphView: Can't read %d spline points (%s:%d)",
points, _exporter.filename().ascii(), lineno);
continue;
}
@@ -2134,7 +2134,7 @@ void CallGraphView::dotExited()
a.setPoint(2, pa.point(indexHead) + TQPoint(-arrowDir.y()/2,
arrowDir.x()/2));
- if (0) qDebug(" Arrow: ( %d/%d, %d/%d, %d/%d)",
+ if (0) tqDebug(" Arrow: ( %d/%d, %d/%d, %d/%d)",
a.point(0).x(), a.point(0).y(),
a.point(1).x(), a.point(1).y(),
a.point(2).x(), a.point(2).y());
@@ -2174,7 +2174,7 @@ void CallGraphView::dotExited()
int xx = (int)(scaleX * x + _xMargin);
int yy = (int)(scaleY * (dotHeight - y) + _yMargin);
- if (0) qDebug(" Label '%s': ( %f / %f ) => ( %d / %d)",
+ if (0) tqDebug(" Label '%s': ( %f / %f ) => ( %d / %d)",
label.ascii(), x, y, xx, yy);
// Fixed Dimensions for Label: 100 x 40
@@ -2275,7 +2275,7 @@ void CallGraphView::contentsMovingSlot(int x, int y)
{
TQRect z(int(x * _cvZoom), int(y * _cvZoom),
int(visibleWidth() * _cvZoom)-1, int(visibleHeight() * _cvZoom)-1);
- if (0) qDebug("moving: (%d,%d) => (%d/%d - %dx%d)",
+ if (0) tqDebug("moving: (%d,%d) => (%d/%d - %dx%d)",
x, y, z.x(), z.y(), z.width(), z.height());
_completeView->setZoomRect(z);
}
@@ -2305,7 +2305,7 @@ void CallGraphView::contentsMousePressEvent(TQMouseEvent* e)
if (i->rtti() == CANVAS_NODE) {
GraphNode* n = ((CanvasNode*)i)->node();
- if (0) qDebug("CallGraphView: Got Node '%s'",
+ if (0) tqDebug("CallGraphView: Got Node '%s'",
n->function()->prettyName().ascii());
selected(n->function());
@@ -2319,7 +2319,7 @@ void CallGraphView::contentsMousePressEvent(TQMouseEvent* e)
if (i->rtti() == CANVAS_EDGE) {
GraphEdge* e = ((CanvasEdge*)i)->edge();
- if (0) qDebug("CallGraphView: Got Edge '%s'",
+ if (0) tqDebug("CallGraphView: Got Edge '%s'",
e->prettyName().ascii());
if (e->call()) selected(e->call());
@@ -2352,7 +2352,7 @@ void CallGraphView::contentsMouseDoubleClickEvent(TQMouseEvent* e)
if (i->rtti() == CANVAS_NODE) {
GraphNode* n = ((CanvasNode*)i)->node();
- if (0) qDebug("CallGraphView: Double Clicked on Node '%s'",
+ if (0) tqDebug("CallGraphView: Double Clicked on Node '%s'",
n->function()->prettyName().ascii());
activated(n->function());
@@ -2367,7 +2367,7 @@ void CallGraphView::contentsMouseDoubleClickEvent(TQMouseEvent* e)
if (i->rtti() == CANVAS_EDGE) {
GraphEdge* e = ((CanvasEdge*)i)->edge();
if (e->call()) {
- if (0) qDebug("CallGraphView: Double Clicked On Edge '%s'",
+ if (0) tqDebug("CallGraphView: Double Clicked On Edge '%s'",
e->call()->prettyName().ascii());
activated(e->call());
@@ -2387,7 +2387,7 @@ void CallGraphView::contentsContextMenuEvent(TQContextMenuEvent* e)
if (i) {
if (i->rtti() == CANVAS_NODE) {
GraphNode* n = ((CanvasNode*)i)->node();
- if (0) qDebug("CallGraphView: Menu on Node '%s'",
+ if (0) tqDebug("CallGraphView: Menu on Node '%s'",
n->function()->prettyName().ascii());
f = n->function();
cycle = f->cycle();
@@ -2410,7 +2410,7 @@ void CallGraphView::contentsContextMenuEvent(TQContextMenuEvent* e)
if (i->rtti() == CANVAS_EDGE) {
GraphEdge* e = ((CanvasEdge*)i)->edge();
- if (0) qDebug("CallGraphView: Menu on Edge '%s'",
+ if (0) tqDebug("CallGraphView: Menu on Edge '%s'",
e->prettyName().ascii());
c = e->call();
if (c) {
@@ -2690,7 +2690,7 @@ void CallGraphView::readViewConfig(KConfig* c,
{
KConfigGroup* g = configGroup(c, prefix, postfix);
- if (0) qDebug("CallGraphView::readViewConfig");
+ if (0) tqDebug("CallGraphView::readViewConfig");
_maxCallerDepth = g->readNumEntry("MaxCaller", DEFAULT_MAXCALLER);
_maxCallingDepth = g->readNumEntry("MaxCalling", DEFAULT_MAXCALLING);
diff --git a/tdecachegrind/tdecachegrind/callmapview.cpp b/tdecachegrind/tdecachegrind/callmapview.cpp
index 0e4d5e38..5af303f9 100644
--- a/tdecachegrind/tdecachegrind/callmapview.cpp
+++ b/tdecachegrind/tdecachegrind/callmapview.cpp
@@ -542,7 +542,7 @@ TQString CallMapView::tipString(TreeMapItem* i) const
TQString tip, itemTip;
int count = 0;
- //qDebug("CallMapView::tipString for '%s'", i->text(0).ascii());
+ //tqDebug("CallMapView::tipString for '%s'", i->text(0).ascii());
// first, SubPartItem's
while (i && count<Configuration::maxSymbolCount()) {
@@ -668,7 +668,7 @@ TreeMapItemList* CallMapBaseItem::children()
if (_f && !initialized()) {
CallMapView* w = (CallMapView*)widget();
- if (0) qDebug("Create Function %s (%s)",
+ if (0) tqDebug("Create Function %s (%s)",
w->showCallers() ? "Callers":"Callees",
text(0).ascii());
@@ -795,7 +795,7 @@ bool CallMapCallingItem::isMarked(int) const
TreeMapItemList* CallMapCallingItem::children()
{
if (!initialized()) {
- if (0) qDebug("Create Calling subitems (%s)", path(0).join("/").ascii());
+ if (0) tqDebug("Create Calling subitems (%s)", path(0).join("/").ascii());
TraceCostType* ct;
ct = ((CallMapView*)widget())->costType();
@@ -804,14 +804,14 @@ TreeMapItemList* CallMapCallingItem::children()
SubCost s = _c->called()->inclusive()->subCost(ct);
SubCost v = _c->subCost(ct);
if (v>s) {
- qDebug("Warning: CallingItem subVal %u > Sum %u (%s)",
+ tqDebug("Warning: CallingItem subVal %u > Sum %u (%s)",
(unsigned)v, (unsigned)s, _c->called()->prettyName().ascii());
v = s;
}
double newFactor = _factor * v / s;
#if 0
- qDebug("CallingItem: Subitems of %s => %s, factor %f * %d/%d => %f",
+ tqDebug("CallingItem: Subitems of %s => %s, factor %f * %d/%d => %f",
_c->caller()->prettyName().ascii(),
_c->called()->prettyName().ascii(),
_factor, v, s, newFactor);
@@ -907,7 +907,7 @@ bool CallMapCallerItem::isMarked(int) const
TreeMapItemList* CallMapCallerItem::children()
{
if (!initialized()) {
- //qDebug("Create Caller subitems (%s)", name().ascii());
+ //tqDebug("Create Caller subitems (%s)", name().ascii());
TraceCostType* ct;
ct = ((CallMapView*)widget())->costType();
@@ -918,7 +918,7 @@ TreeMapItemList* CallMapCallerItem::children()
#if 0
- qDebug("CallerItem: Subitems of %s => %s, factor %f * %d/%d => %f",
+ tqDebug("CallerItem: Subitems of %s => %s, factor %f * %d/%d => %f",
_c->caller()->prettyName().ascii(),
_c->called()->prettyName().ascii(),
_factor, v, s, newFactor);
diff --git a/tdecachegrind/tdecachegrind/configdlg.cpp b/tdecachegrind/tdecachegrind/configdlg.cpp
index e0b45470..0ce58df6 100644
--- a/tdecachegrind/tdecachegrind/configdlg.cpp
+++ b/tdecachegrind/tdecachegrind/configdlg.cpp
@@ -224,7 +224,7 @@ bool ConfigDlg::configure(Configuration* c, TraceData* d, TQWidget* p)
void ConfigDlg::objectActivated(const TQString & s)
{
-// qDebug("objectActivated: %s", s.ascii());
+// tqDebug("objectActivated: %s", s.ascii());
if (s.isEmpty()) { _objectCS=0; return; }
@@ -235,7 +235,7 @@ void ConfigDlg::objectActivated(const TQString & s)
if (!cs)
cs = Configuration::color(n);
// else
-// qDebug("found color %s", n.ascii());
+// tqDebug("found color %s", n.ascii());
_objectCS = cs;
@@ -243,7 +243,7 @@ void ConfigDlg::objectActivated(const TQString & s)
objectColor->setColor(cs->color);
/*
- qDebug("Found Color %s, automatic to %s",
+ tqDebug("Found Color %s, automatic to %s",
_objectCS->name.ascii(),
_objectCS->automatic ? "true":"false");
*/
@@ -255,7 +255,7 @@ void ConfigDlg::objectCheckChanged(bool b)
if (_objectCS) {
_objectCS->automatic = b;
/*
- qDebug("Set Color %s automatic to %s",
+ tqDebug("Set Color %s automatic to %s",
_objectCS->name.ascii(),
_objectCS->automatic ? "true":"false");
*/
@@ -269,7 +269,7 @@ void ConfigDlg::objectColorChanged(const TQColor & c)
void ConfigDlg::classActivated(const TQString & s)
{
-// qDebug("classActivated: %s", s.ascii());
+// tqDebug("classActivated: %s", s.ascii());
if (s.isEmpty()) { _classCS=0; return; }
@@ -301,7 +301,7 @@ void ConfigDlg::classColorChanged(const TQColor & c)
void ConfigDlg::fileActivated(const TQString & s)
{
-// qDebug("fileActivated: %s", s.ascii());
+// tqDebug("fileActivated: %s", s.ascii());
if (s.isEmpty()) { _fileCS=0; return; }
diff --git a/tdecachegrind/tdecachegrind/configuration.cpp b/tdecachegrind/tdecachegrind/configuration.cpp
index 02d5c096..d9b902ee 100644
--- a/tdecachegrind/tdecachegrind/configuration.cpp
+++ b/tdecachegrind/tdecachegrind/configuration.cpp
@@ -136,7 +136,7 @@ void Configuration::saveOptions(KConfig* kconfig)
it.currentKey());
colorConfig.writeEntry( TQString("Color%1").arg(count),
(*it)->color);
- //qDebug("Written Color %s (%d)", it.currentKey().ascii(), count);
+ //tqDebug("Written Color %s (%d)", it.currentKey().ascii(), count);
count++;
}
@@ -229,7 +229,7 @@ void Configuration::readOptions(KConfig* kconfig)
c->_colors.insert(n, cs);
- //qDebug("Read Color %s", n.ascii());
+ //tqDebug("Read Color %s", n.ascii());
}
// source options
@@ -349,7 +349,7 @@ TQColor Configuration::functionColor(TraceCost::CostType gt,
Configuration::ColorSetting* Configuration::color(TQString n, bool createNew)
{
-// qDebug("Color for %s", n.latin1());
+// tqDebug("Color for %s", n.latin1());
// predefined ?
Configuration* c = config();
@@ -365,7 +365,7 @@ Configuration::ColorSetting* Configuration::color(TQString n, bool createNew)
str++;
}
- //qDebug("New color for %s: H %d, S %d", n.ascii(), h, 64+s);
+ //tqDebug("New color for %s: H %d, S %d", n.ascii(), h, 64+s);
TQColor color = TQColor(h, 64+s, 192, TQColor::Hsv);
cs = new ColorSetting;
@@ -374,7 +374,7 @@ Configuration::ColorSetting* Configuration::color(TQString n, bool createNew)
cs->color = color;
c->_colors.insert(n, cs);
- //qDebug("new Color %s", n.ascii());
+ //tqDebug("new Color %s", n.ascii());
return cs;
}
diff --git a/tdecachegrind/tdecachegrind/coverage.cpp b/tdecachegrind/tdecachegrind/coverage.cpp
index 86e6f7ff..b9291163 100644
--- a/tdecachegrind/tdecachegrind/coverage.cpp
+++ b/tdecachegrind/tdecachegrind/coverage.cpp
@@ -114,7 +114,7 @@ void Coverage::addCallerCoverage(TraceFunctionList& fList,
if (_active) {
#ifdef DEBUG_COVERAGE
- qDebug("CallerCov: D %d, %s (was active, incl %f, self %f): newP %f", d,
+ tqDebug("CallerCov: D %d, %s (was active, incl %f, self %f): newP %f", d,
_function->prettyName().ascii(), _incl, _self, pBack);
#endif
_inRecursion = true;
@@ -137,7 +137,7 @@ void Coverage::addCallerCoverage(TraceFunctionList& fList,
}
#ifdef DEBUG_COVERAGE
- qDebug("CallerCov: D %d, %s (now active, new incl %f): newP %f",
+ tqDebug("CallerCov: D %d, %s (now active, new incl %f): newP %f",
d, _function->prettyName().ascii(), _incl, pBack);
#endif
}
@@ -215,7 +215,7 @@ void Coverage::addCallingCoverage(TraceFunctionList& fList,
incl = (double) (_function->inclusive()->subCost(_costType));
#ifdef DEBUG_COVERAGE
- qDebug("CngCov:%s - %s (incl %f, self %f): forward %f, back %f",
+ tqDebug("CngCov:%s - %s (incl %f, self %f): forward %f, back %f",
spaces+strlen(spaces)-d,
_function->prettyName().ascii(), _incl, _self, pForward, pBack);
#endif
@@ -225,7 +225,7 @@ void Coverage::addCallingCoverage(TraceFunctionList& fList,
_inRecursion = true;
#ifdef DEBUG_COVERAGE
- qDebug("CngCov:%s < %s: STOP (is active)",
+ tqDebug("CngCov:%s < %s: STOP (is active)",
spaces+strlen(spaces)-d,
_function->prettyName().ascii());
#endif
@@ -252,7 +252,7 @@ void Coverage::addCallingCoverage(TraceFunctionList& fList,
}
#ifdef DEBUG_COVERAGE
- qDebug("CngCov:%s < %s (incl %f, self %f)",
+ tqDebug("CngCov:%s < %s (incl %f, self %f)",
spaces+strlen(spaces)-d,
_function->prettyName().ascii(), _incl, _self);
#endif
@@ -290,7 +290,7 @@ void Coverage::addCallingCoverage(TraceFunctionList& fList,
c->callCount() += pBack * call->callCount();
#ifdef DEBUG_COVERAGE
- qDebug("CngCov:%s > %s: forward %f, back %f, calls %f -> %f, now %f",
+ tqDebug("CngCov:%s > %s: forward %f, back %f, calls %f -> %f, now %f",
spaces+strlen(spaces)-d,
calling->prettyName().ascii(),
pForwardNew, pBackNew,
@@ -305,7 +305,7 @@ void Coverage::addCallingCoverage(TraceFunctionList& fList,
double fFactor = 1.0 / (1.0 - pForwardNew / c->firstPercentage());
double bFactor = 1.0 / (1.0 - pBackNew);
#ifdef DEBUG_COVERAGE
- qDebug("CngCov:%s Recursion - origP %f, actP %f => factor %f, newP %f",
+ tqDebug("CngCov:%s Recursion - origP %f, actP %f => factor %f, newP %f",
spaces+strlen(spaces)-d,
c->firstPercentage(), pForwardNew,
fFactor, pForwardNew * fFactor);
diff --git a/tdecachegrind/tdecachegrind/fixcost.cpp b/tdecachegrind/tdecachegrind/fixcost.cpp
index 41029265..1379d9e2 100644
--- a/tdecachegrind/tdecachegrind/fixcost.cpp
+++ b/tdecachegrind/tdecachegrind/fixcost.cpp
@@ -65,7 +65,7 @@ FixCallCost::FixCallCost(TracePart* part, FixPool* pool,
TracePartCall* partCall,
SubCost callCount, FixString& s)
{
- if (0) qDebug("Got FixCallCost (addr 0x%s, line %d): calls %s",
+ if (0) tqDebug("Got FixCallCost (addr 0x%s, line %d): calls %s",
addr.toString().ascii(), line,
callCount.pretty().ascii());
@@ -110,7 +110,7 @@ void FixCallCost::addTo(TraceCallCost* c)
}
c->addCallCount(_cost[_count]);
- if (0) qDebug("Adding from (addr 0x%s, ln %d): calls %s",
+ if (0) tqDebug("Adding from (addr 0x%s, ln %d): calls %s",
_addr.toString().ascii(), _line,
_cost[_count].pretty().ascii());
}
diff --git a/tdecachegrind/tdecachegrind/functionselection.cpp b/tdecachegrind/tdecachegrind/functionselection.cpp
index c5646dd6..da243fdd 100644
--- a/tdecachegrind/tdecachegrind/functionselection.cpp
+++ b/tdecachegrind/tdecachegrind/functionselection.cpp
@@ -425,7 +425,7 @@ void FunctionSelection::refresh()
}
/*
- qDebug("FunctionSelection::fillLists (%s)",
+ tqDebug("FunctionSelection::fillLists (%s)",
_data->command().ascii());
*/
@@ -496,7 +496,7 @@ void FunctionSelection::refresh()
functionList->clear();
setCostColumnWidths();
- if (0) qDebug("Function %s at %d, Item %p",
+ if (0) tqDebug("Function %s at %d, Item %p",
oldFunction ? oldFunction->name().ascii() : "-",
oldPos, (void*)oldItem);
@@ -712,7 +712,7 @@ void FunctionSelection::functionSelected(TQListViewItem* i)
TraceFunction* f = ((FunctionItem*) i)->function();
if (!f) return;
- //qDebug("FunctionSelection::functionSelected %s", f->name().ascii());
+ //tqDebug("FunctionSelection::functionSelected %s", f->name().ascii());
// Don't emit signal if function was changed programatically
if (!_inSetFunction) {
diff --git a/tdecachegrind/tdecachegrind/instritem.cpp b/tdecachegrind/tdecachegrind/instritem.cpp
index ce5e81bb..6815b00a 100644
--- a/tdecachegrind/tdecachegrind/instritem.cpp
+++ b/tdecachegrind/tdecachegrind/instritem.cpp
@@ -97,7 +97,7 @@ InstrItem::InstrItem(InstrView* iv, TQListViewItem* parent, Addr addr,
_instrJump = 0;
_inside = true;
- //qDebug("InstrItem: (file %d, line %d) Linecall to %s",
+ //tqDebug("InstrItem: (file %d, line %d) Linecall to %s",
// fileno, lineno, _lineCall->call()->called()->prettyName().ascii());
SubCost cc = _instrCall->callCount();
@@ -129,7 +129,7 @@ InstrItem::InstrItem(InstrView* iv, TQListViewItem* parent, Addr addr,
_instrCall = 0;
_instrJump = instrJump;
- //qDebug("SourceItem: (file %d, line %d) Linecall to %s",
+ //tqDebug("SourceItem: (file %d, line %d) Linecall to %s",
// fileno, lineno, _lineCall->call()->called()->prettyName().ascii());
TQString jStr;
diff --git a/tdecachegrind/tdecachegrind/instrview.cpp b/tdecachegrind/tdecachegrind/instrview.cpp
index 3df16793..ed3ad4de 100644
--- a/tdecachegrind/tdecachegrind/instrview.cpp
+++ b/tdecachegrind/tdecachegrind/instrview.cpp
@@ -96,7 +96,7 @@ static bool parseLine(char* buf, Addr& addr,
if (strlen(buf+pos2) > 50)
strcpy(buf+pos2+47, "...");
- if (0) qDebug("For 0x%s: Code '%s', Mnc '%s', Args '%s'",
+ if (0) tqDebug("For 0x%s: Code '%s', Mnc '%s', Args '%s'",
addr.toString().ascii(), buf+pos1, buf+pos2, buf+pos3);
return true;
@@ -504,7 +504,7 @@ void InstrView::updateJumpArray(Addr addr, InstrItem* ii,
Addr lowAddr, highAddr;
int iEnd = -1, iStart = -1;
- if (0) qDebug("updateJumpArray(addr 0x%s, jump to %s)",
+ if (0) tqDebug("updateJumpArray(addr 0x%s, jump to %s)",
addr.toString().ascii(),
ii->instrJump()
? ii->instrJump()->instrTo()->name().ascii() : "?" );
@@ -540,7 +540,7 @@ void InstrView::updateJumpArray(Addr addr, InstrItem* ii,
_arrowLevels++;
_jump.resize(_arrowLevels);
}
- if (0) qDebug(" new start at %d for %s", iStart, ij->name().ascii());
+ if (0) tqDebug(" new start at %d for %s", iStart, ij->name().ascii());
_jump[iStart] = ij;
}
ij=_lowList.next();
@@ -569,12 +569,12 @@ void InstrView::updateJumpArray(Addr addr, InstrItem* ii,
}
if (0 && (iEnd>=0))
- qDebug(" end %d (%s to %s)",
+ tqDebug(" end %d (%s to %s)",
iEnd,
_jump[iEnd]->instrFrom()->name().ascii(),
_jump[iEnd]->instrTo()->name().ascii());
- if (0 && ij) qDebug("next end: %s to %s",
+ if (0 && ij) tqDebug("next end: %s to %s",
ij->instrFrom()->name().ascii(),
ij->instrTo()->name().ascii());
@@ -620,7 +620,7 @@ bool InstrView::fillInstrRange(TraceFunction* function,
"--start-address=0x%1 --stop-address=0x%2 \"%3\"")
.arg(dumpStartAddr.toString()).arg(dumpEndAddr.toString())
.arg(objfile);
- if (1) qDebug("Running '%s'...", popencmd.ascii());
+ if (1) tqDebug("Running '%s'...", popencmd.ascii());
// and run...
FILE* iFILE = popen(TQFile::encodeName( popencmd ), "r");
@@ -669,7 +669,7 @@ bool InstrView::fillInstrRange(TraceFunction* function,
objdumpLineno++;
if (readBytes == BUF_SIZE) {
- qDebug("ERROR: Line %d of '%s' too long\n",
+ tqDebug("ERROR: Line %d of '%s' too long\n",
objdumpLineno, popencmd.ascii());
}
else if ((readBytes>0) && (buf[readBytes-1] == '\n'))
@@ -931,7 +931,7 @@ void InstrView::readViewConfig(KConfig* c,
{
KConfigGroup* g = configGroup(c, prefix, postfix);
- if (0) qDebug("InstrView::readViewConfig");
+ if (0) tqDebug("InstrView::readViewConfig");
_showHexCode = g->readBoolEntry("ShowHexCode", DEFAULT_SHOWHEXCODE);
diff --git a/tdecachegrind/tdecachegrind/listutils.cpp b/tdecachegrind/tdecachegrind/listutils.cpp
index 0053646d..2b1a3232 100644
--- a/tdecachegrind/tdecachegrind/listutils.cpp
+++ b/tdecachegrind/tdecachegrind/listutils.cpp
@@ -150,7 +150,7 @@ TQPixmap partitionPixmap(int w, int h,
if (framed)
p.drawRect(0, 0, w, h);
- //qDebug("Sum %f, dw %d", sum,dw);
+ //tqDebug("Sum %f, dw %d", sum,dw);
TQColor c, cLast;
bool leftDrawn = false;
@@ -161,7 +161,7 @@ TQPixmap partitionPixmap(int w, int h,
val += hist[d];
nextPos = (int)(filled * val/sum);
- //qDebug(" hist[%d] %f, val %f, nextPos %d", d, hist[d], val, nextPos);
+ //tqDebug(" hist[%d] %f, val %f, nextPos %d", d, hist[d], val, nextPos);
diff = nextPos-lastPos;
if (diff==0) { d++; continue; }
diff --git a/tdecachegrind/tdecachegrind/multiview.cpp b/tdecachegrind/tdecachegrind/multiview.cpp
index 4288e2df..53307c5c 100644
--- a/tdecachegrind/tdecachegrind/multiview.cpp
+++ b/tdecachegrind/tdecachegrind/multiview.cpp
@@ -169,7 +169,7 @@ void MultiView::readViewConfig(KConfig* c,
TQString prefix, TQString postfix,
bool withOptions)
{
- if (0) qDebug("%s::readConfig(%s%s)", name(),
+ if (0) tqDebug("%s::readConfig(%s%s)", name(),
prefix.ascii(), postfix.ascii());
TQString active;
diff --git a/tdecachegrind/tdecachegrind/partgraph.cpp b/tdecachegrind/tdecachegrind/partgraph.cpp
index a20f53dc..9b5ecbc7 100644
--- a/tdecachegrind/tdecachegrind/partgraph.cpp
+++ b/tdecachegrind/tdecachegrind/partgraph.cpp
@@ -141,7 +141,7 @@ TQString PartAreaWidget::tipString(TreeMapItem* i) const
TQString tip, itemTip;
int count = 0;
- //qDebug("PartAreaWidget::tipString for '%s'", i->name().ascii());
+ //tqDebug("PartAreaWidget::tipString for '%s'", i->name().ascii());
// first, SubPartItem's
while (i && count<Configuration::maxSymbolCount() && i->rtti() == 3) {
@@ -174,7 +174,7 @@ TQString PartAreaWidget::tipString(TreeMapItem* i) const
tip = itemTip + tip;
}
-// qDebug("PartAreaWidget:: tip %s, itemTip %s",
+// tqDebug("PartAreaWidget:: tip %s, itemTip %s",
// tip.ascii(), itemTip.ascii());
return tip;
@@ -206,7 +206,7 @@ TreeMapItemList* BasePartItem::children()
if (!_data) return _children;
if (!initialized()) {
-// qDebug("Create Parts (%s)", name().ascii());
+// tqDebug("Create Parts (%s)", name().ascii());
PartAreaWidget* w = (PartAreaWidget*) widget();
TracePart* part;
@@ -318,7 +318,7 @@ double PartItem::sum() const
PartAreaWidget* w = (PartAreaWidget*)widget();
if (w->visualisation() == PartAreaWidget::Inclusive) {
double s = value();
- //qDebug("PartItem::sum [part %s]: %d", _p->name().ascii(), s);
+ //tqDebug("PartItem::sum [part %s]: %d", _p->name().ascii(), s);
return s;
}
return 0.0;
@@ -329,7 +329,7 @@ TreeMapItemList* PartItem::children()
if (initialized()) return _children;
TraceCost* c;
-// qDebug("Create Part subitems (%s)", name().ascii());
+// tqDebug("Create Part subitems (%s)", name().ascii());
PartAreaWidget* w = (PartAreaWidget*)widget();
if (w->visualisation() == PartAreaWidget::Inclusive) {
@@ -485,7 +485,7 @@ double SubPartItem::sum() const
PartAreaWidget* w = (PartAreaWidget*)widget();
if (w->visualisation() == PartAreaWidget::Inclusive) {
double s = value();
- //qDebug("SubPartItem::sum [Cost %s]: %d", _cost->name().ascii(), s);
+ //tqDebug("SubPartItem::sum [Cost %s]: %d", _cost->name().ascii(), s);
return s;
}
return 0.0;
@@ -494,7 +494,7 @@ double SubPartItem::sum() const
TreeMapItemList* SubPartItem::children()
{
if (!initialized()) {
-// qDebug("Create Part sub-subitems (%s)", name().ascii());
+// tqDebug("Create Part sub-subitems (%s)", name().ascii());
PartAreaWidget* w = (PartAreaWidget*)widget();
diff --git a/tdecachegrind/tdecachegrind/partselection.cpp b/tdecachegrind/tdecachegrind/partselection.cpp
index 703dd75f..8acef22b 100644
--- a/tdecachegrind/tdecachegrind/partselection.cpp
+++ b/tdecachegrind/tdecachegrind/partselection.cpp
@@ -222,7 +222,7 @@ void PartSelection::selectionChanged()
}
if (something_changed) {
- //qDebug("PartSelection: Something changed.");
+ //tqDebug("PartSelection: Something changed.");
emit activePartsChanged(pList);
}
}
@@ -242,7 +242,7 @@ void PartSelection::activePartsChangedSlot(const TracePartList& list)
bool active = (list.containsRef(part)>0);
if (!active && partAreaWidget->isSelected(i)) {
#if 0
- qDebug("PartSelection::partsChangedSlot: Part %s changed to unselected.",
+ tqDebug("PartSelection::partsChangedSlot: Part %s changed to unselected.",
((PartItem*)i)->part()->shortName().ascii());
#endif
@@ -254,7 +254,7 @@ void PartSelection::activePartsChangedSlot(const TracePartList& list)
bool active = (list.containsRef(part)>0);
if (active && !partAreaWidget->isSelected(i)) {
#if 0
- qDebug("PartSelection::partsChangedSlot: Part %s changed to selected.",
+ tqDebug("PartSelection::partsChangedSlot: Part %s changed to selected.",
((PartItem*)i)->part()->shortName().ascii());
#endif
partAreaWidget->setSelected(i, true);
diff --git a/tdecachegrind/tdecachegrind/pool.cpp b/tdecachegrind/tdecachegrind/pool.cpp
index d4a89a72..47a71f90 100644
--- a/tdecachegrind/tdecachegrind/pool.cpp
+++ b/tdecachegrind/tdecachegrind/pool.cpp
@@ -50,7 +50,7 @@ FixPool::~FixPool()
chunk = next;
}
- if (0) qDebug("~FixPool: Had %d objects with total size %d\n",
+ if (0) tqDebug("~FixPool: Had %d objects with total size %d\n",
_count, _size);
}
@@ -162,7 +162,7 @@ void DynPool::free(char** ptr)
if (!ptr ||
!*ptr ||
(*(char**)(*ptr - 4)) != (char*)ptr )
- qFatal("Chaining error in DynPool::free");
+ tqFatal("Chaining error in DynPool::free");
(*(char**)(*ptr - 4)) = 0;
*ptr = 0;
@@ -178,7 +178,7 @@ bool DynPool::ensureSpace(unsigned int size)
unsigned int freed = 0, len;
char **p, **pnext, **pnew;
- qDebug("DynPool::ensureSpace size: %d => %d, used %d. %p => %p",
+ tqDebug("DynPool::ensureSpace size: %d => %d, used %d. %p => %p",
_size, newsize, _used, _data, newdata);
pnew = (char**) newdata;
@@ -187,7 +187,7 @@ bool DynPool::ensureSpace(unsigned int size)
pnext = (char**) *p;
len = (char*)pnext - (char*)p;
- if (0) qDebug(" [%8p] Len %d (ptr %p), freed %d (=> %p)",
+ if (0) tqDebug(" [%8p] Len %d (ptr %p), freed %d (=> %p)",
p, len, p[1], freed, pnew);
/* skip freed space ? */
@@ -211,7 +211,7 @@ bool DynPool::ensureSpace(unsigned int size)
// update pointer to object
char** ptr = (char**) p[1];
if (*ptr != ((char*)p)+8)
- qFatal("Chaining error in DynPool::ensureSpace");
+ tqFatal("Chaining error in DynPool::ensureSpace");
*ptr = ((char*)pnew)+8;
pnew = (char**) pnew[0];
@@ -220,7 +220,7 @@ bool DynPool::ensureSpace(unsigned int size)
pnew[0] = 0;
unsigned int newused = (char*)pnew - (char*)newdata;
- qDebug("DynPool::ensureSpace size: %d => %d, used %d => %d (%d freed)",
+ tqDebug("DynPool::ensureSpace size: %d => %d, used %d => %d (%d freed)",
_size, newsize, _used, newused, freed);
::free(_data);
diff --git a/tdecachegrind/tdecachegrind/sourceitem.cpp b/tdecachegrind/tdecachegrind/sourceitem.cpp
index 305b8244..101d0087 100644
--- a/tdecachegrind/tdecachegrind/sourceitem.cpp
+++ b/tdecachegrind/tdecachegrind/sourceitem.cpp
@@ -77,7 +77,7 @@ SourceItem::SourceItem(SourceView* sv, TQListViewItem* parent,
_lineCall = lineCall;
_lineJump = 0;
- //qDebug("SourceItem: (file %d, line %d) Linecall to %s",
+ //tqDebug("SourceItem: (file %d, line %d) Linecall to %s",
// fileno, lineno, _lineCall->call()->called()->prettyName().ascii());
SubCost cc = _lineCall->callCount();
@@ -111,7 +111,7 @@ SourceItem::SourceItem(SourceView* sv, TQListViewItem* parent,
_lineCall = 0;
_lineJump = lineJump;
- //qDebug("SourceItem: (file %d, line %d) Linecall to %s",
+ //tqDebug("SourceItem: (file %d, line %d) Linecall to %s",
// fileno, lineno, _lineCall->call()->called()->prettyName().ascii());
TQString to;
diff --git a/tdecachegrind/tdecachegrind/sourceview.cpp b/tdecachegrind/tdecachegrind/sourceview.cpp
index dde291ea..52de5209 100644
--- a/tdecachegrind/tdecachegrind/sourceview.cpp
+++ b/tdecachegrind/tdecachegrind/sourceview.cpp
@@ -343,7 +343,7 @@ void SourceView::refresh()
static bool checkFileExistance(TQString& dir, const TQString& name)
{
// we leave this in...
- qDebug("Checking %s/%s", dir.ascii(), name.ascii());
+ tqDebug("Checking %s/%s", dir.ascii(), name.ascii());
if (TQFile::exists(dir + "/" + name)) return true;
@@ -370,7 +370,7 @@ void SourceView::updateJumpArray(uint lineno, SourceItem* si,
uint lowLineno, highLineno;
int iEnd = -1, iStart = -1;
- if (0) qDebug("updateJumpArray(line %d, jump to %s)",
+ if (0) tqDebug("updateJumpArray(line %d, jump to %s)",
lineno,
si->lineJump()
? si->lineJump()->lineTo()->name().ascii() : "?" );
@@ -408,7 +408,7 @@ void SourceView::updateJumpArray(uint lineno, SourceItem* si,
if (asize > _arrowLevels) _arrowLevels = asize;
}
- if (0) qDebug(" start %d (%s to %s)",
+ if (0) tqDebug(" start %d (%s to %s)",
iStart,
lj->lineFrom()->name().ascii(),
lj->lineTo()->name().ascii());
@@ -434,18 +434,18 @@ void SourceView::updateJumpArray(uint lineno, SourceItem* si,
for(iEnd=0;iEnd< (int)_jump.size();iEnd++)
if (_jump[iEnd] == lj) break;
if (iEnd == (int)_jump.size()) {
- qDebug("LineView: no jump start for end at %x ?", highLineno);
+ tqDebug("LineView: no jump start for end at %x ?", highLineno);
iEnd = -1;
}
lj=_highList.next();
if (0 && (iEnd>=0))
- qDebug(" end %d (%s to %s)",
+ tqDebug(" end %d (%s to %s)",
iEnd,
_jump[iEnd]->lineFrom()->name().ascii(),
_jump[iEnd]->lineTo()->name().ascii());
- if (0 && lj) qDebug("next end: %s to %s",
+ if (0 && lj) tqDebug("next end: %s to %s",
lj->lineFrom()->name().ascii(),
lj->lineTo()->name().ascii());
@@ -467,7 +467,7 @@ void SourceView::fillSourceFile(TraceFunctionSource* sf, int fileno)
{
if (!sf) return;
- if (0) qDebug("Selected Item %s",
+ if (0) tqDebug("Selected Item %s",
_selectedItem ? _selectedItem->name().ascii() : "(none)");
TraceLineMap::Iterator lineIt, lineItEnd;
@@ -646,7 +646,7 @@ void SourceView::fillSourceFile(TraceFunctionSource* sf, int fileno)
}
if (readBytes >= (int) sizeof( buf )) {
- qDebug("%s:%d Line too long\n",
+ tqDebug("%s:%d Line too long\n",
sf->file()->name().ascii(), fileLineno);
}
else if ((readBytes>0) && (buf[readBytes-1] == '\n'))
diff --git a/tdecachegrind/tdecachegrind/stackbrowser.cpp b/tdecachegrind/tdecachegrind/stackbrowser.cpp
index 78095eb2..2257e586 100644
--- a/tdecachegrind/tdecachegrind/stackbrowser.cpp
+++ b/tdecachegrind/tdecachegrind/stackbrowser.cpp
@@ -283,7 +283,7 @@ HistoryItem::HistoryItem(Stack* stack, TraceFunction* function)
_next = 0;
/*
- qDebug("New Stack History Item (sRef %d): %s\n %s",
+ tqDebug("New Stack History Item (sRef %d): %s\n %s",
_stack->refCount(), _function->name().ascii(),
_stack->toString().ascii());
*/
@@ -291,7 +291,7 @@ HistoryItem::HistoryItem(Stack* stack, TraceFunction* function)
HistoryItem::~HistoryItem()
{
- if (0) qDebug("Deleting Stack History Item (sRef %d): %s",
+ if (0) tqDebug("Deleting Stack History Item (sRef %d): %s",
_stack->refCount(),
_function->name().ascii());
@@ -349,7 +349,7 @@ HistoryItem* StackBrowser::select(TraceFunction* f)
_current->setLast(item);
}
- // qDebug("Selected %s in StackBrowser", f->name().ascii());
+ // tqDebug("Selected %s in StackBrowser", f->name().ascii());
return _current;
}
diff --git a/tdecachegrind/tdecachegrind/tabview.cpp b/tdecachegrind/tdecachegrind/tabview.cpp
index 0049d1e2..a194ddb4 100644
--- a/tdecachegrind/tdecachegrind/tabview.cpp
+++ b/tdecachegrind/tdecachegrind/tabview.cpp
@@ -122,7 +122,7 @@ void Splitter::moveEvent(TQMoveEvent* e)
{
TQSplitter::moveEvent(e);
- if (0) qDebug("Splitter %s: Move", name());
+ if (0) tqDebug("Splitter %s: Move", name());
checkVisiblity();
}
@@ -158,7 +158,7 @@ void TabWidget::checkVisibility()
bool hasVisibleRect = (visibleRect().width()>1) &&
(visibleRect().height()>1);
- if (0) qDebug("TabWidget %s: VR (%dx%d) HasVisibleRect: %s => %s",
+ if (0) tqDebug("TabWidget %s: VR (%dx%d) HasVisibleRect: %s => %s",
name(),
visibleRect().width(), visibleRect().height(),
_hasVisibleRect ? "Yes":"No",
@@ -173,7 +173,7 @@ void TabWidget::checkVisibility()
void TabWidget::resizeEvent(TQResizeEvent *e)
{
TQTabWidget::resizeEvent(e);
- if (0) qDebug("TabWidget %s:\n Resize from (%d/%d) to (%d/%d)",
+ if (0) tqDebug("TabWidget %s:\n Resize from (%d/%d) to (%d/%d)",
name(),
e->oldSize().width(), e->oldSize().height(),
e->size().width(), e->size().height());
@@ -184,7 +184,7 @@ void TabWidget::showEvent(TQShowEvent* e)
{
TQTabWidget::showEvent(e);
- if (0) qDebug("TabWidget %s: Show", name());
+ if (0) tqDebug("TabWidget %s: Show", name());
checkVisibility();
}
@@ -192,7 +192,7 @@ void TabWidget::hideEvent(TQHideEvent* e)
{
TQTabWidget::hideEvent(e);
- if (0) qDebug("TabWidget %s: Hide", name());
+ if (0) tqDebug("TabWidget %s: Hide", name());
checkVisibility();
}
@@ -200,7 +200,7 @@ void TabWidget::moveEvent(TQMoveEvent* e)
{
TQTabWidget::moveEvent(e);
- if (0) qDebug("TabWidget %s: Move", name());
+ if (0) tqDebug("TabWidget %s: Move", name());
checkVisibility();
}
@@ -412,7 +412,7 @@ void TabView::updateVisibility()
}
}
- if (0) qDebug("TabView::updateVisiblity t %d, b %d, l %d, r %d",
+ if (0) tqDebug("TabView::updateVisiblity t %d, b %d, l %d, r %d",
t, b, l, r);
TQValueList<int> s;
@@ -618,7 +618,7 @@ void TabView::setActive(bool a)
nameLabel_font.setBold(a);
_nameLabel->setFont( nameLabel_font );
- if (0) qDebug("%s::setActive(%s)", name(), a ? "true":"false");
+ if (0) tqDebug("%s::setActive(%s)", name(), a ? "true":"false");
if (a) emit activated(this);
}
@@ -677,7 +677,7 @@ void TabView::tabChanged(TQWidget* w)
void TabView::visibleRectChangedSlot(TabWidget* tw)
{
- if (0) qDebug("%s: %svisible !",
+ if (0) tqDebug("%s: %svisible !",
tw->name(), tw->hasVisibleRect() ? "":"un");
if (tw->hasVisibleRect()) doUpdate(0);
@@ -693,7 +693,7 @@ void TabView::resizeEvent(TQResizeEvent* e)
updateView();
}
- if (0) qDebug("TabView::Resize from (%d/%d) to (%d/%d)",
+ if (0) tqDebug("TabView::Resize from (%d/%d) to (%d/%d)",
e->oldSize().width(), e->oldSize().height(),
e->size().width(), e->size().height());
}
@@ -713,7 +713,7 @@ void TabView::readViewConfig(KConfig* c,
TQString prefix, TQString postfix,
bool withOptions)
{
- if (0) qDebug("%s::readConfig(%s%s)", name(),
+ if (0) tqDebug("%s::readConfig(%s%s)", name(),
prefix.ascii(), postfix.ascii());
KConfigGroup* g = configGroup(c, prefix, postfix);
diff --git a/tdecachegrind/tdecachegrind/toplevel.cpp b/tdecachegrind/tdecachegrind/toplevel.cpp
index 5a2e1deb..a00002d9 100644
--- a/tdecachegrind/tdecachegrind/toplevel.cpp
+++ b/tdecachegrind/tdecachegrind/toplevel.cpp
@@ -390,7 +390,7 @@ void TopLevel::createDocks()
// Restore QT Dock positions...
KConfigGroup dockConfig(KGlobal::config(), TQCString("Docks"));
TQString str = dockConfig.readEntry("Position", TQString());
- if (0) qDebug("Docks/Position: '%s'", str.ascii());
+ if (0) tqDebug("Docks/Position: '%s'", str.ascii());
if (str.isEmpty()) {
// default positions
addDockWindow(_partDock, DockLeft);
@@ -1362,7 +1362,7 @@ bool TopLevel::setFunction(TraceFunction* f)
}
#if TRACE_UPDATES
- qDebug("TopLevel::setFunction(%s), lastSender %s",
+ tqDebug("TopLevel::setFunction(%s), lastSender %s",
f ? f->prettyName().ascii() : "0",
_lastSender ? _lastSender->name() :"0" );
#endif
@@ -1414,7 +1414,7 @@ void TopLevel::setGroupTypeDelayed()
void TopLevel::setGroupDelayed(TraceCostItem* g)
{
#if TRACE_UPDATES
- qDebug("TopLevel::setGroupDelayed(%s), sender %s",
+ tqDebug("TopLevel::setGroupDelayed(%s), sender %s",
g ? g->prettyName().ascii() : "0",
_lastSender ? _lastSender->name() :"0" );
#endif
@@ -1474,7 +1474,7 @@ void TopLevel::setTraceItemDelayed(TraceItem* i)
kdDebug() << "Selected " << (i ? i->prettyName() : "(none)") << endl;
#if TRACE_UPDATES
- qDebug("TopLevel::setTraceItemDelayed(%s), sender %s",
+ tqDebug("TopLevel::setTraceItemDelayed(%s), sender %s",
i ? i->prettyName().ascii() : "0",
_lastSender ? _lastSender->name() :"0" );
#endif
@@ -2045,7 +2045,7 @@ void TopLevel::splitDirSlot()
// this is called after a config change in the dialog
void TopLevel::configChanged()
{
- //qDebug("TopLevel::configChanged");
+ //tqDebug("TopLevel::configChanged");
//_showPercentage->setChecked(Configuration::showPercentage());
// invalidate found/cached dirs of source files
@@ -2078,7 +2078,7 @@ void TopLevel::activePartsChangedSlot(const TracePartList& list)
if (!_data) return;
if (!_data->activateParts(list)) {
-// qDebug("TopLevel::activePartsChangedSlot: No Change!");
+// tqDebug("TopLevel::activePartsChangedSlot: No Change!");
return;
}
_activeParts = list;
@@ -2149,7 +2149,7 @@ void TopLevel::partsUnhideAllSlot()
void TopLevel::forceTrace()
{
-// qDebug("forceTrace");
+// tqDebug("forceTrace");
// Needs Callgrind now...
TQFile cmd("callgrind.cmd");
@@ -2169,7 +2169,7 @@ void TopLevel::forceTrace()
void TopLevel::forceTraceReload()
{
-// qDebug("forceTraceReload");
+// tqDebug("forceTraceReload");
TQFile cmd("callgrind.cmd");
if (cmd.exists()) {
@@ -2210,7 +2210,7 @@ void TopLevel::forwardAboutToShow()
if ((int)name.length()>Configuration::maxSymbolLength())
name = name.left(Configuration::maxSymbolLength()) + "...";
- //qDebug("forward: Adding %s", name.ascii());
+ //tqDebug("forward: Adding %s", name.ascii());
popup->insertItem(name, count);
hi = hi->next();
count++;
@@ -2246,7 +2246,7 @@ void TopLevel::backAboutToShow()
if ((int)name.length()>Configuration::maxSymbolLength())
name = name.left(Configuration::maxSymbolLength()) + "...";
- //qDebug("back: Adding %s", name.ascii());
+ //tqDebug("back: Adding %s", name.ascii());
popup->insertItem(name, count);
hi = hi->last();
count++;
@@ -2287,7 +2287,7 @@ void TopLevel::upAboutToShow()
void TopLevel::forwardActivated(int id)
{
- //qDebug("forwardActivated: %d", id);
+ //tqDebug("forwardActivated: %d", id);
StackBrowser* b = _stackSelection ? _stackSelection->browser() : 0;
if (!b) return;
@@ -2301,7 +2301,7 @@ void TopLevel::forwardActivated(int id)
void TopLevel::backActivated(int id)
{
- //qDebug("backActivated: %d", id);
+ //tqDebug("backActivated: %d", id);
StackBrowser* b = _stackSelection ? _stackSelection->browser() : 0;
if (!b) return;
@@ -2315,7 +2315,7 @@ void TopLevel::backActivated(int id)
void TopLevel::upActivated(int id)
{
- //qDebug("upActivated: %d", id);
+ //tqDebug("upActivated: %d", id);
StackBrowser* b = _stackSelection ? _stackSelection->browser() : 0;
HistoryItem* hi = b ? b->current() : 0;
@@ -2328,7 +2328,7 @@ void TopLevel::upActivated(int id)
id--;
}
- //qDebug("upActivated: %s", f ? f->prettyName().ascii() : "??" );
+ //tqDebug("upActivated: %s", f ? f->prettyName().ascii() : "??" );
if (f)
setFunction(f);
diff --git a/tdecachegrind/tdecachegrind/tracedata.cpp b/tdecachegrind/tdecachegrind/tracedata.cpp
index f129c2e5..70a8bd05 100644
--- a/tdecachegrind/tdecachegrind/tracedata.cpp
+++ b/tdecachegrind/tdecachegrind/tracedata.cpp
@@ -440,7 +440,7 @@ void TraceCost::addCost(TraceSubMapping* sm, const char* s)
#if TRACE_DEBUG
_dirty = false; // don't recurse !
- qDebug("%s\n now %s", fullName().ascii(),
+ tqDebug("%s\n now %s", fullName().ascii(),
TraceCost::costString(0).ascii());
_dirty = true; // because of invalidate()
#endif
@@ -492,7 +492,7 @@ void TraceCost::addCost(TraceSubMapping* sm, FixString & s)
#if TRACE_DEBUG
_dirty = false; // don't recurse !
- qDebug("%s\n now %s", fullName().ascii(),
+ tqDebug("%s\n now %s", fullName().ascii(),
TraceCost::costString(0).ascii());
_dirty = true; // because of invalidate()
#endif
@@ -548,7 +548,7 @@ void TraceCost::maxCost(TraceSubMapping* sm, FixString & s)
#if TRACE_DEBUG
_dirty = false; // don't recurse !
- qDebug("%s\n now %s", fullName().ascii(),
+ tqDebug("%s\n now %s", fullName().ascii(),
TraceCost::costString(0).ascii());
_dirty = true; // because of invalidate()
#endif
@@ -582,7 +582,7 @@ void TraceCost::addCost(TraceCost* item)
#if TRACE_DEBUG
_dirty = false; // don't recurse !
- qDebug("%s added cost item\n %s\n now %s",
+ tqDebug("%s added cost item\n %s\n now %s",
fullName().ascii(), item->fullName().ascii(),
TraceCost::costString(0).ascii());
_dirty = true; // because of invalidate()
@@ -616,7 +616,7 @@ void TraceCost::maxCost(TraceCost* item)
#if TRACE_DEBUG
_dirty = false; // don't recurse !
- qDebug("%s added cost item\n %s\n now %s",
+ tqDebug("%s added cost item\n %s\n now %s",
fullName().ascii(), item->fullName().ascii(),
TraceCost::costString(0).ascii());
_dirty = true; // because of invalidate()
@@ -834,12 +834,12 @@ bool TraceCostType::parseFormula()
{
if (_parsed) return true;
if (_inParsing) {
- qDebug("TraceCostType::parseFormula: Recursion detected.");
+ tqDebug("TraceCostType::parseFormula: Recursion detected.");
return false;
}
if (!_mapping) {
- qDebug("TraceCostType::parseFormula: No mapping set!");
+ tqDebug("TraceCostType::parseFormula: No mapping set!");
return false;
}
@@ -861,13 +861,13 @@ bool TraceCostType::parseFormula()
pos += rx.matchedLength();
if (rx.cap(0).isEmpty()) break;
- //qDebug("parseFormula: matched '%s','%s','%s'",
+ //tqDebug("parseFormula: matched '%s','%s','%s'",
// rx.cap(1).ascii(), rx.cap(2).ascii(), rx.cap(3).ascii());
costName = rx.cap(3);
costType = _mapping->type(costName);
if (!costType) {
- // qDebug("Cost type '%s': In formula cost '%s' unknown.",
+ // tqDebug("Cost type '%s': In formula cost '%s' unknown.",
// _name.ascii(), costName.ascii());
_inParsing = false;
@@ -1146,7 +1146,7 @@ int TraceCostMapping::add(TraceCostType* ct)
if (ct->isReal()) {
if (_realCount >= TraceCost::MaxRealIndex) {
- qDebug("WARNING: Maximum for real cost types reached (on adding '%s')",
+ tqDebug("WARNING: Maximum for real cost types reached (on adding '%s')",
ct->name().ascii());
return TraceCost::InvalidIndex;
}
@@ -1159,7 +1159,7 @@ int TraceCostMapping::add(TraceCostType* ct)
}
if (_virtualCount >= TraceCost::MaxRealIndex) {
- qDebug("WARNING: Maximum for virtual cost types reached (on adding '%s')",
+ tqDebug("WARNING: Maximum for virtual cost types reached (on adding '%s')",
ct->name().ascii());
return TraceCost::InvalidIndex;
}
@@ -1444,7 +1444,7 @@ void TraceListCost::addDep(TraceCost* dep)
{
#if TRACE_ASSERTIONS
if (_deps.findRef(dep)>=0) {
- qDebug("addDep: %s already in list!",
+ tqDebug("addDep: %s already in list!",
dep->fullName().ascii());
return;
}
@@ -1455,7 +1455,7 @@ void TraceListCost::addDep(TraceCost* dep)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(), dep->fullName().ascii(),
_deps.count());
#endif
@@ -1481,7 +1481,7 @@ void TraceListCost::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("update %s (count %d)",
+ tqDebug("update %s (count %d)",
fullName().ascii(), _deps.count());
#endif
@@ -1497,7 +1497,7 @@ void TraceListCost::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
}
@@ -1518,7 +1518,7 @@ void TraceJumpListCost::addDep(TraceJumpCost* dep)
{
#if TRACE_ASSERTIONS
if (_deps.findRef(dep)>=0) {
- qDebug("addDep: %s already in list!",
+ tqDebug("addDep: %s already in list!",
dep->fullName().ascii());
return;
}
@@ -1529,7 +1529,7 @@ void TraceJumpListCost::addDep(TraceJumpCost* dep)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(), dep->fullName().ascii(),
_deps.count());
#endif
@@ -1555,7 +1555,7 @@ void TraceJumpListCost::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("update %s (count %d)",
+ tqDebug("update %s (count %d)",
fullName().ascii(), _deps.count());
#endif
@@ -1571,7 +1571,7 @@ void TraceJumpListCost::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
}
@@ -1592,7 +1592,7 @@ void TraceCallListCost::addDep(TraceCallCost* dep)
{
#if TRACE_ASSERTIONS
if (_deps.findRef(dep)>=0) {
- qDebug("addDep: %s already in list!",
+ tqDebug("addDep: %s already in list!",
dep->fullName().ascii());
return;
}
@@ -1603,7 +1603,7 @@ void TraceCallListCost::addDep(TraceCallCost* dep)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(), dep->fullName().ascii(),
_deps.count());
#endif
@@ -1629,7 +1629,7 @@ void TraceCallListCost::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("update %s (count %d)",
+ tqDebug("update %s (count %d)",
fullName().ascii(), _deps.count());
#endif
@@ -1650,7 +1650,7 @@ void TraceCallListCost::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
}
@@ -1671,7 +1671,7 @@ void TraceInclusiveListCost::addDep(TraceInclusiveCost* dep)
{
#if TRACE_ASSERTIONS
if (_deps.findRef(dep)>=0) {
- qDebug("addDep: %s already in list!",
+ tqDebug("addDep: %s already in list!",
dep->fullName().ascii());
return;
}
@@ -1682,7 +1682,7 @@ void TraceInclusiveListCost::addDep(TraceInclusiveCost* dep)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(), dep->fullName().ascii(),
_deps.count());
#endif
@@ -1707,7 +1707,7 @@ void TraceInclusiveListCost::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("update %s (count %d)",
+ tqDebug("update %s (count %d)",
fullName().ascii(), _deps.count());
#endif
@@ -1724,7 +1724,7 @@ void TraceInclusiveListCost::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
}
@@ -1835,7 +1835,7 @@ void TracePartCall::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("update %s", fullName().ascii());
+ tqDebug("update %s", fullName().ascii());
#endif
/* Without dependent cost items, assume fixed costs,
@@ -1850,7 +1850,7 @@ void TracePartCall::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
#endif // USE_FIXCOST
@@ -1909,7 +1909,7 @@ void TracePartFunction::addPartInstr(TracePartInstr* ref)
{
#if TRACE_ASSERTIONS
if (_partInstr.findRef(ref)>=0) {
- qDebug("TracePartFunction::addPartInstr: %s already in list!",
+ tqDebug("TracePartFunction::addPartInstr: %s already in list!",
ref->name().ascii());
return;
}
@@ -1919,7 +1919,7 @@ void TracePartFunction::addPartInstr(TracePartInstr* ref)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(), ref->fullName().ascii(),
_partInstr.count());
#endif
@@ -1930,7 +1930,7 @@ void TracePartFunction::addPartLine(TracePartLine* ref)
{
#if TRACE_ASSERTIONS
if (_partLines.findRef(ref)>=0) {
- qDebug("TracePartFunction::addPartLine: %s already in list!",
+ tqDebug("TracePartFunction::addPartLine: %s already in list!",
ref->name().ascii());
return;
}
@@ -1940,7 +1940,7 @@ void TracePartFunction::addPartLine(TracePartLine* ref)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(), ref->fullName().ascii(),
_partLines.count());
#endif
@@ -1951,7 +1951,7 @@ void TracePartFunction::addPartCaller(TracePartCall* ref)
{
#if TRACE_ASSERTIONS
if (_partCallers.findRef(ref)>=0) {
- qDebug("TracePartFunction::addPartCaller: %s already in list!",
+ tqDebug("TracePartFunction::addPartCaller: %s already in list!",
ref->name().ascii());
return;
}
@@ -1961,7 +1961,7 @@ void TracePartFunction::addPartCaller(TracePartCall* ref)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added Caller\n %s (now %d)",
+ tqDebug("%s added Caller\n %s (now %d)",
fullName().ascii(), ref->fullName().ascii(),
_partCallers.count());
#endif
@@ -1972,7 +1972,7 @@ void TracePartFunction::addPartCalling(TracePartCall* ref)
{
#if TRACE_ASSERTIONS
if (_partCallings.findRef(ref)>=0) {
- qDebug("TracePartFunction::addPartCalling: %s already in list!",
+ tqDebug("TracePartFunction::addPartCalling: %s already in list!",
ref->name().ascii());
return;
}
@@ -1982,7 +1982,7 @@ void TracePartFunction::addPartCalling(TracePartCall* ref)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added Calling\n %s (now %d)",
+ tqDebug("%s added Calling\n %s (now %d)",
fullName().ascii(), ref->fullName().ascii(),
_partCallings.count());
#endif
@@ -2023,7 +2023,7 @@ void TracePartFunction::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("TracePartFunction::update %s (Callers %d, Callings %d, lines %d)",
+ tqDebug("TracePartFunction::update %s (Callers %d, Callings %d, lines %d)",
name().ascii(), _partCallers.count(), _partCallings.count(),
_partLines.count());
#endif
@@ -2116,7 +2116,7 @@ void TracePartFunction::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
}
@@ -2222,11 +2222,11 @@ void TraceInstrJump::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug("updated %s", fullName().ascii());
+ tqDebug("updated %s", fullName().ascii());
#endif
#if TRACE_DEBUG
- qDebug(" > %s", costString(0).ascii());
+ tqDebug(" > %s", costString(0).ascii());
#endif
}
@@ -2481,7 +2481,7 @@ TraceInstrCall* TraceCall::instrCall(TraceInstr* i)
invalidate();
#if TRACE_DEBUG
- qDebug("Created %s [TraceCall::instrCall]", icall->fullName().ascii());
+ tqDebug("Created %s [TraceCall::instrCall]", icall->fullName().ascii());
#endif
i->addInstrCall(icall);
}
@@ -2503,7 +2503,7 @@ TraceLineCall* TraceCall::lineCall(TraceLine* l)
invalidate();
#if TRACE_DEBUG
- qDebug("Created %s [TraceCall::lineCall]", lcall->fullName().ascii());
+ tqDebug("Created %s [TraceCall::lineCall]", lcall->fullName().ascii());
#endif
l->addLineCall(lcall);
}
@@ -2686,7 +2686,7 @@ void TraceInstr::addInstrCall(TraceInstrCall* instrCall)
if (_instrCalls.findRef(instrCall)>=0) return;
if (instrCall->instr() != this) {
- qDebug("Can't add instruction call to another instruction!");
+ tqDebug("Can't add instruction call to another instruction!");
return;
}
#endif
@@ -2695,7 +2695,7 @@ void TraceInstr::addInstrCall(TraceInstrCall* instrCall)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(),
instrCall->fullName().ascii(), _instrCalls.count());
#endif
@@ -2786,7 +2786,7 @@ void TraceLine::addLineCall(TraceLineCall* lineCall)
if (_lineCalls.findRef(lineCall)>=0) return;
if (lineCall->line() != this) {
- qDebug("Can't add line call to another line!");
+ tqDebug("Can't add line call to another line!");
return;
}
#endif
@@ -2800,7 +2800,7 @@ void TraceLine::addLineCall(TraceLineCall* lineCall)
(caller->name() != function->name()) ||
(caller->object() != function->object())) {
- qDebug("ERROR: Adding line call, line %d\n of %s to\n %s ?!",
+ tqDebug("ERROR: Adding line call, line %d\n of %s to\n %s ?!",
lineCall->line()->lineno(),
caller->info().ascii(), function->info().ascii());
}
@@ -2810,7 +2810,7 @@ void TraceLine::addLineCall(TraceLineCall* lineCall)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(),
lineCall->fullName().ascii(), _lineCalls.count());
#endif
@@ -2921,7 +2921,7 @@ TraceLine* TraceFunctionSource::line(uint lineno, bool createNew)
l.setLineno(lineno);
#if TRACE_DEBUG
- qDebug("Created %s [TraceFunctionSource::line]",
+ tqDebug("Created %s [TraceFunctionSource::line]",
l.fullName().ascii());
#endif
}
@@ -2980,7 +2980,7 @@ TraceLineMap* TraceFunctionSource::lineMap()
TracePartFunction* pf = (TracePartFunction*) pfList.first();
for(; pf; pf = (TracePartFunction*) pfList.next()) {
- if (0) qDebug("PartFunction %s:%d",
+ if (0) tqDebug("PartFunction %s:%d",
pf->function()->name().ascii(), pf->part()->partNumber());
FixCost* fc = pf->firstFixCost();
@@ -3038,7 +3038,7 @@ TraceLineMap* TraceFunctionSource::lineMap()
TracePartCall* pc = pcList.first();
for(; pc; pc = pcList.next()) {
- if (0) qDebug("PartCall %s:%d",
+ if (0) tqDebug("PartCall %s:%d",
pc->call()->name().ascii(),
pf->part()->partNumber());
@@ -3062,7 +3062,7 @@ TraceLineMap* TraceFunctionSource::lineMap()
plc = lc->partLineCall(fcc->part(), pc);
fcc->addTo(plc);
- if (0) qDebug("Add FixCallCost %s:%d/0x%s, CallCount %s",
+ if (0) tqDebug("Add FixCallCost %s:%d/0x%s, CallCount %s",
fcc->functionSource()->file()->shortName().ascii(),
fcc->line(), fcc->addr().toString().ascii(),
fcc->callCount().pretty().ascii());
@@ -3395,7 +3395,7 @@ TraceInstr* TraceFunction::instr(Addr addr, bool createNew)
i.setFunction(this);
#if TRACE_DEBUG
- qDebug("Created %s [TraceFunction::instr]",
+ tqDebug("Created %s [TraceFunction::instr]",
i.fullName().ascii());
#endif
}
@@ -3406,7 +3406,7 @@ void TraceFunction::addCaller(TraceCall* caller)
{
#if TRACE_ASSERTIONS
if (caller->called() != this) {
- qDebug("Can't add call to another line!\n");
+ tqDebug("Can't add call to another line!\n");
return;
}
@@ -3417,7 +3417,7 @@ void TraceFunction::addCaller(TraceCall* caller)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added Caller\n %s (now %d)",
+ tqDebug("%s added Caller\n %s (now %d)",
fullName().ascii(), caller->fullName().ascii(), _callers.count());
#endif
}
@@ -3439,7 +3439,7 @@ TraceCall* TraceFunction::calling(TraceFunction* called)
invalidate();
#if TRACE_DEBUG
- qDebug("Created %s [TraceFunction::calling]", calling->fullName().ascii());
+ tqDebug("Created %s [TraceFunction::calling]", calling->fullName().ascii());
#endif
called->addCaller(calling);
}
@@ -3464,7 +3464,7 @@ TraceFunctionSource* TraceFunction::sourceFile(TraceFile* file,
invalidate();
#if TRACE_DEBUG
- qDebug("Created SourceFile %s [TraceFunction::line]",
+ tqDebug("Created SourceFile %s [TraceFunction::line]",
file->name().ascii());
#endif
file->addSourceFile(sourceFile);
@@ -3612,7 +3612,7 @@ void TraceFunction::update()
if (!_dirty) return;
#if TRACE_DEBUG
- qDebug("Update %s (Callers %d, sourceFiles %d, instrs %d)",
+ tqDebug("Update %s (Callers %d, sourceFiles %d, instrs %d)",
_name.ascii(), _callers.count(),
_sourceFiles.count(), _instrMap ? _instrMap->count():0);
#endif
@@ -3683,7 +3683,7 @@ void TraceFunction::update()
_dirty = false;
#if TRACE_DEBUG
- qDebug("> %s", costString(0).ascii());
+ tqDebug("> %s", costString(0).ascii());
#endif
}
@@ -3710,7 +3710,7 @@ void TraceFunction::cycleDFS(int d, int& pNo, TraceFunction** pTop)
if (_cycleLow != 0) return;
if (0)
- qDebug("%s D%02d > %s (%d)",
+ tqDebug("%s D%02d > %s (%d)",
TQString().fill(' ', d).ascii(), d, prettyName().ascii(), pNo+1);
@@ -3744,7 +3744,7 @@ void TraceFunction::cycleDFS(int d, int& pNo, TraceFunction** pTop)
SubCost cutLimit = SubCost(base * Configuration::cycleCut());
if (0)
- qDebug("%s Cum. %s, Max Caller %s, cut limit %s",
+ tqDebug("%s Cum. %s, Max Caller %s, cut limit %s",
TQString().fill(' ', d).ascii(),
inclusive()->subCost(0).pretty().ascii(),
base.pretty().ascii(),
@@ -3757,7 +3757,7 @@ void TraceFunction::cycleDFS(int d, int& pNo, TraceFunction** pTop)
// cycle cut heuristic
if (calling->subCost(0) < cutLimit) {
- if (0) qDebug("%s Cut call to %s (cum. %s)",
+ if (0) tqDebug("%s Cut call to %s (cum. %s)",
TQString().fill(' ', d).ascii(),
called->prettyName().ascii(),
calling->subCost(0).pretty().ascii());
@@ -3777,13 +3777,13 @@ void TraceFunction::cycleDFS(int d, int& pNo, TraceFunction** pTop)
_cycleLow = called->_cycleLow;
if (0)
- qDebug("%s D%02d - %s (%d)",
+ tqDebug("%s D%02d - %s (%d)",
TQString().fill(' ', d+1).ascii(), d+1,
called->prettyName().ascii(), called->_cycleLow);
}
else {
if (0)
- qDebug("%s D%02d - %s (%d) [Not on stack]",
+ tqDebug("%s D%02d - %s (%d) [Not on stack]",
TQString().fill(' ', d+1).ascii(), d+1,
called->prettyName().ascii(), called->_cycleLow);
}
@@ -3800,7 +3800,7 @@ void TraceFunction::cycleDFS(int d, int& pNo, TraceFunction** pTop)
// a SCC with >1 members
TraceFunctionCycle* cycle = data()->functionCycle(this);
- if (0) qDebug("BASE CYC %d %s",
+ if (0) tqDebug("BASE CYC %d %s",
cycle->cycleNo(), prettyName().ascii());
while(*pTop) {
TraceFunction* top = *pTop;
@@ -3810,13 +3810,13 @@ void TraceFunction::cycleDFS(int d, int& pNo, TraceFunction** pTop)
*pTop = top->_cycleStackDown;
top->_cycleStackDown = 0;
- if (0) qDebug("CYC %s", top->prettyName().ascii());
+ if (0) tqDebug("CYC %s", top->prettyName().ascii());
if (top == this) break;
}
}
}
if (0)
- qDebug("%s D%02d < %s (%d)",
+ tqDebug("%s D%02d < %s (%d)",
TQString().fill(' ', d).ascii(), d,
prettyName().ascii(), _cycleLow);
}
@@ -3841,7 +3841,7 @@ TraceInstrMap* TraceFunction::instrMap()
TracePartFunction* pf = (TracePartFunction*) pfList.first();
for(; pf; pf = (TracePartFunction*) pfList.next()) {
- if (0) qDebug("PartFunction %s:%d",
+ if (0) tqDebug("PartFunction %s:%d",
pf->function()->name().ascii(), pf->part()->partNumber());
FixCost* fc = pf->firstFixCost();
@@ -3898,7 +3898,7 @@ TraceInstrMap* TraceFunction::instrMap()
TracePartCall* pc = pcList.first();
for(; pc; pc = pcList.next()) {
- if (0) qDebug("PartCall %s:%d",
+ if (0) tqDebug("PartCall %s:%d",
pc->call()->name().ascii(),
pf->part()->partNumber());
@@ -3926,7 +3926,7 @@ TraceInstrMap* TraceFunction::instrMap()
pic = ic->partInstrCall(fcc->part(), pc);
fcc->addTo(pic);
- if (0) qDebug("Add FixCallCost %s:%d/0x%s, CallCount %s",
+ if (0) tqDebug("Add FixCallCost %s:%d/0x%s, CallCount %s",
fcc->functionSource()->file()->shortName().ascii(),
fcc->line(), fcc->addr().toString().ascii(),
fcc->callCount().pretty().ascii());
@@ -4037,7 +4037,7 @@ void TraceClass::addFunction(TraceFunction* function)
{
#if TRACE_ASSERTIONS
if (function->cls() != this) {
- qDebug("Can't add function to a class not enclosing this function\n");
+ tqDebug("Can't add function to a class not enclosing this function\n");
return;
}
@@ -4049,7 +4049,7 @@ void TraceClass::addFunction(TraceFunction* function)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(),
function->fullName().ascii(), _functions.count());
#endif
@@ -4084,7 +4084,7 @@ void TraceFile::addFunction(TraceFunction* function)
{
#if TRACE_ASSERTIONS
if (function->file() != this) {
- qDebug("Can't add function to a file not enclosing this function\n");
+ tqDebug("Can't add function to a file not enclosing this function\n");
return;
}
@@ -4096,7 +4096,7 @@ void TraceFile::addFunction(TraceFunction* function)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(),
function->fullName().ascii(), _functions.count());
#endif
@@ -4107,7 +4107,7 @@ void TraceFile::addSourceFile(TraceFunctionSource* sourceFile)
{
#if TRACE_ASSERTIONS
if (sourceFile->file() != this) {
- qDebug("Can't add sourceFile to a file not having lines for it\n");
+ tqDebug("Can't add sourceFile to a file not having lines for it\n");
return;
}
#endif
@@ -4117,7 +4117,7 @@ void TraceFile::addSourceFile(TraceFunctionSource* sourceFile)
invalidate();
#if TRACE_DEBUG
- qDebug("%s \n added SourceFile %s (now %d)",
+ tqDebug("%s \n added SourceFile %s (now %d)",
fullName().ascii(), sourceFile->fullName().ascii(),
_sourceFiles.count());
#endif
@@ -4202,7 +4202,7 @@ void TraceObject::addFunction(TraceFunction* function)
{
#if TRACE_ASSERTIONS
if (function->object() != this) {
- qDebug("Can't add function to an object not enclosing this function\n");
+ tqDebug("Can't add function to an object not enclosing this function\n");
return;
}
@@ -4214,7 +4214,7 @@ void TraceObject::addFunction(TraceFunction* function)
invalidate();
#if TRACE_DEBUG
- qDebug("%s added\n %s (now %d)",
+ tqDebug("%s added\n %s (now %d)",
fullName().ascii(),
function->fullName().ascii(), _functions.count());
#endif
@@ -4513,7 +4513,7 @@ void TraceData::load(const TQString& base)
}
}
- //qDebug("File %s: Part %d, Thread %d", (*it).ascii(), n, t);
+ //tqDebug("File %s: Part %d, Thread %d", (*it).ascii(), n, t);
if (p->partNumber()>0) n = p->partNumber();
if (n>maxNumber) maxNumber = n;
@@ -4538,7 +4538,7 @@ TracePart* TraceData::addPart(const TQString& dir, const TQString& name)
{
TQString filename = TQString("%1/%2").arg(dir).arg(name);
#if TRACE_DEBUG
- qDebug("TraceData::addPart('%s')", filename.ascii());
+ tqDebug("TraceData::addPart('%s')", filename.ascii());
#endif
TQFile* file = new TQFile(filename);
@@ -4684,7 +4684,7 @@ TraceObject* TraceData::object(const TQString& name)
o.setName(name);
#if TRACE_DEBUG
- qDebug("Created %s [TraceData::object]",
+ tqDebug("Created %s [TraceData::object]",
o.fullName().ascii());
#endif
}
@@ -4701,7 +4701,7 @@ TraceFile* TraceData::file(const TQString& name)
f.setName(name);
#if TRACE_DEBUG
- qDebug("Created %s [TraceData::file]",
+ tqDebug("Created %s [TraceData::file]",
f.fullName().ascii());
#endif
}
@@ -4740,7 +4740,7 @@ TraceClass* TraceData::cls(const TQString& fnName, TQString& shortName)
c.setName(clsName);
#if TRACE_DEBUG
- qDebug("Created %s [TraceData::cls]",
+ tqDebug("Created %s [TraceData::cls]",
c.fullName().ascii());
#endif
}
@@ -4757,7 +4757,7 @@ TraceFunction* TraceData::function(const TQString& name,
TraceClass* c = cls(name, shortName);
if (!file || !object || !c) {
- qDebug("ERROR - no file/object/class for %s ?!", name.ascii());
+ tqDebug("ERROR - no file/object/class for %s ?!", name.ascii());
return 0;
}
@@ -4779,7 +4779,7 @@ TraceFunction* TraceData::function(const TQString& name,
f.setMapIterator(it);
#if TRACE_DEBUG
- qDebug("Created %s [TraceData::function]\n for %s, %s, %s",
+ tqDebug("Created %s [TraceData::function]\n for %s, %s, %s",
f.fullName().ascii(),
c->fullName().ascii(), file->fullName().ascii(),
object ? object->fullName().ascii() : "(unknown object)");
@@ -4996,7 +4996,7 @@ TraceFunctionCycle* TraceData::functionCycle(TraceFunction* f)
void TraceData::updateFunctionCycles()
{
- //qDebug("Updating cycles...");
+ //tqDebug("Updating cycles...");
// init cycle info
TraceFunctionCycle* cycle;
diff --git a/tdecachegrind/tdecachegrind/utils.cpp b/tdecachegrind/tdecachegrind/utils.cpp
index 65c7e347..c1a68044 100644
--- a/tdecachegrind/tdecachegrind/utils.cpp
+++ b/tdecachegrind/tdecachegrind/utils.cpp
@@ -354,7 +354,7 @@ FixFile::FixFile(TQFile* file)
_filename = file->name();
if (!file->isOpen() && !file->open( IO_ReadOnly ) ) {
- qWarning( "%s: %s", (const char*) TQFile::encodeName(_filename),
+ tqWarning( "%s: %s", (const char*) TQFile::encodeName(_filename),
strerror( errno ) );
_len = 0;
_currentLeft = 0;
@@ -377,7 +377,7 @@ FixFile::FixFile(TQFile* file)
_len = len;
_used_mmap = true;
- if (0) qDebug("Mapped '%s'", _filename.ascii());
+ if (0) tqDebug("Mapped '%s'", _filename.ascii());
} else {
#endif // HAVE_MMAP
// try reading the data into memory instead
@@ -398,9 +398,9 @@ FixFile::~FixFile()
#ifdef HAVE_MMAP
if (_used_mmap) {
- if (0) qDebug("Unmapping '%s'", _filename.ascii());
+ if (0) tqDebug("Unmapping '%s'", _filename.ascii());
if (munmap(_base, _len) != 0)
- qWarning( "munmap: %s", strerror( errno ) );
+ tqWarning( "munmap: %s", strerror( errno ) );
}
#endif // HAVE_MMAP
}
@@ -424,7 +424,7 @@ bool FixFile::nextLine(FixString& str)
if (l>199) l = 199;
strncpy(tmp, _current, l);
tmp[l] = 0;
- qDebug("[FixFile::nextLine] At %d, len %d: '%s'",
+ tqDebug("[FixFile::nextLine] At %d, len %d: '%s'",
_current - _base, _currentLeft-left, tmp);
}