The macOS option is unavailable if the application uses VCL. Click Add Platform macOS 64-bit (Intel) or macOS 64-bit (ARM). To change the target platform to macOS: Right-click the Target Platforms node in the Project Manager. If py-cpuinfo does not work on your machine, run the script: python tools/get_system_info.pyĪnd create bug report with the generated “system_info.txt” file. When you create a Delphi or C++Builder multi-device application, RAD Studio sets Win32 as the default target platform. Please report a Bug if you suspect any of this information is wrong. get_cpu_info () # Or use /proc/cpuinfo #info = cpuinfo.get_cpu_info_from_proc_cpuinfo() # Or use the Windows registry #info = cpuinfo.get_cpu_info_from_registry() # Or use sysctl #info = cpuinfo.get_cpu_info_from_sysctl() # Or use CPU CPUID register #info = cpuinfo.get_cpu_info_from_cpuid() # Print some CPU values print ( 'Vendor ID: '. Rdtscp, rep_good, sep, sse, sse2, ssse3, syscall, tsc, vme Run as a library import cpuinfo # Have the library pick the best method for getting your CPU info info = cpuinfo. Lm, mca, mce, mmx, msr, mtrr, nopl, nx, pae, pat, pge, pni, pse, pse36, Run as a script $ python cpuinfo/cpuinfo.pyīrand: Intel (R ) Core (TM ) i5-4440 CPU 3.10GHzįlags: apic, clflush, cmov, constant_tsc, cx8, de, fpu, fxsr, ht, lahf_lm, Querying the CPUID register (Intel X86 CPUs) While psutil is free software and will always be, the project would benefit immensely. These approaches are used for getting info: Linux Windows macOS FreeBSD, OpenBSD, NetBSD Sun Solaris AIX. Windows, BSD, Solaris, Cygwin, Haiku, and BeagleBone. It does not requireĪny compilation(C/C++, assembly, et cetera) to use. Py-cpuinfo should work without anyĮxtra programs or libraries, beyond what your OS provides. Py-cpuinfo gets CPU info with pure Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |