-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There may be compatibility problems. What system versions and hardware configurations are mainly adapted to? #8
Comments
(1) win7 does not support recording gpu;macOS only supports recording FPS with SIP turned off; |
Recording fps on macOS must be invoked as superuser. |
SIP has been closed. I also use the role of sudo Su to collect FPS data of MacOS, but there is no data output. |
You can try to record the fps of other processes, such as chrome's gpu process. |
Yes, but there is currently no other way to get FPS on macOS. You can use the
If the app doesn't perform a redraw, there will be no fps. |
import subprocess
import os
p = subprocess.Popen("precord -c sys_gpu", stdout=subprocess.PIPE, shell=True)
while True:
line = p.stdout.readline()
if line != '':
os.write(1, line)
else:
break The best way is to use the |
Ha ha ~ ~ great!!! I have always wanted to ask how to use precord coreapi. Is there a specific instruction document? How to call precord coreapi in the code?I can only use python. |
|
Continue to fight for the world of Python!!! I think if the interval time is set to 0.1 seconds, or can be freely set to 0.1 seconds, it can help everyone quickly skip some data at the beginning, which can ensure that the data can be read quickly. Now the interval seems to be fixed at 1 second by default, which is too long. |
We can't do this, the time slice is too short to get the correct cpu usage. |
Did you try version 0.5.11? |
yeah, i'm using the latest version. |
You can use the |
(1) I tried many computers, including win7, win10 and MacOS 10.15. I found that this tool can only perform well on win10. There is no data output on win7 and no FPS data output on MacOS.What system versions and hardware configurations are mainly adapted to?
(2) The output results of the command line can't be used directly now. It's easier to get API data by outputting JSON data in the command line window.
(3)Some errors occurred while running on MacOS. There may be compatibility problems.
Last login: Thu Sep 1 18:30:23 on ttys002
The default interactive shell is now zsh.
To update your account to use zsh, please run
chsh -s /bin/zsh
.For more details, please visit https://support.apple.com/kb/HT208050.
apple:~ apple$ /Users/apple/Desktop/precord
/Users/apple/Desktop/precord: line 1: 3: command not found
/Users/apple/Desktop/precord: line 2: 0: command not found
/Users/apple/Desktop/precord: line 3: 4096: command not found
/Users/apple/Desktop/precord: line 4: 12288: command not found
/Users/apple/Desktop/precord: line 5: 2826240: command not found
/Users/apple/Desktop/precord: line 6: 2850816: command not found
/Users/apple/Desktop/precord: line 7: 1148808: command not found
/Users/apple/Desktop/precord: line 8: ?????: command not found
/Users/apple/Desktop/precord: line 9: syntax error near unexpected token
(' /Users/apple/Desktop/precord: line 9:
??H__PAGEZEROx__TEXT?(?(__text__TEXT4?? 4?__stubs__TEXT?? ???__stub_helper__TEXT?? ?? ?__gcc_except_tab__TEXTd? X9d? __const__TEXT?/"??/"__unwind_info__TEXT?(0r?
(__eh_frame__TEXT(?(?__DATA_CONST?(??(?__got__DATA_CONST?(??(?__const__DATA_CONST??(8???(x__DATA@+@@+@__la_symbol_ptr__DATA@+?@+?__data__DATA?F+??F+__thread_vars__DATAHI+?HI+__thread_data__DATA?J+h?J+__thread_bss__DATA0L+ __bss__DATAPM+H__common__DATA?O+pH__LINKEDIT?+??+??"?0?+???+???+???+?J8-?=?0p
apple:~ apple$
The text was updated successfully, but these errors were encountered: