Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build System] Add support to log build times for each products #41223

Merged
merged 5 commits into from
Jul 28, 2022

Conversation

shahmishal
Copy link
Member

@shahmishal shahmishal commented Feb 5, 2022

Summary at the end of the build:

--- Build Script Analyzer ---
Build Script Log: /Users/mishal_shah/src/github/build/.build_script_log
Build Percentage 	 Build Duration (sec) 	 Build Phase
================ 	 ==================== 	 ===========
25.0%             	 4631.79               	 macosx-x86_64-swift-build
21.7%             	 4028.52               	 macosx-x86_64-swift-test
5.9%              	 1100.72               	 Running tests for swiftpm
4.9%              	 905.14                	 Building swiftpm
4.3%              	 800.66                	 Running tests for swiftdocc
3.9%              	 730.45                	 Running tests for swiftdriver
3.6%              	 674.62                	 macosx-x86_64-lldb-test
3.1%              	 572.32                	 Running tests for sourcekitlsp
2.7%              	 501.62                	 Installing swiftpm
2.7%              	 500.93                	 Building sourcekitlsp
2.6%              	 488.29                	 Running tests for swiftsyntax
2.5%              	 472.4                 	 Building skstresstester
2.4%              	 442.2                 	 Running tests for skstresstester
2.2%              	 413.81                	 Building swiftsyntax
2.2%              	 405.71                	 Building swiftdocc
2.2%              	 400.06                	 Running tests for swiftevolve
2.1%              	 395.0                 	 Installing swiftdocc
2.1%              	 389.47                	 Building swiftevolve
1.2%              	 223.52                	 Building swiftdriver
0.6%              	 111.82                	 macosx-x86_64-lldb-build
0.5%              	 99.83                 	 Running tests for indexstoredb
0.5%              	 93.47                 	 Building indexstoredb
0.2%              	 44.09                 	 macosx-x86_64-llbuild-build
0.2%              	 28.18                 	 macosx-x86_64-llvm-build
0.1%              	 27.2                  	 macosx-x86_64-llbuild-test
0.1%              	 26.05                 	 Building earlyswiftdriver
0.1%              	 17.15                 	 macosx-x86_64-swift-install
0.0%              	 5.03                  	 Building cmark
0.0%              	 4.7                   	 macosx-x86_64-llvm-install
0.0%              	 3.38                  	 Installing swiftdriver
0.0%              	 2.7                   	 Building playgroundsupport
0.0%              	 2.07                  	 Cleaning swiftpm
0.0%              	 2.07                  	 Cleaning swiftdriver
0.0%              	 1.05                  	 macosx-x86_64-libcxx-build
0.0%              	 0.41                  	 macosx-x86_64-libcxx-install
0.0%              	 0.28                  	 macosx-x86_64-llbuild-install
0.0%              	 0.17                  	 macosx-x86_64-llvm-test
0.0%              	 0.17                  	 macosx-x86_64-libcxx-test
0.0%              	 0.15                  	 macosx-x86_64-lldb-install
0.0%              	 0.1                   	 macosx-x86_64-extractsymbols
0.0%              	 0.09                  	 merged-hosts-lipo-core
0.0%              	 0.09                  	 macosx-x86_64-package
0.0%              	 0.09                  	 merged-hosts-lipo
0.0%              	 0.02                  	 Installing swiftdoccrender
Total Duration: 18547.59

.build_script_log file:

{"duration": "0.00", "command": "Building earlyswiftdriver", "event": "start"}
{"duration": "26.05", "command": "Building earlyswiftdriver", "event": "end"}
{"duration": "0.00", "command": "Building cmark", "event": "start"}
{"duration": "5.03", "command": "Building cmark", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-llvm-build", "event": "start"}
{"duration": "28.18", "command": "macosx-x86_64-llvm-build", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-libcxx-build", "event": "start"}
{"duration": "1.05", "command": "macosx-x86_64-libcxx-build", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-swift-build", "event": "start"}
{"duration": "4631.79", "command": "macosx-x86_64-swift-build", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-lldb-build", "event": "start"}
{"duration": "111.82", "command": "macosx-x86_64-lldb-build", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-llvm-test", "event": "start"}
{"duration": "0.17", "command": "macosx-x86_64-llvm-test", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-libcxx-test", "event": "start"}
{"duration": "0.17", "command": "macosx-x86_64-libcxx-test", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-swift-test", "event": "start"}
{"duration": "4028.52", "command": "macosx-x86_64-swift-test", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-lldb-test", "event": "start"}
{"duration": "674.62", "command": "macosx-x86_64-lldb-test", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-llvm-install", "event": "start"}
{"duration": "4.70", "command": "macosx-x86_64-llvm-install", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-libcxx-install", "event": "start"}
{"duration": "0.41", "command": "macosx-x86_64-libcxx-install", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-swift-install", "event": "start"}
{"duration": "17.15", "command": "macosx-x86_64-swift-install", "event": "end"}
{"duration": "0.00", "command": "macosx-x86_64-lldb-install", "event": "start"}
{"duration": "0.15", "command": "macosx-x86_64-lldb-install", "event": "end"}
...

@shahmishal
Copy link
Member Author

@swift-ci test

@shahmishal shahmishal requested a review from gottesmm February 5, 2022 20:22
@shahmishal
Copy link
Member Author

@swift-ci test

@shahmishal
Copy link
Member Author

@swift-ci python lint

@shahmishal
Copy link
Member Author

@swift-ci test macOS

1 similar comment
@shahmishal
Copy link
Member Author

@swift-ci test macOS

@shahmishal
Copy link
Member Author

preset=stdlib_S_standalone_minimal_macho_x86_64,build,test
@swift-ci please test with toolchain and preset

@shahmishal
Copy link
Member Author

@swift-ci test

1 similar comment
@shahmishal
Copy link
Member Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants