Skip to content

Commit

Permalink
fix #116
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa0128 committed Mar 15, 2023
1 parent 8064964 commit 5319a9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion solox/public/fps.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,12 @@ def _get_surfaceflinger_frame_data(self):
return (None, None)
isHaveFoundWindow = False
PROFILEDATA_line = 0
activity = self.focus_window()
if activity.__contains__('#'):
activity = activity.split('#')[0]
for line in results:
if not isHaveFoundWindow:
if "Window" in line or self.focus_window.split('#')[0] in line:
if "Window" in line and activity in line:
isHaveFoundWindow = True
if not isHaveFoundWindow:
continue
Expand Down

0 comments on commit 5319a9c

Please sign in to comment.