From e62df18e40ffcb7c2adf34a93373e90e710d4241 Mon Sep 17 00:00:00 2001 From: jjenista Date: Thu, 2 Jun 2011 23:43:16 +0000 Subject: [PATCH] without this the call stie debug was capturing an immense amoutn of data --- .../Analysis/Disjoint/DisjointAnalysis.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Robust/src/Analysis/Disjoint/DisjointAnalysis.java b/Robust/src/Analysis/Disjoint/DisjointAnalysis.java index 0617600c..69539b22 100644 --- a/Robust/src/Analysis/Disjoint/DisjointAnalysis.java +++ b/Robust/src/Analysis/Disjoint/DisjointAnalysis.java @@ -1785,9 +1785,11 @@ public class DisjointAnalysis implements HeapAnalysis { } + statusDebugCallSite( dcsd ); + // now that we've taken care of building heap models for // callee analysis, finish this transformation rg = rgMergeOfPossibleCallers; @@ -2917,11 +2919,23 @@ public class DisjointAnalysis implements HeapAnalysis { } dcsd.debugCallSite = debugCalleeMatches && debugCallerMatches; - dcsd.writeDebugDOTs = dcsd.debugCallSite; + + + dcsd.writeDebugDOTs = + + dcsd.debugCallSite && + + (ReachGraph.debugCallSiteVisitCounter >= + ReachGraph.debugCallSiteVisitStartCapture) && + + (ReachGraph.debugCallSiteVisitCounter < + ReachGraph.debugCallSiteVisitStartCapture + + ReachGraph.debugCallSiteNumVisitsToCapture); + + if( dcsd.debugCallSite ) { dcsd.didOneDebug = true; - System.out.println( " --> Debugging "+taskOrMethodCaller+" calling "+mdCallee ); } } -- 2.34.1