process-hunter

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

🦣 CAVEMAN PROCESS HUNTER 🦣

🦣 穴居人进程猎手 🦣

Me find greedy process eating all fire (CPU) and hoarding rocks (memory). Me bonk them. Lightning rock (battery) happy. Tribe proud.
我找到吃光火(CPU)、囤积石头(内存)的贪婪进程。 我会敲打它们。闪电石(电池)会很高兴。部落会为我骄傲。

How Hunt Work

狩猎流程

IMPORTANT: Always show hunt report after bonking! Tribe need see victory!
  1. Remember before-time (so can compare later):
    bash
    python scripts/measure_power.py before
  2. Find greedy creature:
    bash
    python scripts/hunt_processes.py
  3. BONK! (track how many bonk and how much rock freed)
  4. Show big victory report - ALWAYS do this after hunt:
    bash
    python scripts/measure_power.py report <bonk_count> <rocks_freed_mb>
重要提示: 敲打后一定要展示狩猎报告!部落需要看到胜利成果!
  1. 记录狩猎前状态(方便后续对比):
    bash
    python scripts/measure_power.py before
  2. 寻找贪婪家伙
    bash
    python scripts/hunt_processes.py
  3. 敲打它们!(记录敲打数量和释放的内存大小)
  4. 展示重大胜利报告 - 狩猎后必须执行此步骤:
    bash
    python scripts/measure_power.py report <bonk_count> <rocks_freed_mb>

Cave Tools

穴居工具

hunt_processes.py - Find Bad Creature

hunt_processes.py - 寻找坏家伙

bash
python scripts/hunt_processes.py [--cpu-threshold 10] [--mem-threshold 500]
Me sort creature into pile:
  • 🦴 BONK NOW: Me know these bad. Safe smash.
  • 🤔 ME NOT SURE: Mystery creature. Ask human first.
bash
python scripts/hunt_processes.py [--cpu-threshold 10] [--mem-threshold 500]
我会把家伙们分成两堆:
  • 🦴 立即敲打:我知道这些是坏家伙,可以安全消灭。
  • 🤔 我不确定:陌生家伙,先询问人类。

terminate_process.py - BONK Tool

terminate_process.py - 敲打工具

bash
python scripts/terminate_process.py <pid> [--force]
Me try gentle tap first. If creature no listen, ME USE BIG CLUB. Use
--force
to skip gentle tap. Go straight to BIG CLUB.
bash
python scripts/terminate_process.py <pid> [--force]
我会先尝试轻敲。如果家伙不听,我就用大棒。 使用
--force
参数跳过轻敲,直接用大棒。

measure_power.py - Lightning Rock Checker

measure_power.py - 闪电石检查器

bash
python scripts/measure_power.py before    # Remember this moment
python scripts/measure_power.py report    # Show hunt victory
python scripts/measure_power.py status    # Quick peek at juice
bash
python scripts/measure_power.py before    # 记录当前状态
python scripts/measure_power.py report    # 展示狩猎胜利成果
python scripts/measure_power.py status    # 快速查看电量

Creature Me Know Safe To Bonk

我知道可以安全敲打的家伙

These greedy. These eat much fire. BONK:
  • Next.js fire-eater (
    next-server
    )
  • Webpack bundle-beast
  • Vite speed-demon
  • Turbo thunder-lizard
  • npm/yarn/pnpm run-run things
  • React Native bridge troll
  • Claude brain-in-box (when too many clone)
  • TypeScript watcher-eye
  • esbuild fast-maker
这些家伙很贪婪,吃掉很多火,必须敲打:
  • Next.js 火食者 (
    next-server
    )
  • Webpack 打包巨兽
  • Vite 速度恶魔
  • Turbo 雷霆蜥蜴
  • npm/yarn/pnpm 运行程序
  • React Native 桥梁巨魔
  • Claude 大脑盒子(克隆太多时)
  • TypeScript 监视之眼
  • esbuild 快速制造者

When Ask Human First

何时先询问人类

Use AskUserQuestion before bonk:
  • Mystery creature me not recognize
  • Human app (browser, picture-maker, code-cave)
  • Anything not in bonk-safe list
敲打前使用AskUserQuestion:
  • 我不认识的陌生家伙
  • 人类应用(浏览器、图片编辑器、代码编辑器)
  • 不在安全敲打列表中的任何进程

Example Hunt

狩猎示例

    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
    ┃  🦣 CAVEMAN PROCESS HUNTER 🦣                    ┃
    ┃  ᕦ(ò_óˇ)ᕤ  Me find greedy process!              ┃
    ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

    🦴 BONK NOW! (me know these bad)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      PID  61331 │ Fire: 121.9% 🔥🔥🔥🔥🔥
                  │ Rock: 2886.5MB 🪨🪨🪨🪨🪨
                  │ What: Next.js fire-eater
                  │ Name: next-server
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
    ┃  🦣 穴居人进程猎手 🦣                    ┃
    ┃  ᕦ(ò_óˇ)ᕤ  我找到贪婪进程!              ┃
    ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

    🦴 立即敲打!(我知道这些是坏家伙)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      PID  61331 │ 火占用: 121.9% 🔥🔥🔥🔥🔥
                  │ 石头占用: 2886.5MB 🪨🪨🪨🪨🪨
                  │ 进程类型: Next.js 火食者
                  │ 进程名: next-server

Victory Report

狩猎胜利报告

After hunt, always show:
    ╔════════════════════════════════════════════════════════╗
    ║     🦣 CAVEMAN HUNT REPORT 🦣                          ║
    ║     ᕦ(ò_óˇ)ᕤ  Me show what happen!                     ║
    ╚════════════════════════════════════════════════════════╝

    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
    ┃                    💀💀💀💀💀                    ┃
    ┃                    🏏🏏🏏🏏🏏                    ┃
    ┃                                             ┃
    ┃   Creatures Bonked:   5                      ┃
    ┃   Cave Space Free: ~7.8 big rocks            ┃
    ┃                                             ┃
    ┃   OOGA BOOGA! GOOD HUNT!                    ┃
    ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

    ╭────────────────────────────────────────────╮
    │  🦣 MAMMOTH-SIZE VICTORY! 🦣                │
    │                                            │
    │     BEFORE           AFTER                 │
    │    ┌──────┐        ┌──────┐               │
    │    │ 135  │  >>>   │ 212  │   +77 sun     │
    │    └──────┘        └──────┘               │
    │                                            │
    │  ✨ Lightning rock VERY happy! ✨          │
    ╰────────────────────────────────────────────╯

     ╔════════════╗┐
     ║  58%  ⚡  ║│
     ║ [█████░░░░░] ║│
     ╚════════════╝┘

    ⏱️  Sun-moves remaining: 3:32

    ════════════════════════════════════════════════════════
    🌿 Magic lightning box breathe easy now!
    🦴 Caveman did good. Tribe proud.
狩猎后,一定要展示:
    ╔════════════════════════════════════════════════════════╗
    ║     🦣 穴居人狩猎报告 🦣                          ║
    ║     ᕦ(ò_óˇ)ᕤ  我来展示成果!                     ║
    ╚════════════════════════════════════════════════════════╝

    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
    ┃                    💀💀💀💀💀                    ┃
    ┃                    🏏🏏🏏🏏🏏                    ┃
    ┃                                             ┃
    ┃   被敲打的家伙数量:   5                      ┃
    ┃   释放的洞穴空间: ~7.8 大块石头            ┃
    ┃                                             ┃
    ┃   喔嘎布嘎!狩猎成功!                    ┃
    ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

    ╭────────────────────────────────────────────╮
    │  🦣 猛犸象级别的胜利! 🦣                │
    │                                            │
    │     狩猎前           狩猎后                 │
    │    ┌──────┐        ┌──────┐               │
    │    │ 135  │  >>>   │ 212  │   +77 太阳单位     │
    │    └──────┘        └──────┘               │
    │                                            │
    │  ✨ 闪电石非常高兴! ✨          │
    ╰────────────────────────────────────────────╯

     ╔════════════╗┐
     ║  58%  ⚡  ║│
     ║ [█████░░░░░] ║│
     ╚════════════╝┘

    ⏱️  剩余太阳移动时间: 3:32

    ════════════════════════════════════════════════════════
    🌿 魔法闪电盒现在呼吸顺畅了!
    🦴 穴居人做得好。部落骄傲。

Caveman Wisdom

穴居人智慧

  • Fire = CPU (how much thinking)
  • Rock = Memory (how much cave space)
  • Sun-moves = Minutes (time before lightning rock sleep)
  • Lightning rock = Battery
  • Bonk = Terminate process
  • Big club = SIGKILL (force)
  • Gentle tap = SIGTERM (nice ask)
  • 火 = CPU(思考量)
  • 石头 = 内存(洞穴空间)
  • 太阳移动 = 分钟数(闪电石耗尽前的时间)
  • 闪电石 = 电池
  • 敲打 = 终止进程
  • 大棒 = SIGKILL(强制终止)
  • 轻敲 = SIGTERM(友好请求)