久久久久久久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 代碼覆蓋工具?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我有以下 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
                

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

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

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

                當我在 VS2010 中打開覆蓋文件時,我沒有得到任何結(jié)果.

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

                可能有什么問題?我按照這篇文章中的說明進行操作.

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

                推薦答案

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

                You need to run your program after the monitor starts:

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

                當您運行第 3 步時,您應該會在 vsperfmon.exe 中看到一些通知,提示 hello.exe 已啟動.

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

                如果您計劃進行多次測試運行,則只需運行步驟 2-4.換句話說,您只需要在二進制文件(步驟 1)構(gòu)建后對其進行一次檢測.

                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 代碼覆蓋工具?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Why do two functions have the same address?(為什么兩個函數(shù)的地址相同?)
                Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復制構(gòu)造的?)
                mixing templates with polymorphism(混合模板與多態(tài)性)
                When should I use the keyword quot;typenamequot; when using templates(我什么時候應該使用關(guān)鍵字“typename?使用模板時)
                Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標準庫)
                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>

                          主站蜘蛛池模板: 免费特级毛片 | 欧美69视频 | 欧美激情视频网站 | 一级久久 | 日韩精品久久久久久久 | 国产蜜臀av | 欧美 日韩 国产 成人 在线 | 国产成人在线免费观看 | 成人一级毛片 | 国产xxx| 欧美日韩久久 | 国产中文在线 | 伊人网视频 | 国产又色又爽又黄又免费 | 双性呜呜宫交受不住了h | 超碰成人在线观看 | 麻豆av网站 | 精品国产乱码久久久久 | 中文字幕免费观看视频 | 精品在线免费观看 | 亚洲成人免费 | 成人免费看 | 亚洲免费观看 | 欧美日韩大片 | 夜夜躁狠狠躁日日躁av | 日本福利视频 | 国产成人一区二区三区 | 一级黄色录像视频 | 欧美日韩色| 午夜影院福利 | 97精品国产 | 精品黑人一区二区三区国语馆 | 超碰com| 亚洲天堂男人天堂 | 欧美成人精品 | 黄色日批视频 | 国产成人免费观看 | 激情五月综合网 | 成人午夜在线观看 | 欧美视频一二三区 | 欧美成人午夜 |