Commit graph

46 commits

Author SHA1 Message Date
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
0e4d6664d4 debug-viewer: add a few doc strings 2016-09-30 22:34:25 +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
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
9deda12d08 GstDebugViewer: basic port to gtk3 and python gobject 2016-03-25 18:58:49 +01: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
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
33a8efa93d Data: fix parsing of lines missing filename or function name
E.g. ffmpeg.
2014-09-11 20:51:47 +02:00
René Stadler
66e87f752a Data: fix up out-of-order log lines
This is important because we rely on monotonically increasing timestamps for
binary searches in various places.

Overhead for an already sorted file with 1 million lines is less than 5%.
2014-09-11 20:51:47 +02:00
René Stadler
dab5357986 Data: remove log line serialization
This is incomplete and prone to error. Move it out into the utility script
(which is the only user).
2014-09-11 20:51:46 +02:00
Stefan Kost
4e334e0e00 Add 'fixme' and 'trace' log levels 2014-09-11 20:51:46 +02:00
René Stadler
097cacebbd Add new base time feature
The log view context menu gains a new action "Set base time", which changes the
time column to show the delta to the selected row.
2014-09-11 20:51:46 +02:00
René Stadler
390262a363 Cleanup whitespace 2014-09-11 20:51:45 +02:00
René Stadler
7dcd3db661 Use mmap in a portable way 2014-09-11 20:51:45 +02:00
René Stadler
984549d45a Add FIXME comments 2014-09-11 20:51:45 +02:00
René Stadler
7fdbfa2cf4 Move more attribute lookups out of loops for speed 2014-09-11 20:51:45 +02:00
René Stadler
ff146e1cb1 Add support for recent log format changes, be more tolerant on whitespaces, cope with object names containing '>' 2014-09-11 20:51:45 +02:00
René Stadler
e5d490cabe Use GdkColors for level column, cleanup color handling 2014-09-11 20:51:44 +02:00
René Stadler
e523019f50 Correctly parse categories with digits in them (fixes flump3dec, v4l2src messages) 2014-09-11 20:51:44 +02:00
René Stadler
c28059e36c Use the mmapped fileobj in more places and use slice access 2014-09-11 20:51:42 +02:00
René Stadler
d9fcd38371 Fix crash when viewing a colored log file 2014-09-11 20:51:41 +02:00
René Stadler
a2b332c495 Gracefully handle garbage lines at the line cache level 2014-09-11 20:51:41 +02:00
René Stadler
ffd3cbb07c Add reload file functionality 2014-09-11 20:51:39 +02:00
René Stadler
13a1310e44 Fix copyright/license headers and module docstrings 2014-09-11 20:51:39 +02:00
René Stadler
e3410d3305 Ditch arrays for offset storage again 2014-09-11 20:51:38 +02:00
René Stadler
75d1ff49e4 Use an array for line offset mapping (if file < 4GB) 2014-09-11 20:51:38 +02:00
René Stadler
03713f4a0e Add LogLines class 2014-09-11 20:51:38 +02:00
René Stadler
500e9b53c3 Fix object name serialization 2014-09-11 20:51:38 +02:00
René Stadler
9de84e42e7 Add test script to generate a simple test log. Fix level name space adjustment 2014-09-11 20:51:38 +02:00
René Stadler
56e4a95450 Almost allow copying a full line to clipboard 2014-09-11 20:51:38 +02:00
René Stadler
949a6ee149 And now make it actually run\! 2014-09-11 20:51:38 +02:00
René Stadler
25f8f316d7 Move final log line parsing from GUI to Data module 2014-09-11 20:51:38 +02:00
René Stadler
ef78287a70 Optimize color stripping function a bit 2014-09-11 20:51:38 +02:00
René Stadler
2d6b01144d Correctly handle variable length thread address formatting 2014-09-11 20:51:37 +02:00
René Stadler
0a483e4931 Rename debug level instances 2014-09-11 20:51:37 +02:00
René Stadler
95476926f8 Hacky commit to parse debug level on line cache level 2014-09-11 20:51:37 +02:00
René Stadler
a52c2c3310 Add (commented out) support for parsing debug level at line cache scan time 2014-09-11 20:51:37 +02:00
René Stadler
00786f0121 Fix message display 2014-09-11 20:51:37 +02:00
René Stadler
109cc29ed9 Save huge amounts of memory by never caching the message and interning data for the other columns 2014-09-11 20:51:37 +02:00
René Stadler
b3f21b5a59 Use less regex matching to parse lines (does not provide a performance gain though) 2014-09-11 20:51:37 +02:00
René Stadler
8464704408 Fix progress display on load 2014-09-11 20:51:36 +02:00
René Stadler
71cddb7d78 New import (the old repo got busted, just had 4 revs anyways) 2014-09-11 20:51:36 +02:00