MCPcopy Create free account
hub / github.com/ipython/ipython / _num_cpus_darwin

Function _num_cpus_darwin

IPython/utils/sysinfo.py:126–129  ·  view source on GitHub ↗

Return the number of active CPUs on a Darwin system.

()

Source from the content-addressed store, hash-verified

124
125
126def _num_cpus_darwin():
127 """Return the number of active CPUs on a Darwin system."""
128 p = subprocess.Popen(['sysctl','-n','hw.ncpu'],stdout=subprocess.PIPE)
129 return p.stdout.read()
130
131
132def _num_cpus_windows():

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected