Retour au classement

tlkh/asitop

Pythontlkh.github.io/asitop/

Perf monitoring CLI tool for Apple Silicon

cpugpuclimacosm1apple-silicon
Croissance des étoiles
Étoiles
4.6k
Forks
214
Croissance hebdomadaire
Issues
52
2k4k
oct. 2021mai 2023déc. 2024juil. 2026
ArtefactsPyPIpip install asitop
README

asitop

PyPI - Downloads

Performance monitoring CLI tool for Apple Silicon

pip install asitop

What is asitop

A Python-based nvtop-inspired command line tool for Apple Silicon (aka M1) Macs.

  • Utilization info:
    • CPU (E-cluster and P-cluster), GPU
    • Frequency and utilization
    • ANE utilization (measured by power)
  • Memory info:
    • RAM and swap, size and usage
    • (Apple removed memory bandwidth from powermetrics)
  • Power info:
    • CPU power, GPU power (Apple removed package power from powermetrics)
    • Chart for CPU/GPU power
    • Peak power, rolling average display

asitop uses the built-in powermetrics utility on macOS, which allows access to a variety of hardware performance counters. Note that it requires sudo to run due to powermetrics needing root access to run. asitop is lightweight and has minimal performance impact.

asitop only works on Apple Silicon Macs on macOS Monterey!

Installation and Usage

asitop is a Python-based command line tool. You need pip to download and install asitop. macOS already comes with Python, to install pip, you can follow an online guide. After you install asitop via pip, you can use it via the Terminal.

# to enter password before start
# this mode is recommended!
sudo asitop

# it will prompt password on start
asitop

# advanced options
asitop [-h] [--interval INTERVAL] [--color COLOR] [--avg AVG]
optional arguments:
  -h, --help           show this help message and exit
  --interval INTERVAL  Display interval and sampling interval for powermetrics (seconds)
  --color COLOR        Choose display color (0~8)
  --avg AVG            Interval for averaged values (seconds)

How it works

powermetrics is used to measure the following:

  • CPU/GPU utilization via active residency
  • CPU/GPU frequency
  • Package/CPU/GPU/ANE energy consumption
  • CPU/GPU/Media Total memory bandwidth via the DCS (DRAM Command Scheduler)

psutil is used to measure the following:

  • memory and swap usage

sysctl is used to measure the following:

  • CPU name
  • CPU core counts

system_profiler is used to measure the following:

  • GPU core count

Some information is guesstimate and hardcoded as there doesn't seem to be a official source for it on the system:

  • CPU/GPU TDP
  • CPU/GPU maximum memory bandwidth
  • ANE max power
  • Media engine max bandwidth

Why

Because I didn't find something like this online. Also, just curious about stuff.

Disclaimers

I did this randomly don't blame me if it fried your new MacBook or something.

Dépôts similaires
exelban/stats

macOS system monitor in your menu bar

SwiftMIT Licensemacosmonitor
mac-stats.com
40.7k1.4k
0voice/interview_internal_reference

2025年最新总结,阿里,腾讯,百度,美团,头条等技术面试题目,以及答案,专家出题人分析汇总。

PythonPyPInetworkredis
37.2k9.4k
Rem0o/FanControl.Releases

This is the release repository for Fan Control, a highly customizable fan controlling software for Windows.

Otherfancontrol
20.3k605
seerge/g-helper

Lightweight Armoury Crate alternative for Asus laptops with nearly the same functionality. Works with ROG Zephyrus, Flow, TUF, Strix, Scar, ProArt, Vivobook, Zenbook, Expertbook, ROG Ally, and many more.

C#GNU General Public License v3.0g14mux
g-helper.com
14.3k540
plasma-umass/scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

PythonPyPIApache License 2.0pythonprofiling
13.5k435
giampaolo/psutil

Cross-platform lib for process and system monitoring in Python

PythonPyPIBSD 3-Clause "New" or "Revised" Licensepythonmonitoring
psutil.io
11.2k1.5k
unicorn-engine/unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)

CGNU General Public License v2.0emulatorframework
unicorn-engine.org
9.2k1.5k
AdnanHodzic/auto-cpufreq

Automatic CPU speed & power optimizer for Linux

PythonPyPIGNU Lesser General Public License v3.0cpuspeed
foolcontrol.org
7.6k351
hackclub/putting-the-you-in-cpu

A technical explainer by @kognise of how your computer runs programs, from start to finish.

MDXMIT Licensecpuelf
cpu.land
5.5k191
tianshiyeben/wgcloud

Linux运维监控工具,支持系统硬件信息,内存,CPU,温度,磁盘空间及IO,硬盘smart,GPU,防火墙,网络流量速率等监控,服务接口监测,大屏展示,拓扑图,端口监控,进程监控,docker监控,日志监控,文件防篡改,数据库监控,指令批量下发执行,web ssh,Linux面板(探针),告警,SNMP监测,K8S,Redis,Nginx,Kafka,资产管理,计划任务,密码管理,工作笔记

JavaMavenApache License 2.0linuxdevops
wgstart.com
5.2k906
GoogleChromeLabs/react-adaptive-hooks

Deliver experiences best suited to a user's device and network constraints

JavaScriptnpmApache License 2.0react-hooksperformance
5.2k113
amanusk/s-tui

Terminal-based CPU stress and monitoring utility

PythonPyPIGNU General Public License v2.0cpumonitoring
amanusk.github.io/s-tui/
5k177