pprof_thread_count

command
v0.5.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Goが内部で利用しているスレッド数を表示するサンプルです。

結果は例えば以下のようになります。(結果は環境によって異なります。)

$ go install github.com/go-task/task/v3/cmd/task@latest
$ go install honnef.co/go/tools/cmd/staticcheck@latest
$ task
task: [run] go fmt
task: [run] go vet ./...
task: [run] staticcheck ./...
task: [run] go run main.go
[BEFORE] lock-thread=false      thread count=5
[AFTER ] lock-thread=false      thread count=5
[BEFORE] lock-thread=true       thread count=5
[AFTER ] lock-thread=true       thread count=15

REFERENCES:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL