DTA/infoflow: additional debug logging for graph size

This commit is contained in:
Chris PeBenito 2016-03-31 08:17:12 -04:00
parent a769180acb
commit 1ec35b9e2e
2 changed files with 12 additions and 0 deletions

View File

@ -503,6 +503,9 @@ class DomainTransitionAnalysis(object):
self.rebuildgraph = False
self.rebuildsubgraph = True
self.log.info("Completed building domain transition graph.")
self.log.debug("Graph stats: nodes: {0}, edges: {1}.".format(
nx.number_of_nodes(self.G),
nx.number_of_edges(self.G)))
def __remove_excluded_entrypoints(self):
invalid_edges = []
@ -556,6 +559,9 @@ class DomainTransitionAnalysis(object):
self.rebuildsubgraph = False
self.log.info("Completed building domain transition subgraph.")
self.log.debug("Subgraph stats: nodes: {0}, edges: {1}.".format(
nx.number_of_nodes(self.subG),
nx.number_of_edges(self.subG)))
class Edge(object):

View File

@ -323,6 +323,9 @@ class InfoFlowAnalysis(object):
self.rebuildgraph = False
self.rebuildsubgraph = True
self.log.info("Completed building information flow graph.")
self.log.debug("Graph stats: nodes: {0}, edges: {1}.".format(
nx.number_of_nodes(self.G),
nx.number_of_edges(self.G)))
def _build_subgraph(self):
if self.rebuildgraph:
@ -350,6 +353,9 @@ class InfoFlowAnalysis(object):
self.rebuildsubgraph = False
self.log.info("Completed building information flow subgraph.")
self.log.debug("Subgraph stats: nodes: {0}, edges: {1}.".format(
nx.number_of_nodes(self.subG),
nx.number_of_edges(self.subG)))
class Edge(object):