gstreamer/debug-viewer
Thibault Saunier ad886c288c debug-viewer: Copy log files in temporaries before using them
They are mmap'ed and it gets wrong if the file is changed.
There is high probablility the user will generate new logs while
inspecting some logs in the same file
2018-04-18 09:34:59 -03:00
..
data debug-viewer: Port to meson 2018-04-15 20:50:22 -03:00
GstDebugViewer debug-viewer: Copy log files in temporaries before using them 2018-04-18 09:34:59 -03:00
pixmaps New import (the old repo got busted, just had 4 revs anyways) 2014-09-11 20:51:36 +02:00
po debug-viewer: Port to meson 2018-04-15 20:50:22 -03:00
.gitignore Migrate .bzrignore -> .gitignore 2014-09-11 20:51:45 +02:00
gst-debug-viewer debug-viewer: Port to meson 2018-04-15 20:50:22 -03:00
MANIFEST.in debug-viewer: Add an appdata file 2018-03-12 11:27:18 -03:00
meson.build debug-viewer: Port to meson 2018-04-15 20:50:22 -03:00
org.freedesktop.GstDebugViewer.appdata.xml.in debug-viewer: Add an appdata file 2018-03-12 11:27:18 -03:00
org.freedesktop.GstDebugViewer.desktop.in debug-viewer: Port to meson 2018-04-15 20:50:22 -03:00
README debug-viewer: add more logging and some profiling how-to 2016-03-25 18:58:49 +01: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