Commit graph

329 commits

Author SHA1 Message Date
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
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
René Stadler
bf28e9464e Fix crash when range filtering
Regression from 25cfe9 (timeline: make log level calculation a lot faster).
2014-09-11 20:51:48 +02:00
René Stadler
ca6aee7388 timeline: clean up widget drawing 2014-09-11 20:51:48 +02:00
René Stadler
2d508773cc timeline: make log level calculation a lot faster
This is the step where the timeline graph gets colored with the individual log
level colors. It's roughly 4.5 times faster now. Probably can be made even
better, the code also needs a cleanup.
2014-09-11 20:51:48 +02:00
René Stadler
103700a254 Data: improve stripped log file loading performance
A ~9% improvement for files without colors. This now slightly outperforms the
code before color support was added.
2014-09-11 20:51:48 +02:00
René Stadler
6061f34506 Data: also yield while loading unparseable files
Otherwise, the UI would be blocked while loading something big that is not a
log file at all.
2014-09-11 20:51:48 +02:00
René Stadler
fb032c177f Remove color stripping script 2014-09-11 20:51:48 +02:00
René Stadler
9474886d85 Data: add support for colored log files
Adds a ~5% penalty for loading stripped files.
2014-09-11 20:51:47 +02:00
René Stadler
409ae7e522 timeline: remove broken actions from context menu
Hide lines before/after doesn't work as expected in this case.
2014-09-11 20:51:47 +02:00
René Stadler
33a8efa93d Data: fix parsing of lines missing filename or function name
E.g. ffmpeg.
2014-09-11 20:51:47 +02:00
René Stadler
c8dc50da40 timeline: grab when scrolling in TimelineWidget
Also use gdk_event_request_motions.
2014-09-11 20:51:47 +02:00
René Stadler
bff238279d timeline: move mouse handling into TimelineWidget 2014-09-11 20:51:47 +02:00
René Stadler
039f5a1d7b timeline: replace self.connect calls with vmethod overrides 2014-09-11 20:51:47 +02:00
Andrzej Bieniek
ec31b51f85 setup: fix build 2014-09-11 20:51:47 +02:00
René Stadler
980aca88cf timeline: don't select row when changing position in the timeline
Behaves just like the scrollbar now.
2014-09-11 20:51:47 +02:00
René Stadler
ad959763af timeline: stop scanning the file while filtering 2014-09-11 20:51:47 +02:00
René Stadler
6d6f71049f timeline: small cleanup 2014-09-11 20:51:47 +02:00
René Stadler
fb9d9ca4cf Modernize menus a little
A bit in preparation to gtk3 app menus.
2014-09-11 20:51:47 +02:00
René Stadler
9864042ff8 Simplify and optimize filtered model implementation
RangeFilteredLogModel is gone. The functionality is trivially implemented in
FilteredLogModel now. Changing the range is now O(log n) at worst (was O(n) at
best, for rewriting the arrays). Stacking filtered models is not supported
anymore, which simplifies the code.
2014-09-11 20:51:47 +02:00
René Stadler
3caf64118b Make RangeFilteredLogModel internal to GUI.models 2014-09-11 20:51:47 +02:00