scalene icon indicating copy to clipboard operation
scalene copied to clipboard

Unable to profile bokeh serve application

Open aaronweissler opened this issue 2 years ago • 0 comments

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:

image

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:

  1. Install bokeh using pip
  2. Clone bokeh git repo.
  3. Run command scalene venv/lib/python3.10/site-packages/bokeh/__main__.py --profile-all serve git/bokeh/examples/app/taylor.py --show
  4. Play around in application and stop it.
  5. See output.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Python: 3.10.4
  • Scalene: 1.5.9

aaronweissler avatar Jul 31 '22 10:07 aaronweissler