c++ - Code coverage and Profiling command line tool in VS2010 Ultimate -
i can run commands generate .coverage file code coverage result.
vsinstr -coverage helloclass.exe /exclude:std::* vsperfcmd /start:coverage /output:run.coverage helloclass vsperfcmd /shutdown
can use same tool getting profiling report?
- if so, can that?
- if not, tools available profiling in vs2010?
profiling uses same toolset code coverage, commands different. profiling, can both instrumentation , sample profiling.
for instrumentation profiling (the similar code coverage):
vsinstr myapp.exe vsperfcmd /start:trace /output:trace.vsp myapp vsperfcmd /shutdown
for sample profiling (sampling):
vsperfcmd /start:sample /output:sample.vsp /launch:myapp.exe vsperfcmd /shutdown
these steps change if you're profiling managed code (you need use vsperfclrenv
). msdn has documentation , examples on using profiling command-line tools.
Comments
Post a Comment