레이블이 ytop인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ytop인 게시물을 표시합니다. 모든 게시물 표시

rust cli tools

# xNix 전통 command 를 대체하는 rust 로 만든 command tools
time(벤치마크) - hyperfine(https://github.com/sharkdp/hyperfine)

# 그 밖에 유용한 툴
터미널 에뮬레이터 alacritty(https://github.com/alacritty/alacritty)
정규표현식 생성기 grex(https://github.com/pemistahl/grex)
코드 통계 보기 tokei(https://github.com/XAMPPRocky/tokei)
git diff 툴 git-delta(https://github.com/dandavison/delta)

# golang 경쟁? 툴

htop vtop bpytop 사용

# nix 계열에서 프로세스 모니터링을 위해 기본적으로 사용된 top 프로그램들

# C 로 만든 htop
# http://hisham.hm/htop/index.php
# https://github.com/hishamhm/htop
# 설치
# centos
yum install htop

# ubuntu
apt-get install htop

# mac
brew install htop

# h : help
# t : tree view
# p : program path
# q : quit
# P : sort by CPU
# M : sort by MEM
# T : sort by TIME
# space : tag process



# javascript 로 만든 vtop
https://parall.ax/vtop
https://github.com/MrRio/vtop
# 설치 (실행 후 업데이트 버전이 있으면 자동 업데이트)
sudo npm install -g vtop
# 실행시 옵션으로 테마를 적용할 수 있다. ex) vtop --theme monokai


# bpytop
https://github.com/aristocratos/bpytop
# python 으로 만들어졌고 cpu 온도까지 표시되는 가장 최신 스타일의 top 프로그램이다.
# 설치
pip3 install bpytop --upgrade
brew install hacker1024/hacker1024/coretemp
brew install osx-cpu-temp

# osx-cpu-temp 는 cpu 통 온도 하나만 표시하는데,
# 코어별 온도가 표시되는 coretemp 설치하면 사용하지 않아 설치할 필요 없다.
# 그런데 맥북에서 coretemp 실행하면 0 번째 코어를 찾지 못하는 문제가 있다.
# imac 에선 코어별 SMC 센서 코드가 TCOC, TC1C .. 로 0부터 시작하지만
# macbook 에선 TC1C, TC2C,.. 로 1부터 시작하는 차이가 있다.
# 그리고 CPU 전체 온도를 imac 에선 CPU DIE 로 TC0D 로 사용하지만
# macbook 에선 CPU Proximity 로 TC0P 로 사용한다.
# SMC 코드 참고 https://logi.wiki/index.php/SMC_Sensor_Codes
# 이 때문에 맥북에선 cpu core 별 온도가 표시되지 않는다.
# 해당 coretemp 코드 수정해서 PR 날린 상태다.
# 아래처럼 기존 패키지는 삭제하고 repo 로 빌드하고 복사해 사용하면 온도가 표시된다.
brew uninstall osx-cpu-temp coretemp 
git clone https://github.com/ysoftman/coretemp && cd ./coretemp && make && ./coretemp && cp -v ./coretemp /usr/local/bin

# macbookpro(mbp) coretemp 수정 PR 생성했는데 머지됐다.
# 그냥 coretemp 사용하면 된다.ㅎ

# M : 메뉴설정에서 테마 변경등을 변경할 수 있다.


# tmux 로 4개의 top 을 띄워본 화면
# 0 기본 top
# 1 htop
# 2 vtop
# 3 bpytop


# btm
# 설치
brew install bottom
# rust 로 만들었고, usage 를 그래프로 보고 싶을때 bpytop, vtop 보다 빠르게 로딩돼 좋다.

# ytop
# 설치
brew install ytop
# rust 로 만들었고, btm 처럼 빠르다.

# btop
# 설치
brew install btop
# c++ 로 만들었고 bpytop과 UI가 비슷하다.