Package com.ibm.wala.ipa.callgraph
Class CallGraphStats
- java.lang.Object
-
- com.ibm.wala.ipa.callgraph.CallGraphStats
-
public class CallGraphStats extends Object
Collect basic call graph statistics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCallGraphStats.CGStats
-
Constructor Summary
Constructors Constructor Description CallGraphStats()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<MethodReference>collectMethods(CallGraph cg)Walk the call graph and return the set of MethodReferences that appear in the graph.static intcountBytecodeBytes(CallGraph cg)static CallGraphStats.CGStatsgetCGStats(CallGraph cg)static StringgetStats(CallGraph cg)
-
-
-
Method Detail
-
getCGStats
public static CallGraphStats.CGStats getCGStats(CallGraph cg)
-
getStats
public static String getStats(CallGraph cg)
- Throws:
IllegalArgumentException- if cg is null
-
countBytecodeBytes
public static int countBytecodeBytes(CallGraph cg)
- Parameters:
cg-- Returns:
- the number of bytecode bytes
- Throws:
IllegalArgumentException- if cg is null
-
collectMethods
public static Set<MethodReference> collectMethods(CallGraph cg)
Walk the call graph and return the set of MethodReferences that appear in the graph.- Parameters:
cg-- Returns:
- a set of MethodReferences
- Throws:
IllegalArgumentException- if cg is null
-
-