mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
pgo: Enable pgo behind release flag (#13158)
* Revert a54e61ecb0
* Configure the use of pgo profiles behind the release config flag (--config=release)
This commit is contained in:
parent
4a515c36e6
commit
3097601530
1
.bazelrc
1
.bazelrc
@ -27,6 +27,7 @@ build:minimal --@io_bazel_rules_go//go/config:tags=minimal
|
||||
# Release flags
|
||||
build:release --compilation_mode=opt
|
||||
build:release --stamp
|
||||
build:release --define pgo_enabled=1
|
||||
|
||||
# Build binary with cgo symbolizer for debugging / profiling.
|
||||
build:cgo_symbolizer --copt=-g
|
||||
|
@ -144,6 +144,11 @@ config_setting(
|
||||
values = {"define": "coverage_enabled=1"},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "pgo_enabled",
|
||||
values = {"define": "pgo_enabled=1"},
|
||||
)
|
||||
|
||||
common_files = {
|
||||
"//:LICENSE.md": "LICENSE.md",
|
||||
"//:README.md": "README.md",
|
||||
|
@ -110,6 +110,10 @@ docker_push(
|
||||
go_binary(
|
||||
name = "beacon-chain",
|
||||
embed = [":go_default_library"],
|
||||
pgoprofile = select({
|
||||
"//:pgo_enabled": "pprof.beacon-chain.samples.cpu.pb.gz",
|
||||
"//conditions:default": None,
|
||||
}),
|
||||
visibility = [
|
||||
"//beacon-chain:__subpackages__",
|
||||
"//testing/endtoend:__pkg__",
|
||||
|
BIN
cmd/beacon-chain/pprof.beacon-chain.samples.cpu.pb.gz
Normal file
BIN
cmd/beacon-chain/pprof.beacon-chain.samples.cpu.pb.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user