![]() A lot of what I have read suggests valgrind is not a trivial port and unlikely to be included in Windows anytime soon.Ĥ) Write a Windows script to do option #1 above, but unclear how the script would integrate with CLionĥ) Find an alternative to valgrind that works under Windows. valgrind would then be a Windows exectable and work with CLion. This would mean running a Linux version of CLion whenever I need to use valgrind and using the Windows version all other times.ģ) Figure out how to compile valgrind under Msys2 which has ported many unix programs to Windows. Recompile the program using ubuntu's g++ to create a linux executable and then run valgrind on it.Ģ) Run CLion in "ubuntu WSL", so that everything is running in linux. ![]() I see several ways forward, but need guidance on which is the best alternative:ġ) Open an ubuntu shell, copy the source files to WSL. Plus, the WSL files are not easily accessible from Windows since there is a high chance of corrupting them if you edit a file using Windows tools. The first step in program optimization is to gather factual, quantitative data from representative program execution using a profiler. env LDPRELOAD'/usr/lib/libprofiler.so' , but this isnt necessarily recommended.(Its also probably possible to add in the profiler at run-time using LDPRELOAD, e.g. Calling valgrind on the windows executable does not make sense. A code profiler is a tool to analyze a program and report on its resource usage (where 'resource' is memory, CPU cycles, network bandwidth, and so on). To install the CPU profiler into your executable, add -lprofiler to the link-time step for your executable. valgrind is in ubuntu WSL, so it is a linux executable. CLion is running under Windows, so the executables it has produced are for Windows. seems to imply that I should be able to point CLion to the valgrind executable and have it work seamlessly, but that is not possible. It works fine from the command line under "ubuntu WSL" I have installed WSL (windows subsystem for Linux) and installed valgrind. I am running CLion under Windows 10 and would like to use valgrind.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |