Package soot.jimple.infoflow.results
Class InfoflowPerformanceData
java.lang.Object
soot.jimple.infoflow.results.InfoflowPerformanceData
Class that records performance data on a FlowDroid run
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(InfoflowPerformanceData performanceData) Adds the data of the given performance object to this one.voidaddEdgePropagationCount(long toAdd) Adds the given number of edges to the total number of edges propagated, regardless of the solver in which they were propagatedvoidaddTaintPropagationSeconds(int toAdd) Adds the given number of seconds to the time spent on taint propagationbooleanlongintGets the number of seconds that the data flow analysis spent on callgraph constructionslongGets the number of edges that have been propagated in any solver, regardless of which solver propagated the edgeslongintGets the peak amount of memory that the data flow analysis has been using during its analysisintGets the number of seconds spent on path reconstruction, i.e., finding the sources to which the sinks are connected in the taint graphintGets the number of sinks that were identified in the given input programintGets the number of sources that were identified in the given input programintGets the number of seconds spent on the taint propagationintGets the total number of seconds that the data flow analysis has spent to create the flow resultsinthashCode()booleanisEmpty()Gets whether this data object is empty, i.e., does not contain any datavoidsetAliasPropagationCount(long aliasPropagationCount) Sets the number of edges propagated in the alias analysisvoidsetCallgraphConstructionSeconds(int callgraphSeconds) Sets the number of seconds that the data flow analysis spent on callgraph constructionsvoidsetInfoflowPropagationCount(long infoflowPropagationCount) Sets the number of edges propagated in the data flow analysisvoidsetMaxMemoryConsumption(int maxMemoryConsumption) Sets the peak amount of memory that the data flow analysis has been using during its analysisvoidsetPathReconstructionSeconds(int pathReconstructionSeconds) Sets the number of seconds spent on path reconstruction, i.e., finding the sources to which the sinks are connected in the taint graphvoidsetSinkCount(int sinkCount) Sets the number of sinks that were identified in the given input programvoidsetSourceCount(int sourceCount) Sets the number of sources that were identified in the given input programvoidsetTaintPropagationSeconds(int taintPropagationSeconds) Sets the number of seconds spent on the taint propagationvoidsetTotalRuntimeSeconds(int totalRuntimeSeconds) Sets the total number of seconds that the data flow analysis has spent to create the flow resultstoString()voidupdateMaxMemoryConsumption(int usedMemory) Updates the maximum memory consumption with the given consumption value.
-
Constructor Details
-
InfoflowPerformanceData
public InfoflowPerformanceData()
-
-
Method Details
-
getCallgraphConstructionSeconds
public int getCallgraphConstructionSeconds()Gets the number of seconds that the data flow analysis spent on callgraph constructions- Returns:
- The number of seconds that the data flow analysis spent on callgraph constructions, or -1 if no such data has been recorded
-
setCallgraphConstructionSeconds
public void setCallgraphConstructionSeconds(int callgraphSeconds) Sets the number of seconds that the data flow analysis spent on callgraph constructions- Parameters:
callgraphSeconds- The number of seconds that the data flow analysis spent on callgraph constructions, or -1 if no such data has been recorded
-
getTaintPropagationSeconds
public int getTaintPropagationSeconds()Gets the number of seconds spent on the taint propagation- Returns:
- The number of seconds spent on the taint propagation
-
setTaintPropagationSeconds
public void setTaintPropagationSeconds(int taintPropagationSeconds) Sets the number of seconds spent on the taint propagation- Parameters:
taintPropagationSeconds- The number of seconds spent on the taint propagation
-
getPathReconstructionSeconds
public int getPathReconstructionSeconds()Gets the number of seconds spent on path reconstruction, i.e., finding the sources to which the sinks are connected in the taint graph- Returns:
- The number of seconds spent on path reconstruction.
-
setPathReconstructionSeconds
public void setPathReconstructionSeconds(int pathReconstructionSeconds) Sets the number of seconds spent on path reconstruction, i.e., finding the sources to which the sinks are connected in the taint graph- Parameters:
pathReconstructionSeconds- The number of seconds spent on path reconstruction.
-
getTotalRuntimeSeconds
public int getTotalRuntimeSeconds()Gets the total number of seconds that the data flow analysis has spent to create the flow results- Returns:
- The total number of seconds that the data flow analysis has spent to create the flow results, or -1 if no such data has been recorded
-
setTotalRuntimeSeconds
public void setTotalRuntimeSeconds(int totalRuntimeSeconds) Sets the total number of seconds that the data flow analysis has spent to create the flow results- Parameters:
totalRuntimeSeconds- The total number of seconds that the data flow analysis has spent to create the flow results, or -1 if no such data has been recorded
-
getMaxMemoryConsumption
public int getMaxMemoryConsumption()Gets the peak amount of memory that the data flow analysis has been using during its analysis- Returns:
- The peak amount of memory that the data flow analysis has been using during its analysis, or -1 if no such data has been recorded
-
setMaxMemoryConsumption
public void setMaxMemoryConsumption(int maxMemoryConsumption) Sets the peak amount of memory that the data flow analysis has been using during its analysis- Parameters:
maxMemoryConsumption- The peak amount of memory that the data flow analysis has been using during its analysis, or -1 if no such data has been recorded
-
isEmpty
public boolean isEmpty()Gets whether this data object is empty, i.e., does not contain any data- Returns:
- True if this data object is empty, i.e., does not contain any data, false otherwise
-
add
Adds the data of the given performance object to this one. The timings are simply added. For memory consumption, the maximum value is taken.- Parameters:
performanceData- The performance data to add to this object
-
updateMaxMemoryConsumption
public void updateMaxMemoryConsumption(int usedMemory) Updates the maximum memory consumption with the given consumption value. The new value is the maximum between of old value and the new one.- Parameters:
usedMemory- The maximum memory consumption of a computation step in megabytes
-
addTaintPropagationSeconds
public void addTaintPropagationSeconds(int toAdd) Adds the given number of seconds to the time spent on taint propagation- Parameters:
toAdd- The time to add in seconds
-
addEdgePropagationCount
public void addEdgePropagationCount(long toAdd) Adds the given number of edges to the total number of edges propagated, regardless of the solver in which they were propagated- Parameters:
toAdd- The number of edges to add
-
setSourceCount
public void setSourceCount(int sourceCount) Sets the number of sources that were identified in the given input program- Parameters:
sourceCount- The number of sources that were identified in the given input program
-
getSourceCount
public int getSourceCount()Gets the number of sources that were identified in the given input program- Returns:
- The number of sources that were identified in the given input program
-
setSinkCount
public void setSinkCount(int sinkCount) Sets the number of sinks that were identified in the given input program- Parameters:
sinkCount- The number of sinks that were identified in the given input program
-
getSinkCount
public int getSinkCount()Gets the number of sinks that were identified in the given input program- Returns:
- The number of sinks that were identified in the given input program
-
getEdgePropagationCount
public long getEdgePropagationCount()Gets the number of edges that have been propagated in any solver, regardless of which solver propagated the edges- Returns:
- The number of edges that have been propagated in any solver
-
setInfoflowPropagationCount
public void setInfoflowPropagationCount(long infoflowPropagationCount) Sets the number of edges propagated in the data flow analysis- Parameters:
infoflowPropagationCount- The number of edges propagated in the data flow analysis
-
setAliasPropagationCount
public void setAliasPropagationCount(long aliasPropagationCount) Sets the number of edges propagated in the alias analysis- Parameters:
aliasPropagationCount- The number of edges propagated in the alias analysis
-
getInfoflowPropagationCount
public long getInfoflowPropagationCount() -
getAliasPropagationCount
public long getAliasPropagationCount() -
toString
-
hashCode
public int hashCode() -
equals
-