Changeset 20
- Timestamp:
- 14/02/07 21:35:21 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 modified
-
examples/basic.py (modified) (1 diff)
-
examples/filter.py (modified) (3 diffs)
-
examples/import.py (modified) (1 diff)
-
examples/recursive.py (modified) (1 diff)
-
examples/regexp.py (modified) (1 diff)
-
pycallgraph.py (modified) (1 diff)
-
scripts (added)
-
scripts/build_documentation.sh (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/basic.py
r12 r20 12 12 banana.eat() 13 13 14 pycallgraph.make_ graph('basic.png')14 pycallgraph.make_dot_graph('basic.png') 15 15 16 16 # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: -
trunk/examples/filter.py
r17 r20 15 15 banana = Banana() 16 16 banana.eat() 17 pycallgraph.make_ graph('filter-exclude.png')17 pycallgraph.make_dot_graph('filter-exclude.png') 18 18 19 19 def filter_include(): … … 23 23 banana = Banana() 24 24 banana.eat() 25 pycallgraph.make_ graph('filter-include.png')25 pycallgraph.make_dot_graph('filter-include.png') 26 26 27 27 def filter_max_depth(): … … 30 30 banana = Banana() 31 31 banana.eat() 32 pycallgraph.make_ graph('filter-max-depth.png')32 pycallgraph.make_dot_graph('filter-max-depth.png') 33 33 34 34 filter_exclude() -
trunk/examples/import.py
r14 r20 8 8 pycallgraph.start_trace() 9 9 __import__(imp) 10 pycallgraph.make_ graph('import-%s.png' % imp)10 pycallgraph.make_dot_graph('import-%s.png' % imp) 11 11 12 12 # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: -
trunk/examples/recursive.py
r12 r20 11 11 print factorial(a) 12 12 13 pycallgraph.make_ graph('recursive.png')13 pycallgraph.make_dot_graph('recursive.png') 14 14 15 15 # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: -
trunk/examples/regexp.py
r13 r20 6 6 re.search('(hel[j-s]o).*(th[^e]*ere)', 'hello there') 7 7 8 pycallgraph.make_ graph('regexp.png')8 pycallgraph.make_dot_graph('regexp.png') 9 9 10 10 # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: -
trunk/pycallgraph.py
r19 r20 246 246 print 'Generating graph' 247 247 stop_trace() 248 make_ graph(f)248 make_dot_graph(f) 249 249 print '%s should be in this directiory. Hit enter to quit.' % f 250 250 raw_input()