- ASP.NET Core 2 High Performance(Second Edition)
- James Singleton
- 210字
- 2021-07-08 09:39:08
Tools
Good debugging tools are essential when you're trying to discover where problems lie. You could write your own crude timing code, and we will show you how to get started with this. However, purpose-built tools are much nicer to work with than simply logging lines of debug information. VS 2017 includes some very useful Application Insights tools that make helpful information easily visible.
Many of the tools discussed in this chapter help you examine areas external to your code. We will cover the profiling of code too, but it's hard to identify problems this way unless the work is purely computational. Slowdowns often happen because of actions your app initiates outside of its immediate stack, and these can be hard to debug by simply stepping through the code. VS 2017 can show you what external actions your app takes, for example, triggering an HTTP API call.
Moving through your program line by line slows down the execution so much that it can make it difficult to identify which lines are fast and which are slow. However, VS does display the time taken since the previous debug step, which can help with this. Nevertheless, the same approach taken for fixing functional bugs cannot always be applied to fix performance issues.
- 嚴(yán)密系統(tǒng)設(shè)計:方法、趨勢與挑戰(zhàn)
- Learning Python by Building Games
- NGINX Cookbook
- Node.js:來一打 C++ 擴(kuò)展
- 智能手機(jī)APP UI設(shè)計與應(yīng)用任務(wù)教程
- Scratch趣味編程:陪孩子像搭積木一樣學(xué)編程
- Visual Basic程序設(shè)計全程指南
- H5+移動營銷設(shè)計寶典
- Mastering ASP.NET Core 2.0
- Apache Solr for Indexing Data
- Java服務(wù)端研發(fā)知識圖譜
- 微信公眾平臺開發(fā)最佳實(shí)踐
- 開發(fā)者測試
- Learning Rust
- 米思齊實(shí)戰(zhàn)手冊:Arduino圖形化編程指南