1.Gcov viewing arm-Linux code coverage
I. About the gcov Tool
Gcov is released with GCC. Add the-fprofile-arcs-ftest-coverage parameter to the GCC compilation to generate a binary program, and execute the test case to generate code coverage
Zach Frey translation Roland
Optimizing the correct code is easier than debugging the optimized code.-- Yves Deville
Maybe you don't know what the purpose of gcov in the GCC tool set is, maybe you need to adjust the new project at hand, or your
The Gtest white Box test tool is used on the embedded platform , which covers the measured function, but does not know the effect of the test, test line coverage, function coverage, branch coverage data. began to study Gcov whether this code
C ++ code coverage profiling with GCC/gcov
Submitted by bobah on Wed, 01/27/2010-17:42
Http://www.bobah.net/d4d/tools/code-coverage-with-gcov
The coverage analysis with GCC/gcov includes three following steps
* Instrumented application
The unit test coverage rate means that each line of code should be covered by unit tests. Therefore, it is necessary to write a unit test for each method. In addition, if there are many if statement branches in this method, it should also be covered
GDB debugging and the use of debug scriptsReturn Script BlackstoneFirst, GDB debugging1.1. GDB OverviewGDB is a powerful UNIX program debugging tool released by the GNU Open source organization. Perhaps, you prefer that graphical interface, such as
I. GDB debugging
1.1. GDB Overview
GDB is a powerful Unix program debugging tool released by the GNU open-source organization. Maybe you prefer the graphical interface, such as Vc, BCB, and other ide debugging, but if you are running software on
From: http://qa.taobao.com /? P = 7218
C/C ++ has very few statistical tools for code coverage. Compared with Java, there are very few open-source and free tools. It is very rare to use and open-source tools. Finally, we chose gcov-based lcov as the
Article title: comprehensively analyzes the stress test on Linux kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and
1. Development toolsUnder Windows, development tools are presented to end-users in the form of an integrated development environment IDE. For example, VS2008 integrates editor, macro Assembler ml,c/c++ compiler cl, resource Compiler RC, debugger,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.