mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
tools: in performance-log-viewer.py, fix "function()" predicate ...
... when not specifying a thread-ID
This commit is contained in:
parent
c7f1730702
commit
84227fbfec
1 changed files with 7 additions and 6 deletions
|
@ -727,12 +727,13 @@ class FindSamplesPopover (Gtk.Popover):
|
|||
for i in range (len (samples)):
|
||||
try:
|
||||
def match_thread (thread, id, state = None):
|
||||
return (type (id) == int and \
|
||||
id == thread.id) or \
|
||||
(type (id) == str and \
|
||||
thread.name and \
|
||||
re.fullmatch (id, thread.name)) and \
|
||||
(state is None or \
|
||||
return (id is None or \
|
||||
(type (id) == int and \
|
||||
id == thread.id) or \
|
||||
(type (id) == str and \
|
||||
thread.name and \
|
||||
re.fullmatch (id, thread.name))) and \
|
||||
(state is None or \
|
||||
re.fullmatch (state, str (thread.state)))
|
||||
|
||||
def thread (id, state = None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue