Joe Rickerby

Results 376 comments of Joe Rickerby

> The function is thread-specific, but there is no way for the profiler to know about context switches between threads, so it does not make sense to use this in...

@DanielJanzon in that case, my normal pattern is to run the server with `pyinstrument `, apply load, and then hit ctrl-c to kill it - pyinstrument prints the profile even...

Happy to accept a PR for this - hopefully it should be implementable with a custom renderer. Although pyinstrument doesn't record 'number of calls' (being a statistical profiler) so that...

I like the idea! Pull requests welcome!

Tip for anyone else wanting to use this- ``` pip install https://github.com/nyurik/py-ascii-graph/archive/refs/heads/fix-python310.zip ``` This will install this PR, rather than the version on PyPI.

Hey there @alinstein - would love to try your pretrained model in a design project, any chance you could allow access/update the public link?

Thanks @WoLpH. This is cool. Do you think it would be possible to run this in the same thread, rather in a separate one? Perhaps by starting a asyncio run...

Gotcha. Well, maybe we can make it a different magic, perhaps `%%pyinstrument_async`? Or maybe we could detect the presence of await/async keywords in the code and switch this behaviour on...

Great! Yeah this'll work. Last thing - if users don't know about this and try to do an `await`, they'll get the asyncio exception. Do you think it would be...

I tweaked the detection logic to make a bit stricter - hopefully this works.