Commit graph

324 commits

Author SHA1 Message Date
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
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
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
René Stadler
658690c296 timeline: disable tooltip while scrolling 2014-09-11 20:51:48 +02:00
René Stadler
44d94c72e0 Hide some columns by default 2014-09-11 20:51:48 +02:00
René Stadler
1a4374809b columns: optimize cell data functions a little 2014-09-11 20:51:48 +02:00
René Stadler
a83c471d00 Fix crash when copying row to clipboard 2014-09-11 20:51:48 +02:00
René Stadler
b3960cf8e0 timeline: fix incorrect position after scrolling using the timeline
Apparently events are dropped internally, so the last position after you stop
dragging can be off.
2014-09-11 20:51:48 +02:00
René Stadler
8e2000a3e2 models: store line offsets in arrays 2014-09-11 20:51:48 +02:00
René Stadler
66ed3bb258 Use pango markup instead of attributes
Attributes don't work from introspection, so this blocks porting to gtk3.

In MessageColumn, admit that multiple highlighters don't actually work.
2014-09-11 20:51:48 +02:00
René Stadler
634f17ed7d findbar: highlight multiple matches in a message 2014-09-11 20:51:48 +02:00
René Stadler
6cfca1c322 timeline: only redraw updated parts of the graph
Improves rendering performance a lot.
2014-09-11 20:51:48 +02:00
René Stadler
af308379b4 timeline: fix position rectangle missing on first click
Regression caused by previous commit.
2014-09-11 20:51:48 +02:00
René Stadler
985ef29bb3 timeline: only redraw required areas when updating position rectangle 2014-09-11 20:51:48 +02:00