You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/PROFILE causes the linker to generate a relocation section in the program image. A relocation section allows the profiler to transform the program image to get profile data.
**/PROFILE** is only available only in Enterprise (team development) versions. For more information on PREfast, see [Code Analysis for C/C++ Overview](../../code-quality/code-analysis-for-c-cpp-overview.md).
30
+
-[`/FIXED:NO`](fixed-fixed-base-address.md)
31
+
32
+
**`/PROFILE`** is used to support the Performance Tools for Visual Studio Profiler utility [`VSInstr.exe`](/visualstudio/profiling/vsinstr).
34
33
35
34
### To set this linker option in the Visual Studio development environment
36
35
@@ -44,21 +43,21 @@ Produces an output file that can be used with the Performance Tools profiler.
44
43
45
44
1. See <xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.Profile%2A>.
46
45
47
-
### To set this linker option within Visual Studio CMake project
46
+
### To set this linker option in a Visual Studio CMake project
48
47
49
-
**CMake** project does not have a **Property Pages**, the linker options can be set by modifing the CMakeLists.txt.
48
+
Because a **CMake** project doesn't have the usual **Property Pages** support, the linker option can be set by modifying the *`CMakeLists.txt`* file.
50
49
51
-
1. Open the CMakeLists.txt in the project root directory.
50
+
1. Open the *`CMakeLists.txt`* file in the project root directory.
52
51
53
-
1. Add code below. For details, see [CMake references](https://cmake.org/cmake/help/v3.0/command/set_target_properties.html)
52
+
1. Add the code below. For more information, see the CMake [`set_target_properties`](https://cmake.org/cmake/help/latest/command/set_target_properties.html) documentation.
0 commit comments