From 0e4a7dd82305bf1ae8c598a03eaa08f0cb744ea5 Mon Sep 17 00:00:00 2001 From: Fatih Kabak Date: Sat, 23 Apr 2022 03:21:13 +0300 Subject: [PATCH 1/3] gh-91795: Update build optimization part of PCbuild/readme.txt --- .../2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst | 2 ++ PCbuild/readme.txt | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst diff --git a/Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst b/Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst new file mode 100644 index 00000000000000..fb5443130a79ea --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst @@ -0,0 +1,2 @@ +Updated build_pgo part under 'Profile Guided Optimization' according to the +current build script. Updated Microsoft docs link. diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt index 24bce197389e0a..66a99951e48939 100644 --- a/PCbuild/readme.txt +++ b/PCbuild/readme.txt @@ -252,12 +252,13 @@ against a profiling library and contain extra debug information. The PGUpdate configuration takes the profiling data and generates optimized binaries. -The build_pgo.bat script automates the creation of optimized binaries. -It creates the PGI files, runs the unit test suite or PyBench with the -PGI python, and finally creates the optimized files. +The build.bat script has arguments `--pgo` and `--pgo-job ` that +automate the creation of optimized binaries. It creates the PGI files, +runs the unit test suite or PyBench with the PGI python, and finally +creates the optimized files. Try `build.bat -h` to learn more. See - http://msdn.microsoft.com/en-us/library/e7k32f4k(VS.140).aspx + https://docs.microsoft.com/en-us/cpp/build/profile-guided-optimizations?view=msvc-170 for more on this topic. From 1161d1e5ed64833060326fd54f223a54ab2d276f Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 20 Jul 2023 15:08:10 +0900 Subject: [PATCH 2/3] Delete 2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst --- .../Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst diff --git a/Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst b/Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst deleted file mode 100644 index fb5443130a79ea..00000000000000 --- a/Misc/NEWS.d/next/Documentation/2022-04-23-03-20-18.gh-issue-91795.elzdMM.rst +++ /dev/null @@ -1,2 +0,0 @@ -Updated build_pgo part under 'Profile Guided Optimization' according to the -current build script. Updated Microsoft docs link. From 3a2ee384a153e58284ee5cf4f6da4c593395de4d Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 20 Jul 2023 15:17:21 +0900 Subject: [PATCH 3/3] update --- PCbuild/readme.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt index 9b19d5d24b7f2c..9ea3ab68183a55 100644 --- a/PCbuild/readme.txt +++ b/PCbuild/readme.txt @@ -250,10 +250,11 @@ against a profiling library and contain extra debug information. The PGUpdate configuration takes the profiling data and generates optimized binaries. -The build.bat script has arguments `--pgo` and `--pgo-job ` that -automate the creation of optimized binaries. It creates the PGI files, -runs the unit test suite or PyBench with the PGI python, and finally -creates the optimized files. Try `build.bat -h` to learn more. +The build.bat script has an argument `--pgo` that automate the creation +of optimized binaries. +It creates the PGI files, runs the unit test suite with the PGI python, +and finally creates the optimized files. +You can customize the job for profiling with `--pgo-job ` option. See https://docs.microsoft.com/en-us/cpp/build/profile-guided-optimizations