How to profile an OpenTK C # application using CodeXL?

I wanted to switch from gDEBugger to CodeXL, since CodeXL is the successor to gdeb and even has integration with Visual Studio.

However, there are some integration issues for me. I am using VS2013, the latest version of CodeXL and compiling with .NET 4.5.

  • It runs the executable from the obj folder, not the bin folder. Thus, if I run CodeXL debugging, it does not find my dll engine files or any other materials copied with the output, as they are in the bin folder. I fixed this by manually copying the files there, but this is a rather dirty solution if you ask me.
  • I don't know how to write codeXL code changes with CodeXL code, mainly for gDEBugger. I can run my project only in CodeXL "Debug mode", but this log does not log redundant state changes. If I switch to the required β€œAnalysis mode”, I don’t get any statistics at all and I can’t even start the application, the buttons and viewing statistics are disabled.

Does someone successfully use CodeXL with OpenTK and can tell me how to proceed? This boils down to the following two questions:

  • How to change the executable path to fix obj ↔ bin folder problem?
  • How to register redundant state changes of an OpenGL application?
+5
source share
1 answer

This is not an ideal solution, but would ensure that you had the latest files every time you built your obj folder, you could go into your project properties and set your Post-build command in the Build Events section event Line ":" to:

copy "$(SolutionDir)\YourProjectName\bin\Debug" "$(ProjectDir)\obj\Debug" 

Assuming your active build is set to "Debug" and also replace your "YourProjectName" with your project name :-)

+1
source

Source: https://habr.com/ru/post/1203092/


All Articles