X7ROOT File Manager
Current Path:
/opt/golang/1.22.0/src/cmd/compile
opt
/
golang
/
1.22.0
/
src
/
cmd
/
compile
/
📁
..
📄
README.md
(14.95 KB)
📄
abi-internal.md
(40.62 KB)
📄
default.pgo
(279.34 KB)
📄
doc.go
(11.86 KB)
📁
internal
📄
main.go
(1.33 KB)
📄
profile.sh
(588 B)
Editing: profile.sh
# Copyright 2023 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This script collects a CPU profile of the compiler # for building all targets in std and cmd, and puts # the profile at cmd/compile/default.pgo. dir=$(mktemp -d) cd $dir seed=$(date) for p in $(go list std cmd); do h=$(echo $seed $p | md5sum | cut -d ' ' -f 1) echo $p $h go build -o /dev/null -gcflags=-cpuprofile=$PWD/prof.$h $p done go tool pprof -proto prof.* > $(go env GOROOT)/src/cmd/compile/default.pgo rm -r $dir
Upload File
Create Folder