bd3a1021d7d990d5d4a8a71cc0621485af2d09e4,perfkitbenchmarker/linux_virtual_machine.py,LsCpuResults,__init__,#LsCpuResults#Any#,1631
Before Change
NUMA node0 CPU(s): 0-11
match = re.search(r"NUMA\ node\(s\):\s*(\d+)$", lscpu, re.MULTILINE)
if match:
self.numa_node_count = int(match.group(1))
else:
raise ValueError("NUMA Node(s) could not be found in lscpu value:\n%s" %
lscpu)
match = re.search(r"Core\(s\)\ per\ socket:\s*(\d+)$", lscpu, re.MULTILINE)
if match:
self.cores_per_socket = int(match.group(1))
else:
After Change
self.data = {}
for line in lscpu.splitlines():
m = self._KEY_VALUE_RE.match(line)
if m:
self.data[m.group("key")] = m.group("value")
else:
logging.debug("Ignoring bad lscpu line "%s"", line)
def GetInt(key):
if key in self.data and self.data[key].isdigit():
return int(self.data[key])
raise ValueError("Could not find integer "{}" in {}".format(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: bd3a1021d7d990d5d4a8a71cc0621485af2d09e4
Time: 2019-09-03
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_virtual_machine.py
Class Name: LsCpuResults
Method Name: __init__
Project Name: neurosynth/neurosynth
Commit Name: e4f774a55446bb6f7fab43d999dd6fea24158e26
Time: 2014-10-27
Author: tyarkoni@gmail.com
File Name: neurosynth/analysis/cluster.py
Class Name: Clusterer
Method Name: cluster
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 32dd1ac4e1d44382f481d0e4e22a81cbb5a66510
Time: 2015-08-13
Author: nlavine@google.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: GetIODepths