make it compile

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2719 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
msridhar1 2008-03-19 20:31:50 +00:00
parent 355ac58ee3
commit bf3d1514d0
1 changed files with 4 additions and 6 deletions

View File

@ -75,8 +75,6 @@ import com.ibm.wala.types.TypeReference;
import com.ibm.wala.util.collections.Pair;
import com.ibm.wala.util.debug.Assertions;
import com.ibm.wala.util.warnings.WalaException;
import com.yourkit.api.Controller;
import com.yourkit.api.ProfilingModes;
/**
* Uses a demand-driven points-to analysis to check the safety of downcasts.
@ -162,10 +160,10 @@ public class DemandCastChecker {
CallGraph cg = null;
try {
if (PROFILE) {
Controller c = new Controller();
c.startCPUProfiling(ProfilingModes.CPU_SAMPLING, Controller.DEFAULT_FILTERS);
cg = buildCallGraph(scope, cha, options);
c.captureCPUSnapshot(false);
// Controller c = new Controller();
// c.startCPUProfiling(ProfilingModes.CPU_SAMPLING, Controller.DEFAULT_FILTERS);
// cg = buildCallGraph(scope, cha, options);
// c.captureCPUSnapshot(false);
} else {
cg = buildCallGraph(scope, cha, options);
}