commit d6630ed34b0af544ca14427d4839dd60e23abccb
Author: David Malcolm <dmalcolm(a)redhat.com>
Date: Wed Jul 27 19:50:52 2011 -0400
Improve the comment within examples/show-callgraph.py
examples/show-callgraph.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/examples/show-callgraph.py b/examples/show-callgraph.py
index 54be076..c465a4e 100644
--- a/examples/show-callgraph.py
+++ b/examples/show-callgraph.py
@@ -22,6 +22,12 @@ from gccutils import callgraph_to_dot, invoke_dot
def on_pass_execution(p, fn):
if p.name == '*free_lang_data':
+ # The '*free_lang_data' pass is called once, rather than per-function,
+ # and occurs immediately after "*build_cgraph_edges", which is the
+ # pass that initially builds the callgraph
+ #
+ # So at this point we're likely to get a good view of the callgraph
+ # before further optimization passes manipulate it:
dot = callgraph_to_dot()
invoke_dot(dot)
Show replies by date