You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! First of all I wanted to thanks the author for this great profiling library, I use it extensively as a quick and intuitive check of what might be taking too much time in my code.
I recently upgraded to Python 3.12.4, and by profiling the same script with two different python versions I get two very different results: the (correct) one using Python 3.11.9:
And the (erroneous) one, using Python 3.12.4 (check those crazy times!):
I've looked around to check what could cause this method 'disable' of '_lsprof.Profiler' objects issue, and it seems to indicate a misuse of the cProfile module from within Python itself; this is not the case in my script as I don't use it at all in my code, and just as an external module.
Then I looked up the changes from 3.11 to 3.12 and found PEP 669; maybe this is causing the issue? I also saw PR #195, so if this is an already known problem I'm sorry for wasting some of your time and consider this issue as a "+1" to that request 😄
The text was updated successfully, but these errors were encountered:
Hi @jiffyclub! Yes, I was just calling python -m cProfile -o output.prof script.py, no other particular arguments. If it can help, the program in question was a fork of nsiqcppstyle, a static code checker; it is a single threaded application. Right now I've upgraded to the latest 3.12.7 and modified the code even more, so I don't know if I can 100% reproduce the issue; however, seeming as a bunch of other people reacted to my issue, maybe others can also comment with a simpler reproducible example (since nsiqcppstyle requires an actual C/C++ repository and a bit of setup)
Hi! First of all I wanted to thanks the author for this great profiling library, I use it extensively as a quick and intuitive check of what might be taking too much time in my code.
![image](https://private-user-images.githubusercontent.com/61554895/348653778-7e906c69-674d-4930-9bb8-fa157b97ba46.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTg2OTIsIm5iZiI6MTczOTM5ODM5MiwicGF0aCI6Ii82MTU1NDg5NS8zNDg2NTM3NzgtN2U5MDZjNjktNjc0ZC00OTMwLTliYjgtZmExNTdiOTdiYTQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLU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lmSw_VnI0356Blu9KVVk)
I recently upgraded to Python 3.12.4, and by profiling the same script with two different python versions I get two very different results: the (correct) one using Python 3.11.9:
And the (erroneous) one, using Python 3.12.4 (check those crazy times!):
I've looked around to check what could cause this
method 'disable' of '_lsprof.Profiler' objects
issue, and it seems to indicate a misuse of thecProfile
module from within Python itself; this is not the case in my script as I don't use it at all in my code, and just as an external module.Then I looked up the changes from 3.11 to 3.12 and found PEP 669; maybe this is causing the issue? I also saw PR #195, so if this is an already known problem I'm sorry for wasting some of your time and consider this issue as a "+1" to that request 😄
The text was updated successfully, but these errors were encountered: