Sections
Timeline
View Tickets
New Ticket
Sub-Sections
Download
Unified Diff
Zip Archive
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Changeset 42

Show
Ignore:
Timestamp:
24/06/07 05:28:39 (19 months ago)
Author:
gak
Message:

Added an example using different styles of colours. Added GPL message to examples.

Location:
trunk/examples
Files:
2 added
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/basic.py

    r32 r42  
     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 demonstrates a simple use of pycallgraph. 
     26""" 
     27 
    128import pycallgraph 
    229 
  • trunk/examples/filter.py

    r39 r42  
     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 demonstrates the use of filtering. 
     26""" 
    127import pycallgraph 
    228 
  • trunk/examples/import.py

    r32 r42  
     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 shows the interals of certain Python modules when they are being 
     26imported. 
     27""" 
    128import pycallgraph 
    229 
  • trunk/examples/recursive.py

    r32 r42  
     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 demonstrates a simple recursive call. 
     26""" 
     27 
    128import pycallgraph 
    229 
  • trunk/examples/regexp.py

    r32 r42  
     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 demonstrates the internal workings of a regular expression lookup. 
     26""" 
    127import pycallgraph 
    228import re