CPUIDMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to CPUIDMBS class.

CPUIDMBS.BrandString as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The brand string.

contains the brand string, e.g. "Intel(R) Xeon(TM) CPU 2.40GHz"

See also:

CPUIDMBS.CodeName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The brief and human-friendly CPU codename, which was recognized.

Some examples using this method:

CPUIDMBS.ExtFamily as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
CPU extended family.

Some examples using this method:

CPUIDMBS.ExtModel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
CPU extended model

Some examples using this method:

CPUIDMBS.Family as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
CPU family.

See also:

CPUIDMBS.FeatureName(index as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the short textual representation of a CPU flag.

A constant string like "fpu", "tsc", "sse2", etc.
See kFeature* constants.

CPUIDMBS.Flags(index as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Queries whether a given feature is available.
Example
dim c as new CPUIDMBS

if c.Flags(CPUIDMBS.kFeatureLM) then
MsgBox "64-bit CPU"
else
MsgBox "32-bit CPU"
end if

See kFeature* constants.

CPUIDMBS.L1DataCache as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
L1 data cache size in KB.

Could be zero, if the CPU lacks cache.
If the size cannot be determined, it will be -1.

Some examples using this method:

CPUIDMBS.L1InstructionCache as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
L1 instruction cache size in KB.

Could be zero, if the CPU lacks cache. If the size cannot be determined, it will be -1.
On some Intel CPUs, whose instruction cache is in fact a trace cache, the size will be expressed in K uOps.

Some examples using this method:

CPUIDMBS.L2Cache as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
L2 cache size in KB.

Could be zero, if the CPU lacks L2 cache.
If the size of the cache could not be determined, it will be -1

Some examples using this method:

CPUIDMBS.L3Cache as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
L3 cache size in KB.

Zero on most systems.

Some examples using this method:

CPUIDMBS.Model as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
CPU model.

See also:

CPUIDMBS.NumCores as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Number of CPU cores on the current processor.

Some examples using this method:

CPUIDMBS.NumLogicalCPUs as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Number of logical processors on the current processor.

Could be more than the number of physical cores, e.g. when the processor has HyperThreading.

Some examples using this method:

CPUIDMBS.Stepping as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
CPU stepping.

See also:

CPUIDMBS.TotalLogicalCPUs as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The total number of logical processors.

This is num_logical_cpus * {total physical processors in the system}

If you're writing a multithreaded program and you want to run it on all CPUs, this is the number of threads you need.

Some examples using this method:

CPUIDMBS.Vendor as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The recognized CPU vendor.

See kVendor constants.

CPUIDMBS.VendorName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CPUInfo MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The vendor name.

contains the CPU vendor string, e.g. "GenuineIntel"

The items on this page are in the following plugins: MBS Util Plugin.


💬 Ask a question or report a problem