[code.view]

[top] / python / PyMOTW / profile / profile_runctx.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import profile
     from profile_fibonacci_memoized import fib, fib_seq
     
     if __name__ == '__main__':
         profile.runctx('print fib_seq(n); print', globals(), {'n':20})
     

[top] / python / PyMOTW / profile / profile_runctx.py

contact | logmethods.com