-
Notifications
You must be signed in to change notification settings - Fork 248
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
Limitation of settrace of the first target.switch() #129
Comments
I'm not sure what you're expecting there to be. There's no stack, because the new target has never been executed yet, and it's stack is literally empty. There's no run, because when greenlet is executed for the first time it's If you want to trace python code you may try using |
That's the problem, I know the target greenlet will start executing but I can't know what it is going to execute. If I understand correctly, at this time, I am using Honestly speaking if there is also |
The purpose of greenlet tracing is to identify which greenlet stopped executing and which greenlet is starting to execute, and initially the idea was to help profilers that e.g. use Again I'm not sure what you're trying to do. If you want to build something like |
Almost what I am doing. Why I want more info and track frames is because when I find there is some greenlet in the dict occupies too long time, I want to quickly identify where actually it is in the source code. Simply having the object itself and execution time won't take me to the final place.
In my case not able to expect what libraries users are using. :-(
Yes, Thanks to your reply first. I just think it would be nice if I could get the information just using |
I am using
settrace
and I encounters a limitation of it. The problem is we could only get limited info with the target of its firstswitch
call.settrace
is called between the greenlet starts andrun
is executed. This means I have no way to get any info about what this greenlet is going to do or is doing. No stack ofrun
, not availablerun
attribute. So in an extreme case, if it blocks in the firstswitch
call,settrace
could not give me necessary info.The text was updated successfully, but these errors were encountered: