Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 10 如何使用Valgrind和WSL在Windows 10上评测MSVC应用程序?_Windows 10_Valgrind_Windows Subsystem For Linux - Fatal编程技术网

Windows 10 如何使用Valgrind和WSL在Windows 10上评测MSVC应用程序?

Windows 10 如何使用Valgrind和WSL在Windows 10上评测MSVC应用程序?,windows-10,valgrind,windows-subsystem-for-linux,Windows 10,Valgrind,Windows Subsystem For Linux,我想使用Valgrind评测我的应用程序,但是我找不到关于如何在Windows上实现它的教程 当我尝试使用打开我的应用程序时 valgrind -v ./ThreadClass.exe 我明白了 valgrind: ./ThreadClass.exe: cannot execute binary file 因此,错误与这些受试者不同: '' '' 正如它在“”中的一个答案中所述,它应该与最新版本的Windows 10(创建者更新)一起使用 有人能给我解释一下,如何在Windows 10上使用

我想使用Valgrind评测我的应用程序,但是我找不到关于如何在Windows上实现它的教程

当我尝试使用打开我的应用程序时

valgrind -v ./ThreadClass.exe
我明白了

valgrind: ./ThreadClass.exe: cannot execute binary file
因此,错误与这些受试者不同:

''

''

正如它在“”中的一个答案中所述,它应该与最新版本的Windows 10(创建者更新)一起使用

有人能给我解释一下,如何在Windows 10上使用Valgrind评测应用程序吗


我是否需要为linux编译应用程序,以便在WSL(linux Windows子系统)中使用Valgrind运行它?

WSL中的Valgrind仅适用于linux二进制文件,而不是Windows二进制文件。如果您为linux重新编译二进制文件,您应该能够在上面运行valgrind