scalene
scalene copied to clipboard
Unable to profile bokeh serve application
Describe the bug
I wanted to use Scalene to profile an application using bokeh serve
, however for me this sadly does not produce any useful output.
If used without --profile-all
the only output is Scalene: Program did not run for long enough to profile.
If used with --profile-all
the output is the following, which I think does not have anything to do with bokeh since they, as far as my albeit limited understanding goes, use tornado which uses asyncio and not threads:
Do you have an idea what could be causing this, if it is actually a bug or more of a limitation due to how Scalene and bokeh serve
work?
To Reproduce
It seems like it is a general problem with how bokeh serve
works, since it also happens with their example applications.
Steps to reproduce the behavior:
- Install bokeh using pip
- Clone bokeh git repo.
- Run command
scalene venv/lib/python3.10/site-packages/bokeh/__main__.py --profile-all serve git/bokeh/examples/app/taylor.py --show
- Play around in application and stop it.
- See output.
Desktop (please complete the following information):
- OS: Ubuntu 22.04 LTS
- Python: 3.10.4
- Scalene: 1.5.9