I encountered some problems when compiling the Chromium project. When compiling the release version project, I used the compilation parameter chrome_pgo_phase = 1. After the compilation was successful, I ran the browser executable file to generate some .profraw files. Then, when I used llvm-profdata.exe to generate the profdata file, cmdline is “llvm-profdata.exe merge *.profraw -o chrome.profdata”. I encountered the error "profile uses zlib compression but the profile reader was built without zlib support". The llvm version is 19.1.7, and the system version is win10 or win11, chromium version is 132.0.6834.83.
When I compiled Chromium version 119 and 122, I used the above steps to successfully generate the .profdata file, but encountered the above problem in version 132. So my question is how to generate pgo .profdata in chromium 132
It's better to use llvm-profdata from Chromium's Clang toolchain. That way it will be the same version as the rest of the toolchain, and have zlib support.
You can get it either via the clang update script: tools/clang/scripts/update.py --package=coverage_tools, or you can get it via gclient sync by setting checkout_clang_coverage_tools to True in your .gclient file's custom_vars.
I encountered some problems when compiling the Chromium project. When compiling the release version project, I used the compilation parameter chrome_pgo_phase = 1. After the compilation was successful, I ran the browser executable file to generate some .profraw files. Then, when I used llvm-profdata.exe to generate the profdata file, cmdline is “llvm-profdata.exe merge *.profraw -o chrome.profdata”. I encountered the error "profile uses zlib compression but the profile reader was built without zlib support". The llvm version is 19.1.7, and the system version is win10 or win11, chromium version is 132.0.6834.83.
When I compiled Chromium version 119 and 122, I used the above steps to successfully generate the .profdata file, but encountered the above problem in version 132. So my question is how to generate pgo .profdata in chromium 132
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/7a78c64c-1e8c-4ae4-a352-ca166a3f5abcn%40chromium.org.