在软件中使用静态分析的目的 [英] Purpose of using static analysis in software

查看:354
本文介绍了在软件中使用静态分析的目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

静态分析工具用于分析代码而不执行它。它的用途是对死代码或代码的复杂性进行细化。代码质量可以通过静态分析得到改善。



代码质量的提高可以提高软件应用程序的性能。



我尝试了什么:



我正在研究使用静态分析工具(如源监视器)时的代码质量改进。但是我想知道在改进代码之后我们如何测量性能以验证静态分析在代码中实现的改进会影响应用程序的性能。

解决方案

< blockquote>

Quote:

它的目的是为了解决死代码或代码的复杂性。代码质量可以改进使用静态分析。



静态程序分析 - 维基百科 [ ^ ]



引用:

代码质量的提高是否提高了软件应用程序的性能。

唯一的性能提升你只有当分析发现代码是用不良的做法降低性能时才会出现,在这种情况下,更正将改善性能,但只是略有下降。

对性能有什么实际影响是您使用的算法和您找到的优化,它们将优于静态分析的任何性能改进。


Static analysis tool are used to analyse the code without executing it. Its purpuse is to fine the dead code or complexity of the code. the code quality can be improved usign static analysis.

does the improve in code quality improve the performance of the software application.

What I have tried:

I am studying the code quality improvement while using static analysis tools like source monitor. But I am wondering how can we mesure the performance after improving the code to verify that the improvments that are implemented in the code by static analysis impact the performance of the application.

解决方案

Quote:

Its purpuse is to fine the dead code or complexity of the code. the code quality can be improved usign static analysis.


Static program analysis - Wikipedia[^]

Quote:

does the improve in code quality improve the performance of the software application.

The only performance improvement you can expect is only if the analysis find that the code is written with poor practices that downgrade the performance, in this case, the corrections will improve the performance, but only marginally.
What have real impact on performance is the algorithm you use and the optimizations you find, they will outperform any performance improvement from static analysis.


这篇关于在软件中使用静态分析的目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆