How to Use vsts to analyze software code and performance?

Source: Internet
Author: User
How to use analysis tools to analyze the performance of software? The following are some tools and methods used for reference only:

(1)StaticCodeAnalysis: Mainly through some existing code writing rules to analyze whether the current Code has some security vulnerabilities or issues to be optimized, you can adjust the check rules based on your actual situation.

(2)Task Manager: Shortcut key:CTRL + Shift + ESCBy usingProcessesAndPerformanceLabels are used to judge the entire process, mainly by observing the changes in CPU, memory, hard disk read/write and other indicators during the execution of our software processes, because it does not have the logging function, it requires real-time observation and multiple attempts to determine whether there is a performance problem in a generous way.

(3)Performance Monitor:Start-> Run-> perfmonOr open it from the system management tool. With this tool, we can customize and observe many detailed parameter changes, and the interface is constantly refreshing data through a monitor, compared with the real-time performance of the task manager, the tool records changes over a period of time, which helps us to summarize and observe the changes in parameters and ultimately determine the root cause of performance problems.

(4)Probe events: Integrates the event detection function in vs. The location in vs2008 is"Analysis-> Start performance wizard", We can choose not to modifyProgramThe"SamplingYou can also choose to modify the"Plug-inThe former obtains the corresponding counter data by sampling the CPU counter, while the latter adds some necessary processing functions to observe the function execution more accurately, optional. We will get a large amount of analysis data, and we need to filter it again.

(5)Code coverage: Check the Code through testing. The higher the code coverage rate, the better. The key is to set appropriate coverage targets based on your own situation.

(6)Command line tool Integration: We can also use the command line tool to execute some third-party testing tools, suchVsinstr,Vsperfmon,VsperfcmdAndVsperfreportTools.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.