Skip to content
项目

关于

A performance monitoring and tuning tool suite for Android that works with Basic, Wireless ADB, Shizuku, and Root across most devices, with extra hardware features for supported chipsets.

开发工具

这些数字如何统计

12 星标0 复刻 +2 24小时

实测星标增长

24小时
+2
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

PerfCat

Build APK Latest Release Commit Activity Android 7.0 - 16 ABIs: arm64-v8a, armeabi-v7a, x86_64 Web CSV Analyzer License: MIT

PerfCat icon
  • PerfCat is a native Kotlin (Jetpack Compose / Miuix) Android performance monitoring, FPS & frametime analytics, system toolbox, interactive PTY terminal, and hardware tuning suite backed by a lightweight native C telemetry engine (perfcat_native).
  • Works universally across MediaTek, Qualcomm Snapdragon, Samsung Exynos/Xclipse, Google Tensor, and PowerVR devices via automatic runtime sysfs discovery, dynamic chip frequency scaling, and Qualcomm bus_dcvs/DDR + MediaTek DVFSRC probes.
  • Runs across four privilege tiers — Basic Mode (no Root / no Shizuku), USB / Wireless ADB Mode (built-in Android 11+ pairing, no PC or Shizuku), Shizuku Mode, and Root Mode — automatically unlocking every capability your device exposes.

Download Latest APK · Web CSV Analyzer · Features · Privilege Tiers · Build Guide · Duchamp Extras


Features

Monitoring, FPS Analytics & Overlays

  • Live Hardware Dashboard — Real-time RAM & ZRAM/Swap rings, GPU clock/load/EGL renderer, per-core CPU load histograms & frequencies, battery wattage/voltage/temperature, uptime, DDR/UFS clocks (including Qualcomm /sys/devices/system/cpu/bus_dcvs/DDR/cur_freq & MediaTek DVFSRC), and an opt-in offline/online SoC graphic database with custom crop & zoom.
  • 8 Customizable Floating Overlays —
    • MSI Afterburner / RTSS OSD: Custom Canvas renderer with bundled RTSS condensed font (rtss_afterburner.ttf), color-coded GPU, CPU, SOC, BAT, RAM, DDR, FPS, 0.1% Low, and OGL/VK or viewport rows, plus tap-to-cycle styles (Dark Box → Dark Box + Frametime Graph → Transparent OSD).
    • Classical Monitor, Mini Monitor, Temperature Monitor, PC HUD, FPS Recorder Pill, Process Monitor, and Thread Monitor, with adjustable size, font scale, background opacity, and per-stat visibility toggles.
  • Synchronized FPS Recorder & Universal Log Importer — Samples FPS and full system telemetry on a synchronized 1.0 s (1 Hz) cycle (500 ms / 2 Hz in Precision Mode) using SurfaceFlinger --latency → --timestats → gfxinfo (or Choreographer in Basic Mode). Saves sessions with AVG / MIN / MAX / 5% Low / 0.1% Low / Smoothness KPIs, 8 dynamic chip-scaled charts, 1080p PNG report export, and CSV/JSON exports. Supports in-app multi-file import of Scene CSV, PerfCat Detailed CSV/JSON (current & legacy), raw sess_*.json backups, and FPS Meter CSV logs directly inside FrameRate Stats.
  • Companion Web CSV Analyzer — Drag and drop PerfCat *_detailed.csv, *_summary.csv, or .json files into PerfCat Web Analyzer (100% local in-browser, zero uploads) for synchronized 8-chart scrubbing, side-by-side session comparison, raw table inspection, and PNG export.

System Toolbox, Diagnostics & Terminal

  • System Toolbox — Dedicated modal utilities for everyday power-user tasks:
    • Saved Wi-Fi Passwords (Root): Parses Android 11–16 /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml, legacy WifiConfigStore.xml, and wpa_supplicant.conf with 1-tap password copy.
    • DPI & Resolution Adjustment (Root / Shizuku / ADB): HD / FHD / 2K / 4K / RESTORE aspect-ratio templates and custom W×H/DPI protected by a 30-second auto-revert safety screen, live touch-alignment overlay (pointer_location), and a detached OS-level watchdog that automatically restores native resolution & DPI on timeout or cancel.
    • Device Model Modifier (Root): 5-field ro.product.* spoofing with high-FPS device templates via live resetprop or a removable systemless Magisk/KernelSU module (never modifies read-only /system/build.prop).
    • Custom WLAN MAC Changer (Root): Supports both Solution 1 (netlink ip link) and Solution 2 (Android 10+/Q+ Wi-Fi cycle + randomization toggle), random MAC generation, original MAC backup/restore, and optional retain after reboot.
    • Force DEX2OAT Compile (Root / Shizuku / ADB): Run speed-profile, speed, everything, reset, or compact AOT compilation across all apps or any single user app.
  • Activities & Services Launcher — Browse and search all installed apps' declared Activities and Services (including non-exported/disabled components), launch directly via Root/ADB/Shizuku (am start / am startservice / am stopservice), or copy full component names.
  • Process Manager & Deep Process Inspector — Search, sort, and inspect any process in detail (PID, User, CPU(AVG), expandable live Show Threads..., RES / SHR / SWAP, AppName, CMD, CMDLine, Running state, cpuset, cgroup, cpus, oom_adj, oom_score_adj) with MANAGE, STOP(ANDROID), and KILL (-9) actions.
  • Last Kernel Panic & Crash Logs Viewer (Root) — Displays last boot/reset reason (ro.boot.bootreason, sys.boot.reason.last, MTK /proc/aed/reboot-reason, powerup_reason) and auto-discovers /sys/fs/pstore (dmesg-ramoops / console-ramoops), /proc/last_kmsg, /data/system/dropbox (auto-gunzips .gz), MediaTek aee_exp dumps, and live dmesg faults with Panic/Trace/Errors filters, 1-tap crash snippet copy, full .txt share export, and pstore cleanup.
  • Isolated Interactive PTY Terminal — Built-in Termux-grade VT100/xterm-256color emulator (libperfcat_pty.so, isolated under com.perfcat.term.* with zero interference with Termux) supporting multi-tab Root (PTY), Basic (PTY), Shizuku, and ADB shells, pinch-to-zoom, hardware keyboards, and a 2-row Extra Keys bar.
  • Built-In USB & On-Device Wireless ADB — Elevate PerfCat to UID 2000 directly on-device via Android 11+ Wireless Debugging (SPAKE2 + TLS 1.3) without needing Shizuku or a PC, running on a dedicated loopback port range (47891–47899).
  • In-App GitHub Updater, Renderer Selector & Power Menu — Automatic per-ABI GitHub Release update checker & APK self-installer, OpenGL ES / Skia Vulkan (SkiaVK) app UI renderer switch in Settings, and a quick Reboot/Recovery/Bootloader/Fastbootd/Shutdown Power Menu.

Hardware, Power, Memory & Vendor Tuning (Root)

  • CPU, GPU, DDR, UFS & Kernel Manager — Runtime-discovered CPU cluster bounds/locks & governors, GPU frequency bounds/locks, DDR & UFS devfreq locks, uclamp / MGLRU / TCP congestion / I/O scheduler controls, Global Refresh Rate (Auto / 60 / 90 / 120 Hz), App Freezer, and a live Hardware/Sysfs Probe.
  • Enhanced SWAP Control & Memory Info — Live Swapfile (/data/swapfile create/remove) & ZRAM ring gauges, ZRAM size & compression algorithm tuner, VM Parameters (swappiness, extra_free_kbytes, watermark_scale_factor), Enabled Swap (/proc/swaps), ZRAM stats (mm_stat, compression ratio, bd_stat writeback), lifetime SWAP IO (GB read/written), page cache drop/compact, and full /proc/meminfo breakdown.
  • Charging Stats, Power Monitor & Universal Charge Control — Live kernel fuel-gauge telemetry (%, Wh, power curves, per-app discharge scenes, bms/uevent), plus Universal Charge Control (STOP / RESUME CHARGING, Software Fake Bypass Smart Hold, Charging Speed Cap, and Charging Protection) for all rooted devices.
  • MI Thermal Editor (Xiaomi / Redmi / POCO Exclusive, Root) — Auto-discovers /odm/etc, /vendor/etc, and /system/etc thermal configs, automatically decrypts and re-encrypts AES-128-CBC (PKCS#7) Xiaomi thermal-*.conf files, provides lossless [SECTION] and raw text editing with live SS-* trig/clr/target validation, protects incompatible binary configs as read-only, and supports instant Live Bind-Mount (su -mm), persistent Magisk / KernelSU module export, mi_thermald restart, Xiaomi sconfig profiles, and kernel trip-point editing.
  • MTK / Dimensity Exclusive Controls (Root) — Outstanding performance thermal ceiling override for Dimensity 8X00 / 9X00 (board_sensor_temp, max_ttj, ttj) plus live FPSGO and FBT ceiling toggles.
  • Device-Specific Extensions — Optional Xiaomi Duchamp (POCO X6 Pro / Redmi K70E) hardware Bypass Charging & guardian daemon extras are documented in docs/DUCHAMP.md (tip: rapidly tap 5 times on Duchamp's Power tab header to also reveal Software Bypass & Universal Charge Controls).

Privilege Tiers

Capability Basic (no root / no ADB) USB / Wireless ADB & Shizuku (UID 2000) Root (su)
RAM / Swap & Battery / Voltage / Wattage / Power Monitor ✅ Android APIs + /proc/meminfo ✅ ✅
CPU clocks & load ⚠️ Clocks if readable; freq-scaled load ✅ /proc/stat or cpuinfo ✅ Exact /proc/stat + clocks
GPU clock, load & thermal sensors ⚠️ Readable sysfs only ⚠️ SELinux-dependent (thermalservice fallback) ✅ Full sysfs / devfreq
DDR & UFS live clocks ❌ ⚠️ Kernel-dependent ✅ Devfreq / DVFSRC / bus_dcvs
Floating Overlays ✅ 6 monitors (RTSS, Classical, Mini, Temp, PC HUD, FPS Pill) ✅ All 8 monitors ✅ All 8 monitors
FPS Recorder, Scene/PerfCat CSV Import & Web Export ✅ Choreographer + CSV/JSON Import ✅ SurfaceFlinger + OGL/VK + Import ✅ SurfaceFlinger + OGL/VK + Import
Interactive PTY Terminal & In-App Updater ✅ Local PTY (sh / bash) + Updater ✅ UID 2000 shell + local PTY ✅ Root PTY (bash / BusyBox ash)
DPI & Resolution (30s Safety Guard) & Force DEX2OAT ❌ ✅ wm size/density + cmd package compile ✅ + OS-level auto-revert watchdog
Activities Launcher, Process Inspector, Refresh & Freezer ⚠️ Browse + exported intents ✅ Privileged launch, inspect, am force-stop, freeze ✅ + SIGKILL (-9) & full /proc stats
Saved Wi-Fi, Model Spoof, MAC Changer & Kernel Panic Logs ❌ ❌ ✅ Full access
CPU/GPU/DDR/UFS Tuning, Enhanced SWAP, MI Thermal, MTK Exclusive & Charge Control ❌ ❌ ✅ Full hardware control

Auto-Detection: Privilege resolution defaults to Auto (Root → Shizuku → ADB → Basic) and can be switched manually in Settings & Probe. GPU backends auto-detect MediaTek Mali, Qualcomm Adreno (kgsl-3d0), Samsung Exynos / Xclipse, and Imagination PowerVR, falling back to /sys/class/devfreq/*gpu*. Chart Y-axis ceilings automatically scale to each chip's advertised maximum CPU, GPU, and DDR frequencies.


Requirements

  • Android 7.0 (API 24) through Android 16 (API 36) — separate per-ABI APKs for arm64-v8a, armeabi-v7a, and x86_64 (minSdk 24, targetSdk 36, compileSdk 36).
  • Basic Mode: Only Display over other apps if using floating overlays.
  • Wireless ADB / Shizuku Mode: Android 11+ Wireless Debugging (built directly into PerfCat) or Shizuku.
  • Root Mode: su from KernelSU / KernelSU Next / Magisk / APatch.

Known Limitations

  • Non-root SELinux restrictions (Basic / Shizuku / ADB): Some stock ROMs restrict non-root reads to /sys/class/kgsl/*, /sys/class/devfreq/*, or /sys/class/thermal/thermal_zone*. PerfCat falls back where possible (thermalservice, cpuinfo, BatteryManager) and reports N/A or 0 instead of faking numbers. Use Settings & Probe → Re-run Hardware Probe to inspect available nodes on your kernel.
  • Basic Mode FPS: Uses Android Choreographer (UI VSync pace) rather than SurfaceFlinger game render timestamps.
  • OEM / Driver Restrictions: Some OEMs enforce per-app refresh policies over global settings keys, certain Wi-Fi firmwares lock hardware MAC addresses in NVRAM, and writable DDR/UFS devfreq or MTK fpsgo/ttj nodes depend on kernel support.

Building from Source

Toolchain & Bytecode Spec
Layer Version
App Java/Kotlin bytecode Java 11 (sourceCompatibility / targetCompatibility / jvmTarget = 11, major version 55)
Gradle Java toolchain JDK 11 on Linux/macOS/CI (kotlin { jvmToolchain(11) }); skipped on Termux/Android
Core-library desugaring Disabled
Gradle / AGP runtime JDK 17+ (Gradle 8.11.1, AGP 8.7.3, Kotlin 2.0.21)
Android SDK / NDK compileSdk 36, targetSdk 36, minSdk 24, NDK 27.0.12077973
Building in Termux (ARM64)
  1. Install packages in Termux:
    pkg install git openjdk-17 openjdk-11 aapt2 unzip clang
    
  2. Clone and build:
    git clone https://github.com/system32crowdstrikewin11/PerfCat-OSS.git
    cd PerfCat-OSS
    chmod +x build-termux.sh gradlew
    ./build-termux.sh assembleDebug
    
  3. Install the APK:
    su -c "pm install -r app/build/outputs/apk/debug/app-debug.apk"
    
GitHub Actions CI & Release Signing

.github/workflows/build-apk.yml builds on every push to main, pull request, tag (v*), and manual dispatch:

  • Compiles libperfcat_native.so, libperfcat_adb.so, and libperfcat_pty.so (16 KB page-aligned) with NDK 27, verifies Java 11 bytecode, and publishes debug + release APKs with SHA256SUMS.txt.
  • Configure repository secrets PERFCAT_KEYSTORE_BASE64, PERFCAT_KEYSTORE_PASSWORD, PERFCAT_KEY_ALIAS, and PERFCAT_KEY_PASSWORD for signed CI releases, or create a git-ignored keystore.properties locally.

Credits & License

  • FPS monitoring backend — rdevz-ph/FPS-Meter-Android (SurfaceFlinger --latency / --timestats capture, Graphics API detection, and fallback techniques).
  • MediaTek hardware tooling — Chandan977808/Duchamp-Essential (GPU profiles, GED/Mali power policies, thermal sconfig, and sysfs node references).
  • Interactive PTY terminal — termux/termux-app (terminal-emulator & terminal-view, Apache 2.0, relocated and isolated under com.perfcat.term.*).
  • Bypass charging & core telemetry suite — Original work by the PerfCat authors.

Licensed under the MIT License (see LICENSE for third-party component notices).

探索相关项目

加载中…