mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1214924 - Add "WindowServer" and "kernel" processes to |mach power|'s output. r=BenWa.
This commit is contained in:
parent
3d8057f05f
commit
8625b8ee31
@ -105,6 +105,9 @@ class MachCommands(MachCommandBase):
|
|||||||
# plugin-container
|
# plugin-container
|
||||||
# <and possibly other, non-browser processes>
|
# <and possibly other, non-browser processes>
|
||||||
#
|
#
|
||||||
|
# Also, the WindowServer and kernel coalitions and processes are often
|
||||||
|
# relevant.
|
||||||
|
#
|
||||||
# We want to print all these but omit uninteresting coalitions. We
|
# We want to print all these but omit uninteresting coalitions. We
|
||||||
# could do this by properly parsing powermetrics output, but it's
|
# could do this by properly parsing powermetrics output, but it's
|
||||||
# simpler and more robust to just grep for a handful of identifying
|
# simpler and more robust to just grep for a handful of identifying
|
||||||
@ -129,7 +132,11 @@ class MachCommands(MachCommandBase):
|
|||||||
# within the terminal, it will show up unnecessarily. This is a
|
# within the terminal, it will show up unnecessarily. This is a
|
||||||
# minor disadvantage of this very simple parsing strategy.
|
# minor disadvantage of this very simple parsing strategy.
|
||||||
#
|
#
|
||||||
if re.search(r'(^Name|firefox|plugin-container|Safari\b|WebKit|Chrome|Terminal)', line):
|
# - 'WindowServer' is for the WindowServer.
|
||||||
|
#
|
||||||
|
# - 'kernel' is for the kernel.
|
||||||
|
#
|
||||||
|
if re.search(r'(^Name|firefox|plugin-container|Safari\b|WebKit|Chrome|Terminal|WindowServer|kernel)', line):
|
||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user