The key object to get a call graph that was calculated using the VTA algorithm.
You can assume that – in general – the call graph calculated using the VTA algorithm
is more precise than the call graph calculated using the CHA algorithm. Depending
on the project, the performance may be better, equal or worse.
Example:
To get the call graph object use the Project's get method and pass in
this object.
val ComputedCallGraph = project.get(VTACallGraphKey)
defrequirements: Seq[ProjectInformationKey[_ >: Map[Method, Option[Domain.DomainValue]] with Map[Field, Domain.DomainValue] with InstantiableClasses with PropertyStore with EntryPointInformation with InjectedClassesInformation <: AnyRef, _ <: ConcurrentLinkedQueue[(Project[_]) ⇒ (Traversable[AnyRef], scala.reflect.api.JavaUniverse.Type, AnyRef)]]]
The key object to get a call graph that was calculated using the VTA algorithm.
You can assume that – in general – the call graph calculated using the VTA algorithm is more precise than the call graph calculated using the CHA algorithm. Depending on the project, the performance may be better, equal or worse.
To get the call graph object use the
Project
'sget
method and pass inthis
object.val ComputedCallGraph = project.get(VTACallGraphKey)