Last active
August 29, 2015 14:16
-
-
Save ahillo/02bf25c7e9964337a905 to your computer and use it in GitHub Desktop.
How to profile release build in VS
This file contains hidden or 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
| How to profile release build in VS | |
| ---- | |
| 1. (In VS:) select release build config | |
| 2. Right click the target Project -> properties -> configuration properties -> linker -> debugging -> set 'Generate debug info' to 'Optimize for debugging' | |
| 3. Add the following option to Configuration properties -> C/C++ -> Command line: /d2Zi+ | |
| 3. Build in release | |
| 2. Analyze -> profiler -> new performance session (this only needs to be done once) | |
| 4. Ctrl+F5 to run the project | |
| 5. Right click on the created session on performance explorer -> attach to process -> 'your process' | |
| 6. Collect some data | |
| 7. Click 'Stop profiling' on VS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment