gstreamer/subprojects/gst-devtools/debug-viewer
Edward Hervey 865b9b59a5 gst-python: Fix override loading in python >= 3.12
The `imp` module got removed in python 3.12 and the `importlib` module should be
used instead.

This is also a good excuse to switch to the new finder module from PEP 451 :
https://www.python.org/dev/peps/pep-0451/

This only requires implement the `find_spec()` method in our custom loaders

Co-authored-by: Stefan <107316-stefan6419846@users.noreply.gitlab.freedesktop.org>
Co-authored-by: Jordan Petrids <jordan@centricular.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6050>
2024-02-04 19:15:27 +00:00
..
data Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
GstDebugViewer gst-python: Fix override loading in python >= 3.12 2024-02-04 19:15:27 +00:00
pixmaps Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
po Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
screenshots Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
.gitignore Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
gst-debug-viewer Remove the uninstalled term 2022-03-01 11:33:10 +00:00
MANIFEST.in Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
meson.build meson: Add explicit check: kwarg to all run_command() calls 2022-01-09 18:12:47 +05:30
org.freedesktop.GstDebugViewer.appdata.xml.in Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
org.freedesktop.GstDebugViewer.desktop.in Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
README Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00

# how to build #

./setup.py build; sudo ./setup.py install --prefix=/usr
sudo chmod a+r /usr/share/gst-debug-viewer/*.ui

# porting issues #

http://stackoverflow.com/questions/11025700/generictreemodel-with-pygobject-introspection-gtk-3

# tips #

OLD: prev_action.connect_proxy(prev_button)
NEW: prev_button.set_related_action (prev_action)

OLD: box.pack_start (widget)
NEW: box.pack_start (widget, True, True, 0)

OLD: column.pack_start (cell)
NEW: column.pack_start (cell, True)

OLD: view_column.get_cell_renderers ()
NEW: column.get_cells ()

# porting ressources #
https://www.xpra.org/trac/ticket/90?cversion=0&cnum_hist=3
https://mail.gnome.org/archives/commits-list/2013-October/msg05205.html

#  profiling #
python -m profile -o output.pstats path/to/your/script arg1 arg2
gprof2dot.py -f pstats output.pstats | dot -Tpng -o output.png
~/projects/tools/gprof2dot/gprof2dot.py -f pstats output.pstats | dot -Tpng -o output.png
eog output.png

python -m cProfile -o output.pstats2 ./gst-debug-viewer debug.noansi.log
~/projects/tools/gprof2dot/gprof2dot.py -f pstats output.pstats2 | dot -Tpng -o output2.png
eog output2.png