久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <legend id='bo4iH'><style id='bo4iH'><dir id='bo4iH'><q id='bo4iH'></q></dir></style></legend>
  2. <i id='bo4iH'><tr id='bo4iH'><dt id='bo4iH'><q id='bo4iH'><span id='bo4iH'><b id='bo4iH'><form id='bo4iH'><ins id='bo4iH'></ins><ul id='bo4iH'></ul><sub id='bo4iH'></sub></form><legend id='bo4iH'></legend><bdo id='bo4iH'><pre id='bo4iH'><center id='bo4iH'></center></pre></bdo></b><th id='bo4iH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bo4iH'><tfoot id='bo4iH'></tfoot><dl id='bo4iH'><fieldset id='bo4iH'></fieldset></dl></div>

    • <bdo id='bo4iH'></bdo><ul id='bo4iH'></ul>

    <small id='bo4iH'></small><noframes id='bo4iH'>

      <tfoot id='bo4iH'></tfoot>

      如何在命令行中使用 MS 代碼覆蓋工具?

      How to use MS code coverage tool in command line?(如何在命令行中使用 MS 代碼覆蓋工具?)
        <bdo id='tXcYX'></bdo><ul id='tXcYX'></ul>
      • <small id='tXcYX'></small><noframes id='tXcYX'>

          <i id='tXcYX'><tr id='tXcYX'><dt id='tXcYX'><q id='tXcYX'><span id='tXcYX'><b id='tXcYX'><form id='tXcYX'><ins id='tXcYX'></ins><ul id='tXcYX'></ul><sub id='tXcYX'></sub></form><legend id='tXcYX'></legend><bdo id='tXcYX'><pre id='tXcYX'><center id='tXcYX'></center></pre></bdo></b><th id='tXcYX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tXcYX'><tfoot id='tXcYX'></tfoot><dl id='tXcYX'><fieldset id='tXcYX'></fieldset></dl></div>
          1. <tfoot id='tXcYX'></tfoot>

              <tbody id='tXcYX'></tbody>

            <legend id='tXcYX'><style id='tXcYX'><dir id='tXcYX'><q id='tXcYX'></q></dir></style></legend>

              • 本文介紹了如何在命令行中使用 MS 代碼覆蓋工具?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                限時(shí)送ChatGPT賬號(hào)..

                我有以下 C++ 代碼.

                I have the following C++ code.

                #include <iostream>
                using namespace std;
                
                int testfunction(int input)
                {
                    if (input > 0) {
                        return 1;
                    }
                    else {
                        return 0;
                    }
                }
                
                int main()
                {
                    testfunction(-1);
                    testfunction(1);
                }
                

                我編譯它以獲得執(zhí)行

                cl /Zi hello.cpp -link /Profile
                

                然后,我檢測(cè)執(zhí)行并生成 .coverage 二進(jìn)制文件.

                Then, I instrument the execution and generated the .coverage binary.

                vsinstr -coverage hello.exe
                start vsperfmon -coverage -output:mytestrun.coverage
                vsperfcmd -shutdown
                

                當(dāng)我在 VS2010 中打開(kāi)覆蓋文件時(shí),我沒(méi)有得到任何結(jié)果.

                When I open the coverage file in VS2010, I got nothing in its results.

                可能有什么問(wèn)題?我按照這篇文章中的說(shuō)明進(jìn)行操作.

                What might be wrong? I followed the instructions in this post.

                推薦答案

                你需要在監(jiān)視器啟動(dòng)后運(yùn)行你的程序:

                You need to run your program after the monitor starts:

                1. <代碼>>vsinstr/coverage hello.exe
                2. <代碼>>啟動(dòng) vsperfmon/coverage/output:mytestrun.coverage
                3. <代碼>>你好.exe
                4. <代碼>>vsperfcmd/shutdown

                當(dāng)您運(yùn)行第 3 步時(shí),您應(yīng)該會(huì)在 vsperfmon.exe 中看到一些通知,提示 hello.exe 已啟動(dòng).

                When you run step 3, you should see some notification in vsperfmon.exe that hello.exe has started.

                如果您計(jì)劃進(jìn)行多次測(cè)試運(yùn)行,則只需運(yùn)行步驟 2-4.換句話(huà)說(shuō),您只需要在二進(jìn)制文件(步驟 1)構(gòu)建后對(duì)其進(jìn)行一次檢測(cè).

                If you plan on doing multiple test runs, you only need to run steps 2-4. In other words, you only need to instrument your binary (step 1) once after it's built.

                這篇關(guān)于如何在命令行中使用 MS 代碼覆蓋工具?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Why do two functions have the same address?(為什么兩個(gè)函數(shù)的地址相同?)
                Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復(fù)制構(gòu)造的?)
                mixing templates with polymorphism(混合模板與多態(tài)性)
                When should I use the keyword quot;typenamequot; when using templates(我什么時(shí)候應(yīng)該使用關(guān)鍵字“typename?使用模板時(shí))
                Dependent name resolution amp; namespace std / Standard Library(依賴(lài)名稱(chēng)解析命名空間 std/標(biāo)準(zhǔn)庫(kù))
                gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數(shù)模板,而 clang 不能)
                <tfoot id='5vOXg'></tfoot>

                <legend id='5vOXg'><style id='5vOXg'><dir id='5vOXg'><q id='5vOXg'></q></dir></style></legend>
                  <bdo id='5vOXg'></bdo><ul id='5vOXg'></ul>
                • <small id='5vOXg'></small><noframes id='5vOXg'>

                    <tbody id='5vOXg'></tbody>
                  <i id='5vOXg'><tr id='5vOXg'><dt id='5vOXg'><q id='5vOXg'><span id='5vOXg'><b id='5vOXg'><form id='5vOXg'><ins id='5vOXg'></ins><ul id='5vOXg'></ul><sub id='5vOXg'></sub></form><legend id='5vOXg'></legend><bdo id='5vOXg'><pre id='5vOXg'><center id='5vOXg'></center></pre></bdo></b><th id='5vOXg'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5vOXg'><tfoot id='5vOXg'></tfoot><dl id='5vOXg'><fieldset id='5vOXg'></fieldset></dl></div>

                          主站蜘蛛池模板: 99re在线视频 | 精品毛片 | 国产 日韩 欧美 在线 | 天天干狠狠干 | 久一久 | 精品久久香蕉国产线看观看亚洲 | 国产91丝袜在线播放 | 亚洲一区二区三区乱码aⅴ 四虎在线视频 | 免费一级做a爰片久久毛片潮喷 | 一区二区三区四区国产 | 国产精品视频网 | 中文字幕国产精品 | 可以看黄的视频 | 一级黄色夫妻生活 | 日韩成人| 国产区第一页 | 久久男人天堂 | 久久精品一区二区 | 久久精品欧美视频 | 日韩a在线 | 羞羞视频在线观看 | 高清欧美性猛交 | 大乳boobs巨大吃奶挤奶 | 欧美精品乱码久久久久久按摩 | 91精品国产综合久久久亚洲 | 久久久久国产一区二区三区四区 | 久久精品视频网站 | 黄色成人在线观看 | 91精品国产高清久久久久久久久 | 亚洲一区二区免费电影 | 成人一级视频在线观看 | 久久久精品一区二区 | 亚洲一区二区三区免费观看 | 国产精品中文字幕在线 | 精品福利一区二区三区 | 久久一区二区三区四区 | 婷婷丁香在线视频 | 久久精品国产一区 | 区一区二区三在线观看 | 精品国产一区二区三区四区在线 | 亚洲欧洲综合av |