Return the number of active CPUs on a Unix system.
()
| 119 | return pprint.pformat(get_sys_info()) |
| 120 | |
| 121 | def _num_cpus_unix(): |
| 122 | """Return the number of active CPUs on a Unix system.""" |
| 123 | return os.sysconf("SC_NPROCESSORS_ONLN") |
| 124 | |
| 125 | |
| 126 | def _num_cpus_darwin(): |
nothing calls this directly
no outgoing calls
no test coverage detected