1
Fork 0

profiling results

main
Motiejus Jakštys 2022-12-11 20:54:28 +02:00
parent a6083e555c
commit d0cdfd013e
20 changed files with 6358 additions and 1969 deletions

View File

@ -59,11 +59,11 @@ load("@llvm_toolchain_with_sysroot//:toolchains.bzl", "llvm_register_toolchains"
### ZIG
BAZEL_ZIG_CC_VERSION = "70ef4dd54e8caafbc5ba93808d6cfe16d6c75290"
BAZEL_ZIG_CC_VERSION = "1fb93e089c4e2cfa52ac92f8dae4635c82df6d0a"
http_archive(
name = "bazel-zig-cc",
sha256 = "128cb23d433d7b6aa8ddb44a8c295eaff7f9f6742f8b582abff7631f8a977390",
sha256 = "5ab6451124cad1204558f02c9f88d9642abaf71bb2b1768498dfe6544ea8f653",
strip_prefix = "bazel-zig-cc-{}".format(BAZEL_ZIG_CC_VERSION),
urls = [
"https://git.sr.ht/~motiejus/bazel-zig-cc/archive/{}.tar.gz".format(BAZEL_ZIG_CC_VERSION),

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.1 MiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.2 MiB

491
results/llvm-j1.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

491
results/llvm-j8.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.0 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.3 MiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 788 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 759 KiB

491
results/llvm-sysroot-j1.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 875 KiB

491
results/llvm-sysroot-j8.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 810 KiB

923
results/profile.log Normal file
View File

@ -0,0 +1,923 @@
+ _build zigcc-hermetic-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
+ name=zigcc-hermetic-j1
+ shift
+ bazel build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
Analyzing: target //:zigzag-0 (41 packages loaded, 164 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
INFO: Deleting stale sandbox base /home/motiejus/.cache/bazel/_bazel_motiejus/e63a0563bdc05cf337d03dd7622788e2/sandbox
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[3 / 5] [Scann] Compiling main.cc
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
[5 / 5] checking cached actions
INFO: Elapsed time: 9.242s, Critical Path: 1.26s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/zigcc-hermetic-j1.data bazel --batch build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[3 / 5] Compiling main.cc; 1s linux-sandbox
[7 / 9] Compiling main.cc; 0s linux-sandbox
[12 / 13] [Prepa] Linking zigzag-29
[17 / 20] [Prepa] Creating source manifest for //:zigzag-52
[24 / 25] [Prepa] Linking zigzag-56
[31 / 33] Compiling main.cc; 0s linux-sandbox
[37 / 40] [Prepa] Creating source manifest for //:zigzag-57
[48 / 49] [Prepa] Linking zigzag-2
[57 / 60] [Prepa] Creating source manifest for //:zigzag-21
[69 / 72] [Prepa] Creating source manifest for //:zigzag-23
[84 / 85] [Prepa] Linking zigzag-14
[97 / 100] [Prepa] Creating source manifest for //:zigzag-63
[117 / 120] [Prepa] Creating source manifest for //:zigzag-1
[140 / 141] [Prepa] Linking zigzag-11
[165 / 168] [Prepa] Creating source manifest for //:zigzag-42
[192 / 193] Linking zigzag-45; 0s linux-sandbox
[227 / 229] Compiling main.cc; 0s linux-sandbox
INFO: Elapsed time: 90.377s, Critical Path: 2.51s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 16412 times to write data ]
Warning:
Processed 747805 events and lost 135 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 4296.938 MB /home/motiejus/zigcc-hermetic-j1.data (530861 samples) ]
+ _build zigcc-hermetic-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
+ name=zigcc-hermetic-j8
+ shift
+ bazel build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded)
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[0 / 5] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[4 / 5] checking cached actions
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 7.051s, Critical Path: 1.44s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/zigcc-hermetic-j8.data bazel --batch build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (37 packages loaded, 135 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 25] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (3 actions, 0 running)
[47 / 105] [Prepa] Creating source manifest for //:zigzag-4 ... (2 actions, 0 running)
[113 / 224] Compiling main.cc; 1s linux-sandbox ... (8 actions running)
[114 / 224] Compiling main.cc; 2s linux-sandbox ... (8 actions, 7 running)
[121 / 224] Linking zigzag-47; 1s linux-sandbox ... (8 actions running)
[122 / 224] Linking zigzag-9; 2s linux-sandbox ... (8 actions running)
[129 / 224] Compiling main.cc; 1s linux-sandbox ... (8 actions running)
[131 / 224] Compiling main.cc; 2s linux-sandbox ... (8 actions, 7 running)
[138 / 224] Linking zigzag-14; 2s linux-sandbox ... (8 actions, 7 running)
[146 / 224] Compiling main.cc; 2s linux-sandbox ... (8 actions, 7 running)
[155 / 224] Linking zigzag-28; 2s linux-sandbox ... (8 actions, 7 running)
[163 / 224] Compiling main.cc; 2s linux-sandbox ... (8 actions running)
[173 / 224] Linking zigzag-7; 3s linux-sandbox ... (8 actions, 7 running)
[192 / 224] Linking zigzag-13; 3s linux-sandbox ... (6 actions, 5 running)
[208 / 224] Linking zigzag-46; 3s linux-sandbox ... (8 actions, 7 running)
[244 / 257] Compiling main.cc; 2s linux-sandbox ... (8 actions, 7 running)
INFO: Elapsed time: 53.586s, Critical Path: 7.05s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 41074 times to write data ]
Warning:
Processed 1841393 events and lost 358 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 12475.263 MB /home/motiejus/zigcc-hermetic-j8.data (1538912 samples) ]
+ _build llvm-hermetic-j1 --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox
+ name=llvm-hermetic-j1
+ shift
+ bazel build --color=no --curses=no --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 1363 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 6] checking cached actions
[3 / 6] [Scann] Compiling main.cc
[4 / 6] checking cached actions
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 9.298s, Critical Path: 0.11s
INFO: 5 processes: 3 internal, 2 linux-sandbox.
INFO: Build completed successfully, 5 total actions
INFO: Build completed successfully, 5 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-hermetic-j1.data bazel --batch build --color=no --curses=no --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 1426 targets configured).
INFO: Found 64 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 6] checking cached actions
[3 / 6] [Scann] Compiling main.cc
[5 / 6] checking cached actions
[54 / 56] checking cached actions
[131 / 134] [Prepa] Creating source manifest for //:zigzag-29
[219 / 221] [Prepa] Writing file zigzag-26-2.params
[319 / 321] [Prepa] Writing file zigzag-54-2.params
INFO: Elapsed time: 12.961s, Critical Path: 0.15s
INFO: 321 processes: 193 internal, 128 linux-sandbox.
INFO: Build completed successfully, 321 total actions
INFO: Build completed successfully, 321 total actions
[ perf record: Woken up 4576 times to write data ]
Warning:
Processed 203077 events and lost 5 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 1212.392 MB /home/motiejus/llvm-hermetic-j1.data (150360 samples) ]
+ _build llvm-hermetic-j8 --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox
+ name=llvm-hermetic-j8
+ shift
+ bazel build --color=no --curses=no --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded)
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 1363 targets configured).
INFO: Found 1 target...
[2 / 6] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 6] [Prepa] Creating runfiles tree bazel-out/k8-fastbuild/bin/zigzag-0.runfiles
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 5.350s, Critical Path: 0.10s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-hermetic-j8.data bazel --batch build --color=no --curses=no --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 1426 targets configured).
INFO: Found 64 targets...
[0 / 14] [Prepa] Writing file zigzag-0-2.params
[2 / 14] [Scann] Compiling main.cc
[81 / 94] Linking zigzag-57; 0s linux-sandbox ... (7 actions, 6 running)
[206 / 214] Linking zigzag-16; 0s linux-sandbox ... (5 actions, 4 running)
[295 / 306] Compiling main.cc; 0s linux-sandbox ... (8 actions, 7 running)
INFO: Elapsed time: 7.719s, Critical Path: 0.70s
INFO: 321 processes: 193 internal, 128 linux-sandbox.
INFO: Build completed successfully, 321 total actions
INFO: Build completed successfully, 321 total actions
[ perf record: Woken up 6124 times to write data ]
Warning:
Processed 281086 events and lost 68 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 1796.745 MB /home/motiejus/llvm-hermetic-j8.data (222825 samples) ]
+ _build llvm-sysroot-hermetic-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
+ name=llvm-sysroot-hermetic-j1
+ shift
+ bazel build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
Analyzing: target //:zigzag-0 (37 packages loaded, 136 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[4 / 5] [Prepa] Linking zigzag-0
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 8.158s, Critical Path: 1.45s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-sysroot-hermetic-j1.data bazel --batch build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (41 packages loaded, 14766 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[3 / 5] Compiling main.cc; 0s linux-sandbox
[4 / 5] [Prepa] Linking zigzag-0
[8 / 9] [Prepa] Linking zigzag-50
[13 / 16] [Prepa] Creating source manifest for //:zigzag-26
[19 / 21] Compiling main.cc; 0s linux-sandbox
[24 / 25] Linking zigzag-56; 0s linux-sandbox
[33 / 36] [Prepa] Creating source manifest for //:zigzag-8
[44 / 45] [Prepa] Linking zigzag-46
[56 / 57] [Prepa] Linking zigzag-32
[69 / 72] [Prepa] Creating source manifest for //:zigzag-23
[84 / 85] [Prepa] Linking zigzag-14
[101 / 104] [Prepa] Creating source manifest for //:zigzag-40
[123 / 125] Compiling main.cc; 0s linux-sandbox
[148 / 149] [Prepa] Linking zigzag-38
[173 / 176] [Prepa] Creating source manifest for //:zigzag-27
[201 / 204] [Prepa] Creating source manifest for //:zigzag-37
[237 / 240] [Prepa] Creating source manifest for //:zigzag-10
INFO: Elapsed time: 96.375s, Critical Path: 4.03s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 16515 times to write data ]
Warning:
Processed 742606 events and lost 68 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 4267.866 MB /home/motiejus/llvm-sysroot-hermetic-j1.data (527412 samples) ]
+ _build llvm-sysroot-hermetic-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
+ name=llvm-sysroot-hermetic-j8
+ shift
+ bazel build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading:
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
Analyzing: target //:zigzag-0 (37 packages loaded, 136 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[1 / 5] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (2 actions, 0 running)
[3 / 5] [Scann] Compiling main.cc
[5 / 5] checking cached actions
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 7.357s, Critical Path: 1.48s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-sysroot-hermetic-j8.data bazel --batch build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Found applicable config definition build:hermetic-sandbox in file /code/test-zigcc/.bazelrc: --experimental_use_hermetic_linux_sandbox --sandbox_add_mount_pair=/bin --sandbox_add_mount_pair=/usr --sandbox_add_mount_pair=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc --sandbox_add_mount_pair=/usr/bin:/bin --sandbox_add_mount_pair=/usr/lib:/lib --sandbox_add_mount_pair=/usr/lib64:/lib64
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (37 packages loaded, 136 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 26] [Prepa] Creating source manifest for //:zigzag-10 ... (5 actions, 0 running)
[39 / 87] [Prepa] Creating source manifest for //:zigzag-42
[113 / 228] Compiling main.cc; 0s linux-sandbox ... (8 actions running)
[114 / 228] Compiling main.cc; 2s linux-sandbox ... (8 actions, 7 running)
[121 / 228] Compiling main.cc; 1s linux-sandbox ... (8 actions running)
[123 / 228] Compiling main.cc; 2s linux-sandbox ... (7 actions running)
[129 / 228] Compiling main.cc; 1s linux-sandbox ... (8 actions running)
[137 / 228] Compiling main.cc; 1s linux-sandbox ... (8 actions running)
[141 / 228] Compiling main.cc; 2s linux-sandbox ... (8 actions running)
[145 / 228] Compiling main.cc; 3s linux-sandbox ... (8 actions running)
[153 / 228] Linking zigzag-3; 2s linux-sandbox ... (8 actions running)
[162 / 228] Linking zigzag-44; 3s linux-sandbox ... (8 actions, 7 running)
[174 / 228] Linking zigzag-51; 2s linux-sandbox ... (8 actions, 7 running)
[188 / 228] Compiling main.cc; 3s linux-sandbox ... (8 actions, 6 running)
[205 / 228] Compiling main.cc; 1s linux-sandbox ... (8 actions, 7 running)
[233 / 244] Linking zigzag-19; 2s linux-sandbox ... (8 actions, 7 running)
INFO: Elapsed time: 51.463s, Critical Path: 7.23s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 36392 times to write data ]
Warning:
Processed 1578223 events and lost 266 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 10475.654 MB /home/motiejus/llvm-sysroot-hermetic-j8.data (1292913 samples) ]
+ _build zigcc-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
+ name=zigcc-j1
+ shift
+ bazel build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
Analyzing: target //:zigzag-0 (37 packages loaded, 136 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[4 / 5] [Prepa] Linking zigzag-0
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 8.321s, Critical Path: 1.48s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/zigcc-j1.data bazel --batch build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (37 packages loaded, 134 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[4 / 5] [Prepa] Linking zigzag-0
[8 / 9] [Prepa] Linking zigzag-50
[11 / 13] Compiling main.cc; 0s linux-sandbox
[16 / 17] [Prepa] Linking zigzag-26
[20 / 21] [Prepa] Linking zigzag-52
[25 / 28] [Prepa] Creating source manifest for //:zigzag-13
[33 / 36] [Prepa] Creating source manifest for //:zigzag-8
[41 / 44] [Prepa] Creating source manifest for //:zigzag-46
[52 / 53] Linking zigzag-39; 0s linux-sandbox
[65 / 68] [Prepa] Creating source manifest for //:zigzag-18
[81 / 84] [Prepa] Creating source manifest for //:zigzag-14
[97 / 100] [Prepa] Creating source manifest for //:zigzag-63
[117 / 120] [Prepa] Creating source manifest for //:zigzag-1
[140 / 141] [Prepa] Linking zigzag-11
[165 / 168] [Prepa] Creating source manifest for //:zigzag-42
[196 / 197] [Prepa] Linking zigzag-16
[229 / 232] [Prepa] Creating source manifest for //:zigzag-41
INFO: Elapsed time: 85.741s, Critical Path: 1.86s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 15940 times to write data ]
Warning:
Processed 736473 events and lost 59 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 4191.614 MB /home/motiejus/zigcc-j1.data (517703 samples) ]
+ _build zigcc-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
+ name=zigcc-j8
+ shift
+ bazel build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded)
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[0 / 5] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[4 / 5] [Prepa] Linking zigzag-0
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 7.178s, Critical Path: 1.41s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/zigcc-j8.data bazel --batch build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (37 packages loaded, 136 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 23] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (5 actions, 0 running)
[28 / 63] [Prepa] Creating runfiles tree bazel-out/k8-fastbuild/bin/zigzag-20.runfiles
[129 / 257] Compiling main.cc; 0s linux-sandbox ... (8 actions running)
[130 / 257] Compiling main.cc; 5s linux-sandbox ... (8 actions, 7 running)
[137 / 257] Linking zigzag-63; 2s linux-sandbox ... (8 actions running)
[138 / 257] Linking zigzag-62; 3s linux-sandbox ... (8 actions running)
[145 / 257] Compiling main.cc; 3s linux-sandbox ... (8 actions running)
[146 / 257] Compiling main.cc; 4s linux-sandbox ... (8 actions running)
[154 / 257] Linking zigzag-11; 3s linux-sandbox ... (8 actions, 7 running)
[162 / 257] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
[170 / 257] Linking zigzag-31; 4s linux-sandbox ... (8 actions, 7 running)
[180 / 257] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
[190 / 257] Linking zigzag-32; 4s linux-sandbox ... (8 actions, 7 running)
[203 / 257] Linking zigzag-46; 3s linux-sandbox ... (8 actions, 7 running)
[217 / 257] Linking zigzag-34; 4s linux-sandbox ... (8 actions running)
[233 / 257] Linking zigzag-39; 4s linux-sandbox ... (8 actions, 7 running)
INFO: Elapsed time: 77.619s, Critical Path: 11.04s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 56568 times to write data ]
Warning:
Processed 2787413 events and lost 435 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 19476.820 MB /home/motiejus/zigcc-j8.data (2397280 samples) ]
+ _build llvm-j1 --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
+ name=llvm-j1
+ shift
+ bazel build --color=no --curses=no --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading:
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 1363 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 6] checking cached actions
[3 / 6] [Scann] Compiling main.cc
[4 / 6] checking cached actions
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 8.895s, Critical Path: 0.10s
INFO: 5 processes: 3 internal, 2 linux-sandbox.
INFO: Build completed successfully, 5 total actions
INFO: Build completed successfully, 5 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-j1.data bazel --batch build --color=no --curses=no --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 1426 targets configured).
INFO: Found 64 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 6] checking cached actions
[3 / 6] [Scann] Compiling main.cc
[5 / 6] checking cached actions
[34 / 36] [Prepa] Writing file zigzag-24-2.params
[111 / 114] [Prepa] Creating source manifest for //:zigzag-50
[204 / 206] [Prepa] Writing file zigzag-30-2.params
[309 / 311] [Prepa] Writing file zigzag-51-2.params
INFO: Elapsed time: 13.159s, Critical Path: 0.11s
INFO: 321 processes: 193 internal, 128 linux-sandbox.
INFO: Build completed successfully, 321 total actions
INFO: Build completed successfully, 321 total actions
[ perf record: Woken up 4443 times to write data ]
Warning:
Processed 204382 events and lost 54 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 1219.030 MB /home/motiejus/llvm-j1.data (151157 samples) ]
+ _build llvm-j8 --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
+ name=llvm-j8
+ shift
+ bazel build --color=no --curses=no --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading:
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 1363 targets configured).
INFO: Found 1 target...
[2 / 6] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 6] checking cached actions
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 6.199s, Critical Path: 0.12s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-j8.data bazel --batch build --color=no --curses=no --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 1426 targets configured).
INFO: Found 64 targets...
[0 / 24] [Prepa] Creating source manifest for //:zigzag-14
[14 / 24] checking cached actions
[41 / 59] Compiling main.cc; 0s linux-sandbox ... (8 actions running)
[83 / 96] Compiling main.cc; 0s linux-sandbox ... (8 actions running)
[144 / 156] Compiling main.cc; 0s linux-sandbox ... (8 actions, 7 running)
[200 / 216] Compiling main.cc; 0s linux-sandbox ... (8 actions, 7 running)
[254 / 266] Compiling main.cc; 0s linux-sandbox ... (8 actions running)
INFO: Elapsed time: 11.042s, Critical Path: 0.88s
INFO: 321 processes: 193 internal, 128 linux-sandbox.
INFO: Build completed successfully, 321 total actions
INFO: Build completed successfully, 321 total actions
[ perf record: Woken up 6435 times to write data ]
Warning:
Processed 430335 events and lost 58 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 2932.879 MB /home/motiejus/llvm-j8.data (362314 samples) ]
+ _build llvm-sysroot-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
+ name=llvm-sysroot-j1
+ shift
+ bazel build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
Analyzing: target //:zigzag-0 (37 packages loaded, 136 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[3 / 5] [Scann] Compiling main.cc
[4 / 5] Linking zigzag-0; 0s linux-sandbox
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 9.632s, Critical Path: 1.43s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-sysroot-j1.data bazel --batch build --color=no --curses=no --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading:
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (37 packages loaded, 135 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[3 / 5] [Scann] Compiling main.cc
[5 / 8] [Prepa] Creating source manifest for //:zigzag-50
[11 / 13] Compiling main.cc; 0s linux-sandbox
[16 / 17] Linking zigzag-26; 0s linux-sandbox
[24 / 25] [Prepa] Linking zigzag-56
[32 / 33] [Prepa] Linking zigzag-33
[41 / 44] [Prepa] Creating source manifest for //:zigzag-46
[53 / 56] [Prepa] Creating source manifest for //:zigzag-32
[65 / 68] [Prepa] Creating source manifest for //:zigzag-18
[80 / 81] [Prepa] Linking zigzag-47
[96 / 97] Linking zigzag-15; 0s linux-sandbox
[116 / 117] [Prepa] Linking zigzag-20
[137 / 140] [Prepa] Creating source manifest for //:zigzag-11
[164 / 165] [Prepa] Linking zigzag-6
[193 / 196] [Prepa] Creating source manifest for //:zigzag-16
[224 / 225] [Prepa] Linking zigzag-31
INFO: Elapsed time: 89.096s, Critical Path: 2.92s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 15142 times to write data ]
Warning:
Processed 697322 events and lost 151 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 3909.025 MB /home/motiejus/llvm-sysroot-j1.data (482963 samples) ]
+ _build llvm-sysroot-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
+ name=llvm-sysroot-j8
+ shift
+ bazel build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Analyzing: target //:zigzag-0 (1 packages loaded)
Analyzing: target //:zigzag-0 (1 packages loaded, 0 targets configured)
INFO: Analyzed target //:zigzag-0 (41 packages loaded, 14770 targets configured).
INFO: Found 1 target...
[0 / 5] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[3 / 5] checking cached actions
[4 / 5] checking cached actions
Target //:zigzag-0 up-to-date:
bazel-bin/zigzag-0
INFO: Elapsed time: 7.087s, Critical Path: 1.32s
INFO: 4 processes: 2 internal, 2 linux-sandbox.
INFO: Build completed successfully, 4 total actions
INFO: Build completed successfully, 4 total actions
+ bazel shutdown
+ bazel --batch clean --color=no --curses=no
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'clean' from /code/test-zigcc/.bazelrc:
Inherited 'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
+ perf record --call-graph=dwarf -g -o /home/motiejus/llvm-sysroot-j8.data bazel --batch build --color=no --curses=no --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
Inherited 'common' options: --color=yes --curses=yes
INFO: Reading rc options for 'build' from /code/test-zigcc/.bazelrc:
'build' options: --announce_rc --incompatible_enable_cc_toolchain_resolution --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 64 targets (1 packages loaded, 0 targets configured)
Analyzing: 64 targets (37 packages loaded, 137 targets configured)
INFO: Analyzed 64 targets (41 packages loaded, 14833 targets configured).
INFO: Found 64 targets...
[0 / 26] [Prepa] Creating source manifest for //:zigzag-14
[47 / 109] [Prepa] Creating source manifest for //:zigzag-22
[102 / 204] Compiling main.cc; 0s linux-sandbox ... (8 actions running)
[103 / 204] Compiling main.cc; 4s linux-sandbox ... (8 actions, 7 running)
[110 / 204] Linking zigzag-11; 1s linux-sandbox ... (8 actions running)
[111 / 204] Linking zigzag-31; 3s linux-sandbox ... (8 actions running)
[114 / 204] Linking zigzag-31; 5s linux-sandbox ... (7 actions running)
[120 / 204] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
[127 / 204] Linking zigzag-40; 3s linux-sandbox ... (8 actions, 7 running)
[134 / 204] Compiling main.cc; 4s linux-sandbox ... (8 actions running)
[142 / 204] Linking zigzag-38; 3s linux-sandbox ... (8 actions running)
[150 / 204] Compiling main.cc; 3s linux-sandbox ... (8 actions running)
[160 / 204] Linking zigzag-22; 4s linux-sandbox ... (8 actions, 7 running)
[171 / 204] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
[186 / 204] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
[213 / 225] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
[247 / 257] Compiling main.cc; 3s linux-sandbox ... (8 actions, 7 running)
INFO: Elapsed time: 76.096s, Critical Path: 10.28s
INFO: 257 processes: 129 internal, 128 linux-sandbox.
INFO: Build completed successfully, 257 total actions
INFO: Build completed successfully, 257 total actions
[ perf record: Woken up 58586 times to write data ]
Warning:
Processed 2787248 events and lost 383 chunks!
Check IO/CPU overload!
[ perf record: Captured and wrote 19527.935 MB /home/motiejus/llvm-sysroot-j8.data (2403659 samples) ]
+ parallel -v --eta
<...>

30
results/profile.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
set -xeuo pipefail
_build() {
name=$1
shift
bazel build --color=no --curses=no "$@" //:zigzag-0
bazel shutdown
bazel --batch clean --color=no --curses=no
perf record --call-graph=dwarf -g -o "$HOME/$name.data" bazel --batch build --color=no --curses=no "$@" ...
}
_build zigcc-hermetic-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
_build zigcc-hermetic-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
_build llvm-hermetic-j1 --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox
_build llvm-hermetic-j8 --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux --config=hermetic-sandbox
_build llvm-sysroot-hermetic-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
_build llvm-sysroot-hermetic-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 --config=hermetic-sandbox
_build zigcc-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
_build zigcc-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
_build llvm-j1 --jobs=1 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
_build llvm-j8 --jobs=8 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
_build llvm-sysroot-j1 --jobs=1 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
_build llvm-sysroot-j8 --jobs=8 --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28
for d in $HOME/*.data; do
f=$(basename "$d")
echo "perf script -i $d | inferno-collapse-perf | inferno-flamegraph > results/${f%data}svg"
done | parallel -v --eta

View File

@ -1 +0,0 @@
bazel --batch clean; perf record --call-graph=dwarf -g -o zigcc-j1.data bazel --batch build --jobs=1 --override_repository=bazel-zig-cc=/code/bazel-zig-cc --config=hermetic-sandbox --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ... ; bazel --batch clean; perf record --call-graph=dwarf -g -o llvm-j1.data bazel --batch build --jobs=1 --override_repository=bazel-zig-cc=/code/bazel-zig-cc --config=hermetic-sandbox --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux ...

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 845 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 858 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 812 KiB

After

Width:  |  Height:  |  Size: 915 KiB

491
results/zigcc-j8.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 807 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 919 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 878 KiB