forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7be641
commit ee491aa
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Build bloat | ||
|
||
A tool used to visualize clang's compilation profiles. | ||
|
||
![screenshot](screenshot.png) | ||
|
||
It helps to answer the following questions: | ||
- which dirs/files has longest impact on build time | ||
- which headers has longest impact on build time | ||
|
||
## How to use | ||
|
||
You have to generate compilation profiles using `-ftime-trace` as compilation flag. | ||
|
||
With `ya` tool it can be done with folowing comand: | ||
|
||
`ya make <your usual arguments> --output=~/some_output_build_dir -DCOMPILER_TIME_TRACE --add-result=.json` | ||
|
||
After build is done run: | ||
|
||
`ya tool python3 main.py --build-dir ~/some_output_build_dir --html-dir-cpp html_cpp_impact --html-dir-headers html_headers_impact` | ||
|
||
And open `html_cpp_impact/index.html`, `html_headers_impact/index.html` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.