any idea how to generate the profile with cprofile on a web2py app that
supports database access?
i've tried but it return an error
C:\Users\sugizo>python -m cProfile -o c:\profiler\profile.profile
C:\web2py\applications\test\controllers\transaction.py
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\lib\cProfile.py", line 199, in <module>
main()
File "C:\Python27\lib\cProfile.py", line 192, in main
runctx(code, globs, None, options.outfile, options.sort)
File "C:\Python27\lib\cProfile.py", line 49, in runctx
prof = prof.runctx(statement, globals, locals)
File "C:\Python27\lib\cProfile.py", line 140, in runctx
exec cmd in globals, locals
File "C:\web2py\applications\tsm\controllers\warehouse_transaction.py",
line 3
, in <module>
import transaction
ImportError: No module named transaction
thanks and best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.