question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add async profiling support for gevent

See original GitHub issue

First of all, thanks a lot for this project, yappi is really the best Python profiler !

In my projects I use gevent extensively. I was full of hope when I found this blog article:

https://emptysqua.re/blog/greenletprofiler/

Someone made a greenlet profiler a few years ago on top of yappi…

But the project is Python 2, and it was coming with a modified, bundled version of yappi.

Now that yappi supports coroutines (with asyncio, unfortunately), could you please give me some guidance how to redo what was done with greenletprofiler ?

I would be happy to contribute to yappi with gevent support, but I need some help - my C++ skills are rusty and I don’t know the code.

I saw in this discussion https://github.com/sumerc/yappi/issues/21 that it was something you thought about once… But I am afraid set_ctx_backend() was finally not implemented ?

Thanks a lot

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mguijarrcommented, Apr 7, 2020

Well, I think I have already things to do - I will try to adapt the test you have for asyncio to gevent when I get some time. Thanks for all this, already !

1reaction
mguijarrcommented, Apr 3, 2020

I made a little survey there is no Python 3 greenlet profiler. Not yet 😉

@ajdavis I also checked forks of your greenlet profiler, with no luck - it does not work (test do not pass), in fact some adaptations have been made but it misses your changes to yappi so it is not helpful.

I am going to try to answer @sumerc questions in the previous message as soon as possible.

Thanks a lot guys ! Have a nice week-end in those difficult times.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Gevent loop engine — uWSGI 2.0 documentation
Mixing uWSGI's Async API with gevent's is EXPLICITLY FORBIDDEN. Building the plugin (uWSGI >= 1.4)¶. The gevent plugin is compiled in by default...
Read more >
Real World Gevent and Asyncio usecase - Stack Overflow
Synchronous in the multithreaded environment: Tasks get executed in different threads but wait for any other executing tasks on any other thread ...
Read more >
gevent.threadpool — gevent 22.10.3.dev0 documentation
[docs]class ThreadPool(GroupMappingMixin): """ A pool of native worker threads. This can be useful for CPU intensive functions, or those that otherwise will ...
Read more >
New to async programming. Is gevent right for this application?
Jamie's profile photo ... like, trying to get a grasp on async programming on Python. I'm at ... unsure if gevent is right...
Read more >
Should I stick with asyncio, or return to gevent? : r/Python
Basically, everything needs to be re-implemented to support async. ... Just fyi, I was able to add asynced sqlalchemy to the script via...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found