Skip to content

Tobiichi-Origuchi/CefDetectorLinux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

139 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CEF Detector Linux - 一眼CEF Linux: 年轻人的第一款 Linux CEF检测器 Release

Check how many CEFs are on your Linux

【使用 rust 编写,专为 Linux 打造】

看看你电脑 (Linux) 上有多少个 CEF (Chromium Embedded Framework)

Note 欢迎你把程序截图发到 Discussions 中, 看看谁才是真的 《超级CEF王》

你说的对,但是《LibCEF》是由谷歌自主研发的一款全新开放浏览器内核。第三方代码运行在在一个被称作「CEF」的浏览器沙盒,在这里,被前端程序员选中的代码将被授予「libcef.so」,导引浏览器之力‌。你将扮演一位名为「电脑用户」的冤种角色,在各种软件的安装中下载类型各异、体积庞大的 CEF 们,被它们一起占用硬盘空间,吃光你的内存——同时,逐步发掘「CEF」的真相

截屏

Screenshot

安装

Debian

Release 页面下载最新的 .deb 包安装

Arch Linux

yay/paru -S cefdetector-bin

使用

GUI

cefdetector

Cli

例如以 JSON 格式打印

cefdetector --json

使用 cefdetector --help 查看更多用法

忽略目录

通过创建一个配置文件来忽略特定目录

例如在 ~/.config/cefdetector/.ignore(或 $XDG_CONFIG_HOME/cefdetector/.ignore)中:

# 忽略目录名称(跳过所有名为 target 和 node_modules 的目录)
target
node_modules

# 忽略绝对路径
/home/user/myproject/build

特性

  • 检测 CEF 的类型: 如 libcefElectronNWJSCefSharpMiniBlinkMiniElectronEdgeChrome
  • 检测应用图标: 通过解析 PE、AppImage、同级目录、快捷方式、包管理器(目前仅支持 APT/Pacman/RPM/Portage/Flatpak/Snap/Nix/Brew)
  • 显示总空间占用
  • 显示当前所运行的进程 (绿色文件名)
  • 单独显示每个程序的空间占用并按大小排序

Benchmark

$ hyperfine -w 5 -r 10 "./target/release/cefdetector -T" "./target/release/cefdetector -J" "./target/release/cefdetector -C"
Benchmark 1: ./target/release/cefdetector -T
  Time (mean ± σ):     478.6 ms ±  13.3 ms    [User: 1598.4 ms, System: 1473.7 ms]
  Range (min … max):   459.9 ms … 503.2 ms    10 runs

Benchmark 2: ./target/release/cefdetector -J
  Time (mean ± σ):     484.0 ms ±  12.4 ms    [User: 1621.7 ms, System: 1489.3 ms]
  Range (min … max):   462.1 ms … 499.3 ms    10 runs

Benchmark 3: ./target/release/cefdetector -C
  Time (mean ± σ):     478.7 ms ±   9.0 ms    [User: 1605.8 ms, System: 1468.9 ms]
  Range (min … max):   470.4 ms … 499.1 ms    10 runs

作者

Origuchi

创意来自 @Lakr233 的 SafariYYDS 及 @ShirasawaSama 的 CefDetectorX 项目

协议

MIT

About

Check how many CEFs are on your Linux. 检测你电脑上有几个CEF.

Topics

Resources

License

Stars

Watchers

Forks

Contributors