Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cprofile crash with mprop #4

Closed
haolongzhangm opened this issue Jun 23, 2022 · 2 comments
Closed

cprofile crash with mprop #4

haolongzhangm opened this issue Jun 23, 2022 · 2 comments
Labels

Comments

@haolongzhangm
Copy link

just write simple 3.py

import mprop
from mprop import mproperty

@mproperty
def test_aa():
printf("hhhh")

///////////////////////////////////////

then run command:
python3 -m cProfile 3.py

will crash log:

Traceback (most recent call last):
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/cProfile.py", line 206, in
main()
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/cProfile.py", line 195, in main
runctx(code, globs, None, options.outfile, options.sort)
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/cProfile.py", line 19, in runctx
return _pyprofile._Utils(Profile).runctx(statement, globals, locals,
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/profile.py", line 62, in runctx
prof.runctx(statement, globals, locals)
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
File "/home/zhl/.pyenv/versions/3.8.8/lib/python3.8/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
TypeError: 'Profile' object is not callable

@haolongzhangm
Copy link
Author

issue sames mprop handle sys profiler

@josiahcarlson
Copy link
Owner

josiahcarlson commented Dec 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants