Question on building a local PGO build with optimization disabled

85 views
Skip to first unread message

Arthur Wang

unread,
Aug 14, 2024, 5:26:35 PM8/14/24
to bu...@chromium.org, Sven Zheng, Peter Wen, Egor Pasko, chrome-browser-test-infra-eng
Hi, Build team

I am trying to build a local PGO build with optimization disabled (primary `-O0`, `-fno-inline`, `-fno-optimize-sibling-calls`, and get rid of `-ffvisibility-inlines-hidden`). This helps me evaluate a test execution on a temporal PGO build that generates the same data traces as a llvm build. 

I ran into one linker error: https://paste.googleplex.com/5962717573939200

However, the code should be pulling in from `content/browser/profiling_utils.cc`, and the .o file presents on my local disk
```
./out/coverage/obj/content/browser/browser/profiling_utils.o
./out/coverage/obj/content/browser/browser/profiling_utils.dwo
```


Wonder how I plug that in to make the link error go away.

Thanks!

--
Arthur Wang
SWE @Browser Test Infrastructure

Arthur Wang

unread,
Aug 14, 2024, 6:10:17 PM8/14/24
to bu...@chromium.org, Sven Zheng, Peter Wen, Egor Pasko, chrome-browser-test-infra-eng

Thanks!

--
Arthur Wang
SWE @Browser Test Infrastructure


Arthur Wang

unread,
Aug 15, 2024, 11:02:08 AM8/15/24
to bu...@chromium.org, Sven Zheng, Peter Wen, Egor Pasko, chrome-browser-test-infra-eng
I got it working after apply these two gn args:
  • use_thin_lto = true
  • is_debug = false

Thanks!

--
Arthur Wang
SWE @Browser Test Infrastructure


Reply all
Reply to author
Forward
0 new messages