class EL_CPU_INFO_COMMAND_IMP
Windows implementation of EL_CPU_INFO_COMMAND_I
Sample output:
Name=Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz NumberOfLogicalProcessors=8
note
description: "Windows implementation of ${EL_CPU_INFO_COMMAND_I}"
notes: "[
Sample output:
Name=Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
NumberOfLogicalProcessors=8
]"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2024-03-29 11:43:31 GMT (Friday 29th March 2024)"
revision: "14"
class
EL_CPU_INFO_COMMAND_IMP
inherit
EL_CPU_INFO_COMMAND_I
export
{NONE} all
end
EL_CAPTURED_OS_COMMAND_IMP
rename
do_with_lines as do_with_output_lines
end
EL_WINDOWS_IMPLEMENTATION
create
make, make_default
feature {NONE} -- Constants
Delimiter: CHARACTER_32 = '='
Field: TUPLE [model_name, processors: ZSTRING]
once
create Result
Tuple.fill (Result, "Name, NumberOfLogicalProcessors")
end
Template: STRING = "wmic cpu get NumberOfLogicalProcessors, Name /format:list"
end