Skip to content

Instantly share code, notes, and snippets.

@ahillo
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save ahillo/02bf25c7e9964337a905 to your computer and use it in GitHub Desktop.

Select an option

Save ahillo/02bf25c7e9964337a905 to your computer and use it in GitHub Desktop.
How to profile release build in VS
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