Want to determine the manufacturer, speed of a CPU, CPU Type, CPU Physical Count, etc. from your Delphi application? Want to know the CPU Cache, Standard features, Extended features information from code ? Don’t know how to do. Don’t worry. MiTec’s System Information Management Suite’s component helps to identify easily and we will learn how to use TMiTeC_CPU component in the blog post.
Platforms: Windows.
Installation Steps:
You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.
- Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
- Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? click yes and continue.
- It will download the plugin and installs it. Once installed Click Restart now.
How to run the Demo app:
- Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi14
- Open the CPUTest project in RAD studio 10.4.1 compile and Run the application.
- This Demo App shows how to gather some of the complex CPU information and its features.
Components used in MSIC CPUTest Demo App:
- TMiTeC_CPU: Gathers complex information about CPU and its caches. Some of the Key properties were shown here.
- TMemo: To list down the CPU information and its features.
- TButton to run CPU test and close the app.
- TCheckBox to save the CPU information in different file format such as XML,SIF file.
Implementation Details:
- An instance CPU of TMiTeC_CPU is created. With CPU General properties values such as Number of Physical, logical, cores, threads, number of cores per package, etc. were retrieved.
- By looping through the CPUPhysicalCount some of the processor properties values such as Architecture, Type, Vendor, CPU Name, etc. were retrieved. Cache and its properties, Logical Processor information were shown.
- All these information were save to different file format based on the check boxes selected.
This is quite easy to collect CPU information from your application. Use this MiTeC component suite and get the job done quickly.
With the use of a Windows IDE, you can easily gather CPU information within your Windows apps with a component suite. Try your Free Trial here.