From ddaab0b1dbe13bda6447fce50f6a15ba4b2bbc7e Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 16 Sep 2014 10:28:47 +0200 Subject: [PATCH] add a valgrind theme --- colout/colout_valgrind.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 colout/colout_valgrind.py diff --git a/colout/colout_valgrind.py b/colout/colout_valgrind.py new file mode 100644 index 0000000..fc614d2 --- /dev/null +++ b/colout/colout_valgrind.py @@ -0,0 +1,24 @@ +#encoding: utf-8 + +def theme(context): + + return context, [ + # section title + ["^(==[0-9]+==\s{1}\S+.*)$","red",""], + # section explanation + ["^==[0-9]+==\s{2}(\S+.*)$","orange",""], + # locations adresses + ["^==[0-9]+==\s{4}([atby]{2}) (0x)([^:]*): (\S+) ", + "blue,blue,blue,none", "normal"], + # locations: library + ["\(in (.*)\)", "cyan", "normal"], + # locations: file + ["\(([^\.]*\.[^:]+):([0-9]+)\)", "white,yellow", "bold,normal"], + # leak summary + ["^==[0-9]+==\s{4}(definitely lost): .* (in) .*","red","bold"], + ["^==[0-9]+==\s{4}(indirectly lost): .* (in) .*","orange","bold"], + ["^==[0-9]+==\s{6}(possibly lost): .* (in) .*","yellow","bold"], + ["^==[0-9]+==\s{4}(still reachable): .* (in) .*","green","bold"], + ["^==[0-9]+==\s{9}(suppressed): .* (in) .*","cyan","bold"], + ] +