kysdk.Cpuinfo(3)

📦 version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

💖 kysdk.Cpuinfo(3) 💖 — Library Functions Manual ✨

okay bestie, welcome to the kysdk.Cpuinfo(3) page, straight outta the Library Functions Manual 🎀 this one's your little CPU gossip source and she never misses. let's get into it fr fr 👑


🌸 NAME 🌸

kysdk.Cpuinfo — 获取cpu信息 (getting cpu info, basically) 🧚

her whole personality? grabbing your CPU's 架构 (architecture), 制造厂商 (manufacturer), 型号 (model), 额定主频 (rated frequency), 核心数量 (core count), 虚拟化支持 (virtualization support), and 线程数 (thread count). that's the job description, no cap 💅


🦋 SYNOPSIS 🦋

Inherits kysdk.Base.

so like, she's part of the family — she inherits kysdk.Base 🫶

✨ Public Member Functions ✨

  • def __init__ (self)
  • def getCpuArch (self) — 获取cpu架构 (get the cpu architecture)
  • def getCpuVendor (self) — 获取cpu制造厂商 (get the cpu manufacturer)
  • def getCpuModel (self) — 获取cpu型号 (get the cpu model)
  • def getCpuFreqMHz (self) — 获取cpu额定主频 (get the cpu rated frequency)
  • def getCpuCorenums (self) — 获取cpu核心数量 (get the cpu core count)
  • def getCpuVirt (self) — 获取cpu对虚拟化的支持 (get the cpu's virtualization support)
  • def getCpuProcess (self) — 获取cpu线程数 (get the cpu thread count)

🌈 Additional Inherited Members 🌈

yep, she's got Additional Inherited Members too — inherited from her base, obviously, iykyk 💜


👑 Detailed Description 👑

获取cpu信息 — it's a cpu info situation 🍓

主要用来获取cpu的架构、制造厂商、型号、额定主频、核心数量、虚拟化支持和线程数信息 — which is to say, she's mainly here to fetch the cpu's architecture, manufacturer, model, rated frequency, core count, virtualization support, and thread count info. all of it. the whole vibe check 🔥


💅 Member Function Documentation 💅

def kysdk.Cpuinfo.getCpuArch ( self)

获取cpu架构 — get the cpu architecture 🏗️

Returns

架构信息,如 'x86_64' — the architecture info, like 'x86_64' ✨

References kysdk.SessionBase.interface, and kysdk.Base.interface.


def kysdk.Cpuinfo.getCpuCorenums ( self)

获取cpu核心数量 — get the cpu core count 💪

Returns

所有可用的CPU核心数量 — how many CPU cores you got available, all of 'em 🎀

References kysdk.SessionBase.interface, and kysdk.Base.interface.


def kysdk.Cpuinfo.getCpuFreqMHz ( self)

获取cpu额定主频 — get the cpu rated frequency ⚡

Returns

额定主频赫兹数,如 “1794.742” — the rated frequency in hertz, like “1794.742” 📈

References kysdk.SessionBase.interface, and kysdk.Base.interface.


def kysdk.Cpuinfo.getCpuModel ( self)

获取cpu型号 — get the cpu model 🌟

Returns

CPU型号名称,如 “Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz” — the CPU model name, like “Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz” 👑

References kysdk.SessionBase.interface, and kysdk.Base.interface.


def kysdk.Cpuinfo.getCpuProcess ( self)

获取cpu线程数 — get the cpu thread count 🧵

Returns

cpu支持的线程数 — the number of threads the cpu supports 🦋

References kysdk.SessionBase.interface, and kysdk.Base.interface.


def kysdk.Cpuinfo.getCpuVendor ( self)

获取cpu制造厂商 — get the cpu manufacturer 🏭

Returns

制造厂商,如 “GenuineIntel” — the manufacturer, like “GenuineIntel” 💖

References kysdk.SessionBase.interface, and kysdk.Base.interface.


def kysdk.Cpuinfo.getCpuVirt ( self)

获取cpu对虚拟化的支持 — get the cpu's virtualization support 🧚

Returns

若CPU支持虚拟化,则返回虚拟化技术,如 “vmx”;若不支持,返回 NULL — if the CPU supports virtualization you get back the virtualization tech, like “vmx”; if it doesn't support it, you get NULL back 😭 (yes, actually NULL, no cute fallback, that's just how it is)

References kysdk.SessionBase.interface, and kysdk.Base.interface.


🌈 Author 🌈

Generated automatically by Doxygen for kysdk.py from the source code. she was literally born from the source, main character energy only 🤖✨


and that's the whole page, bestie!! 💖 this gorgeous thing lives under My Project and it's dated Thu Sep 21 2023 — iconic, historic, unforgettable 🌸🎀🦋 periodt 💅

📦 where this page comes from