cores

cores

Reports details about each core your chip supports.

On chips that support Simultaneous Multi-Threading (hyper-threading) we return a core for each virtual core. So a CPU with 8 physical cores that supports hyper-threading will report 16 cores.

For each core we return

  • Name - brand name of cpu

  • Vendor

  • Architecture

  • Socket - zero based socket no. Not supported on all systems and will return 0 in these cases.

The Socket represents a physical processor. Most PC and mobile devices only have a single Socket. Server grade hardware may report multiple sockets.

Example Values:

  • 4

  • 16

Example:

import "package:system_info2/system_info2.dart";

print("Processors         : ${SysInfo.processors}");

Last updated