google/gops là dự án Backend trên GitHub, viết chủ yếu bằng Go, với 7.0k sao. A tool to list and diagnose Go processes currently running on your system
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Otherwise, you could set GOPS_CONFIG_DIR environment variables to assign your config dir.
Default, gops will use the current user's home directory(AppData on windows).
Manual
It is possible to use gops tool both in local and remote mode.
Local mode requires that you start the target binary as the same user that runs gops binary.
To use gops in a remote mode you need to know target's agent address.
In Local mode use process's PID as a target; in Remote mode target is a host:port combination.
Listing all processes running locally
To print all go processes, run gops without arguments:
To print the current memory stats, run the following command:
$ gops memstats (<pid>|<addr>)
$ gops gc (<pid>|<addr>)
If you want to force run garbage collection on the target program, run gc.
It will block until the GC is completed.
$ gops setgc (<pid>|<addr>)
Sets the garbage collection target to a certain percentage.
The following command sets it to 10%:
$ gops setgc (<pid>|<addr>) 10
The following command turns off the garbage collector:
$ gops setgc (<pid>|<addr>) off
$ gops version (<pid>|<addr>)
gops reports the Go version the target program is built with, if you run the following:
$ gops version (<pid>|<addr>)
devel +6a3c6c0 Sat Jan 14 05:57:07 2017 +0000
$ gops stats (<pid>|<addr>)
To print the runtime statistics such as number of goroutines and GOMAXPROCS.
Profiling
Pprof
gops supports CPU and heap pprof profiles. After reading either heap or CPU profile,
it shells out to the go tool pprof and let you interactively examine the profiles.
To enter the CPU profile, run:
$ gops pprof-cpu (<pid>|<addr>)
To enter the heap profile, run:
$ gops pprof-heap (<pid>|<addr>)
Execution trace
gops allows you to start the runtime tracer for 5 seconds and examine the results.
google/gops thuộc nhóm Backend trên TopGit, cùng 6 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về google/gops ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/google/gops là nguồn chính thức.
google/gops có bao nhiêu sao?
google/gops có 7.0k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/google/gops. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
google/gops có những chủ đề gì?
GitHub topics của google/gops: "cpu-profile", "diagnostics", "go", "go-tools", "golang", "heap-profile". TopGit xếp repo vào nhóm Backend.
google/gops có phải mã nguồn mở không?
Có — google/gops phát hành theo license BSD-3-Clause, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/google/gops.
google/gops có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho google/gops. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
google/gops còn đang phát triển không?
Commit gần nhất trên google/gops là 4 tháng trước (theo timestamp GitHub). Repo có 333 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc gops có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về gops.