Commit graph

359 commits

Author SHA1 Message Date
Philippe Normand
8f95d72262 debug-viewer: Add screenshot
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/210>
2020-06-20 13:36:50 +00:00
Bilal Elmoussaoui
91bf685fd5 Apply suggestion to debug-viewer/org.freedesktop.GstDebugViewer.appdata.xml.in
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/155>
2020-04-28 15:05:40 +00:00
Bilal Elmoussaoui
5a8cf59451 Metainfo: backport flathub fixes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/155>
2020-04-28 15:05:40 +00:00
Philippe Normand
b90c097eaa debug-viewer: Display nanoseconds in the timestamp column 2020-03-02 12:55:18 +00:00
Thibault Saunier
6f9e5d4494 Pass python files through autopep8 2019-04-03 13:38:42 +00:00
Nicolas Dufresne
4262c23a9c debug-viewer: Use python.install_sources()
With current implementation we would try and install into the system
path regardless of the prefix. On top of that, we could install any left
over pyc file and would install the unit test also.

To fix this, we now list every files to be installed and use
python.install_sources(), leaving to meson the decision on where things
should be installed.
2019-04-02 12:13:06 -04:00
Tim-Philipp Müller
bf12d56f14 meson: use new 'python' module instead of deprecated 'python3' one
https://github.com/mesonbuild/meson/pull/4169
2019-03-21 13:06:00 +00:00
Philippe Normand
052d875999 debug-viewer: Python3 port follow-up
One print statement wasn't ported to Python3.
2018-10-28 11:03:54 +00:00
Xavier Claessens
456f5427db meson: add option to disable translation
https://bugzilla.gnome.org/show_bug.cgi?id=797342
2018-10-27 14:45:51 +01:00
Philippe Normand
7e2200d889 debug-viewer: Fix reload file action.
Copy the log file only we're loading a file different from the previous file.
The previous version of this code was broken because the existing tmpfile was
removed from disk before being copied to a new temporary file.
2018-06-14 18:01:54 +01:00
Thibault Saunier
78698808d2 debug-viewer: Ignore broken utf8 errors
Not much we can do if the input file is not perfectly valid UTF8
but we should just do as good as we can.
2018-05-13 09:44:17 -04:00
Philippe Normand
29e421ad0a debug-viewer: MEMDUMP debug level support 2018-05-13 13:02:11 +01:00
Thibault Saunier
48c7ccdc94 debug-viewer: Fix raising unhandled exception
Old code was uselessly complex
2018-04-19 14:26:23 -03:00
Thibault Saunier
52d1461bce debug-viewer: Fix stacktrace after port to py3 2018-04-19 08:44:50 -03:00
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
Thibault Saunier
771f27b44b debug-viewer: Add a shortcut to show/hide timeline 2018-04-18 09:03:01 -03:00
Thibault Saunier
cb4342b8f2 debug-viewer: Port to meson
This allows us to run unit test as part of ninja test and have versionning
in sync. Also the goal is to have everything inside meson.

https://bugzilla.gnome.org/show_bug.cgi?id=795282
2018-04-15 20:50:22 -03:00
Philippe Normand
1533775381 debug-viewer: Dispatcher source ID clean-up
This patch fixes this runtime warning:
GstDebugViewer/Common/Data.py:67: Warning: Source ID 17 was not found when attempting to remove it
  GObject.source_remove(self.source_id)
2018-04-15 11:28:33 +01:00
Philippe Normand
8a9d72b7e6 debug-viewer: PEP8 all the things 2018-04-15 10:56:12 +01:00
Philippe Normand
e557b5326d debug-viewer: Port to Python3
And fix unit-tests.

https://bugzilla.gnome.org/show_bug.cgi?id=795260
2018-04-15 10:56:12 +01:00
Philippe Normand
a11b78a57d debug-viewer: remove broken/unimplemented plugins 2018-04-14 14:34:18 +01:00
Xabier Rodriguez Calvar
8db603f8c8 debug-viewer: solved crash when maximum freq sentinel is 0
https://bugzilla.gnome.org/show_bug.cgi?id=794282
2018-03-13 10:21:36 -03:00
Thibault Saunier
70dcd99599 debug-viewer: Fix copying current line 2018-03-12 12:11:18 -03:00
Thibault Saunier
2028291219 debug-viewer: Add an appdata file 2018-03-12 11:27:18 -03:00
Xabier Rodriguez Calvar
831a70bf9a debug-viewer: fix names of actions/functions
https://bugzilla.gnome.org/show_bug.cgi?id=793241
2018-02-22 21:48:59 -05:00
Xabier Rodriguez Calvar
07cd72be78 debug-viewer: Added filter for threads
https://bugzilla.gnome.org/show_bug.cgi?id=793241
2018-02-22 21:48:58 -05:00
Xabier Rodriguez Calvar
8c93cc156f debug-viewer: Added filter for function
https://bugzilla.gnome.org/show_bug.cgi?id=793241
2018-02-22 21:48:58 -05:00
Xabier Rodriguez Calvar
47415e50e1 debug-viewer: Fixed C++ destructors detection
https://bugzilla.gnome.org/show_bug.cgi?id=793447
2018-02-16 13:12:42 +00:00
Xabier Rodriguez Calvar
50db93006e debug-viewer: Fix C++ detection of lambdas as function
https://bugzilla.gnome.org/show_bug.cgi?id=793422
2018-02-14 00:40:07 +00:00
Olivier Crête
0aea5f29e3 debug-viewer; Store thread as long instead of int
On 64-bit platforms, the thread id can be over 2^32 so use a long
to handle it.
2018-02-08 08:20:55 -07:00
Stefan Sauer
9ca26b661d debug-viewer: inline expression 2016-12-20 08:24:57 +01:00
Stefan Sauer
3b1e2833a3 debug-viewer: window: add helper to get visible range
Move this code to the window class, as multiple plugins are going to need it.
2016-10-10 15:59:49 +02:00
Stefan Sauer
561c612472 degbug-viewer: models: only temporarilly modify the row for filtering
This avoid that we have to chek the type in the getter.
Also update the comment - we need the strip since the readline call
will not strip the newline.
2016-10-10 12:33:06 +02:00
Stefan Sauer
0ccab37b65 debug-viewer: app: Switch for rc_parse to css
This gets us the line shading back and some size savings.
2016-10-08 22:52:21 +02:00
Stefan Sauer
2019397059 debug-viewer: models: allow filter to check COL_MESSAGE
COL_MESSAGE contains the message offset as an internal optimization. When
preparing a row for filters, we need to replace this. Otherwise filters
get an 'int' instead of the 'string' they expect.
2016-10-08 22:52:21 +02:00
Stefan Sauer
3f06e2baaa debug-viewer: small code cleanups
Inline a few statements. Remove unused variables.
2016-09-30 22:34:25 +02:00
Stefan Sauer
0e4d6664d4 debug-viewer: add a few doc strings 2016-09-30 22:34:25 +02:00
Stefan Sauer
9e4e2b5542 debug-viewer: initialize all features from tuples
Also add a first doc string about the plugin initialisation.
2016-09-28 21:19:29 +02:00
Stefan Sauer
d783c9cf36 formatting: run autopep8 over all files
We have a commit hook on the repo. Get all files to match the pep8 guidelines.
2016-09-28 20:38:55 +02:00
Stefan Sauer
3da48e7d61 debug-viewer: cleanup imports in plugins
Don't use * imports. Don't rely on package level imports.
2016-09-28 20:34:53 +02:00
Nicolas Dufresne
498e78897b debug-viewer: Allow running uninstalled with symlink
When uninstalled, we look at the directory of the executable to find
the resources. This patch uses realpath in replacement to abspath so
the path get expended, and symlink are followed.
2016-05-03 15:53:09 -04:00
Xabier Rodriguez Calvar
82910a13af Added menu opts to filter in instead of only out
Added also menu option to filter a log level and all above that

https://bugzilla.gnome.org/show_bug.cgi?id=763857
2016-04-04 22:28:15 +02:00
Xabier Rodriguez Calvar
ba4afd7b66 Added support to filter in instead of only out
Added support to filter a log level and all above it

https://bugzilla.gnome.org/show_bug.cgi?id=763857
2016-04-04 22:28:15 +02:00
Stefan Sauer
580c3a55d7 filter: add more logging 2016-04-04 22:23:26 +02:00
Stefan Sauer
379e3970c6 menu: port menu.popup calls
Add 1 extra arg.
2016-03-25 22:20:11 +01:00
Philippe Normand
66a6d948a6 debug-viewer: use the gi GLib version rather than the old gobject glib package 2016-03-25 18:58:49 +01:00
Philippe Normand
ae13b16205 debug-viewer: explicitely require GTK+3 2016-03-25 18:58:49 +01:00
Stefan Sauer
016449a53c debug-viewer: add more logging and some profiling how-to
The port is much slower than the gtk3 version. Try to figure why.
2016-03-25 18:58:49 +01:00
Stefan Sauer
248d18ee72 GstDebugViewer/Timeline: port timeline widgets to gtk3 2016-03-25 18:58:49 +01:00
Stefan Sauer
9deda12d08 GstDebugViewer: basic port to gtk3 and python gobject 2016-03-25 18:58:49 +01:00