summaryrefslogtreecommitdiffstats
path: root/tdecachegrind/tdecachegrind/callgraphview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecachegrind/tdecachegrind/callgraphview.cpp')
-rw-r--r--tdecachegrind/tdecachegrind/callgraphview.cpp62
1 files changed, 31 insertions, 31 deletions
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);