Sections
Timeline
View Tickets
New Ticket
Sub-Sections
Last Change
Annotate
Revision Log
Download
Plain Text
Original Format
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

root/trunk/examples/large.py

Revision 73, 1.2 kB (checked in by gak, 7 weeks ago)

Added svn executable flag on for scripts

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2"""
3pycallgraph
4
5U{http://pycallgraph.slowchop.com/}
6
7Copyright Gerald Kaszuba 2007
8
9This program is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2 of the License, or
12(at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22"""
23
24"""
25This example is trying to make a large graph. You'll need some internet access
26for this to work.
27"""
28
29import pycallgraph
30
31
32def main():
33    pycallgraph.start_trace()
34    import urllib
35    from xml.dom.minidom import parse, parseString
36    parseString(urllib.urlopen('http://w3.org/').read())
37    pycallgraph.make_dot_graph('large.png')
38
39if __name__ == '__main__':
40    main()
41
42# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
Note: See TracBrowser for help on using the browser.