(info, new_info)
| 1818 | return {} |
| 1819 | |
| 1820 | def CopyNewFields(info, new_info): |
| 1821 | keys = [ |
| 1822 | 'vendor_id', 'hardware', 'brand', 'hz_advertised', 'hz_actual', |
| 1823 | 'hz_advertised_raw', 'hz_actual_raw', 'arch', 'bits', 'count', |
| 1824 | 'raw_arch_string', 'l2_cache_size', 'l2_cache_line_size', |
| 1825 | 'l2_cache_associativity', 'stepping', 'model', 'family', |
| 1826 | 'processor_type', 'extended_model', 'extended_family', 'flags', |
| 1827 | 'l3_cache_size', 'l1_data_cache_size', 'l1_instruction_cache_size' |
| 1828 | ] |
| 1829 | |
| 1830 | for key in keys: |
| 1831 | if new_info.get(key, None) and not info.get(key, None): |
| 1832 | info[key] = new_info[key] |
| 1833 | |
| 1834 | def get_cpu_info(): |
| 1835 | ''' |
no outgoing calls
no test coverage detected
searching dependent graphs…