什么时候需要内存分析?
是否需要对所有应用程序进行内存/性能分析?如果不是应该什么时候做?
Whether its required to do memory/performance profiling on all applications? If not when it should be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当性能不满足要求时,或者当有充分的业务理由需要专注于优化性能时(在我们的例子中,我们运行数十个 Web 服务器,因此我们经常将冲刺的一部分用于性能调优,因为存在真正的性能调整),对应用程序进行分析。这样做会对我们的运营预算产生影响)。
即使不满足这些条件,偶尔分析应用程序也值得,以帮助您了解性能中什么重要、什么不重要。通常,虽然有大量积压的软件需要编写,所以如果没有特定的业务原因,我不会花太多时间进行分析。人们很容易花费大量时间来优化事物,因为这是一个有趣的工程挑战,而不是因为它可以帮助软件真正为用户提供更好的服务。
Profile an application when performance does not meet requirements, or when there's a good business reason to focus on optimizing performance (in our case we run dozens of web servers, so every so often we dedicate part of a sprint to performance tuning because there's a real impact to our operations budget by doing so).
It can also be worth profiling applications now and then even if these conditions are not met to help you understand what matters, and what does not, in performance. Usually though there is a large backlog of software to write, so I would not spend too much time profiling without a specific business reason. It's easy to spend a LOT of time optimizing things because it's an interesting Engineering challenge rather than because it helps the software really be better to its users.