我想出了一个批处理文件是写在这个生成的代码覆盖率文件后.
cl /Zi hello.cpp -link /Profile
vsinstr -coverage hello.exe
start vsperfmon /coverage /output:run.coverage
hello
vsperfcmd /shutdown
Run Code Online (Sandbox Code Playgroud)
但是,当我运行批处理文件时,我收到此错误消息.

我必须vsperfcmd /shutdown手动运行才能完成它.可能有什么问题?