You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CEF Python is a C++ module written in Cython. Cython provides hooks for Python's cProfile module, so you can use Python's own profiling tools to see how Cython code performs. Once enabled, cefpython's Cython code will behave just like Python code when called from the cProfile module.
Also add --enable-line-tracing flag to build.py.
In the meantime to enable profiling, modify the tools/cython_setup.py file (line 380 - "cython_directives") by adding a new cython directive:
"profile": True,
To enable line tracing also add:
"linetrace": True,
After that file is changed follow the usual build instructions by executing the build.py script.
The text was updated successfully, but these errors were encountered:
cztomczak
changed the title
Add --enable-profiling flag to build.py tool to enabling profiling using cProfile tool
Add --enable-profiling flag to build.py tool to enable profiling using cProfile tool
Apr 26, 2018
cztomczak
changed the title
Add --enable-profiling flag to build.py tool to enable profiling using cProfile tool
Add --enable-profiling flag to build.py tool to enable profiling using cProfile module
Apr 26, 2018
CEF Python is a C++ module written in Cython. Cython provides hooks for Python's cProfile module, so you can use Python's own profiling tools to see how Cython code performs. Once enabled, cefpython's Cython code will behave just like Python code when called from the cProfile module.
Also add
--enable-line-tracing
flag to build.py.In the meantime to enable profiling, modify the tools/cython_setup.py file (line 380 - "cython_directives") by adding a new cython directive:
To enable line tracing also add:
After that file is changed follow the usual build instructions by executing the build.py script.
Cython profiling explained here:
http://cython.readthedocs.io/en/latest/src/tutorial/profiling_tutorial.html
For Python cProfile see:
https://docs.python.org/2/library/profile.html
The text was updated successfully, but these errors were encountered: