Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit c0b5b79

Browse files
committed
Fix utility sub-type printing
The recent refactoring broke printing of utility-process sub-types. This fixes that.
1 parent 621ef4c commit c0b5b79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/IdentifyChromeProcesses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,13 @@ def _IdentifyChromeProcesses(tracename, show_cpu_usage, tabbed_output, return_pi
314314
list_by_type.sort()
315315
for pid in list_by_type:
316316
sub_type_text = ''
317+
if pid in sub_types_by_pid:
318+
sub_type_text = ' (%s)' % sub_types_by_pid[pid]
317319
if show_cpu_usage:
318320
if tabbed_output:
319321
type = 'utility (%s)' % sub_types_by_pid[pid] if pid in sub_types_by_pid else process_type
320322
print('%s\t%s\t%d\t%.2f' % (type, pid, context_switches_by_pid.get(pid, 0), cpu_usage_by_pid.get(pid, 0)))
321323
else:
322-
if pid in sub_types_by_pid:
323-
sub_type_text = ' (%s)' % sub_types_by_pid[pid]
324324
print('\n ', end='')
325325
if pid in cpu_usage_by_pid:
326326
# Print CPU usage details if they exist

0 commit comments

Comments
 (0)