当前位置:网站首页>Performance optimization - rigorous mode
Performance optimization - rigorous mode
2022-07-02 22:51:00 【Why do you love learning so much】
StrictMode It's a development tool , It can detect what we might do unintentionally , And remind us of them , So that we can fix them .
StrictMode Most commonly used to capture unexpected disk or network access on the main thread of an application . Help us keep disk and network operations away from the main thread , Can make the application smoother 、 More responsive .
give an example : For example, the rigorous mode is turned on , Do it in the main thread IO Time consuming operation :
If you add penaltyLog Violation log printing , The error main thread will be IO Print out the operation .
If you add penaltyDeath Violation crash , Will print out the crash information .
This is used to remind developers , Code violations are unreasonable , Need to fix .
边栏推荐
- 佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
- Oracle-游标
- 任务和特权级保护
- Pointer array parameter passing, pointer parameter passing
- [LeetCode] 存在重复元素【217】
- 杰理之修改不需要长按开机功能【篇】
- I admire that someone explained such an obscure subject as advanced mathematics so easily
- Socket socket c/s end process
- UE4 UI adaptive screen
- 【板栗糖GIS】arcmap—为什么使用自定义捕捉的时候,经典捕捉的勾要去掉呢?
猜你喜欢
kubernetes 使用主机名将 pod 分配在指定节点上
Leetcode circular linked list (fast and slow pointer) code line by line interpretation
Mathematical modeling -- graph and network models and methods (I)
附加:【登录信息存储】与【登录状态校验】;(包括:总结了到目前为止,有关【登录信息存储】与【登录状态校验】的所有内容;)
Phpcms realizes the direct Alipay payment function of orders
Source code analysis - lightweight asynchronous crawler framework Ruia
电商系统微服务架构
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
Build your own website (22)
手写ORM(对象关系映射)增删改查
随机推荐
PHP微信抢红包的算法
【板栗糖GIS】arcscene—如何做出有高度的高程图
NC50965 Largest Rectangle in a Histogram
stop slave卡住--事务的事件没有复制完整
傑理之修改不需要長按開機功能【篇】
Market Research - current situation and future development trend of anterior cruciate ligament (ACL) reconstruction Market
PHP optimizes SQL queries in foreach
Market Research - current market situation and future development trend of handheld wound imaging equipment
[QT] QT multithreading development - four methods to realize multithreading design
佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
Simpleitk use - 3 Common operations
U++ 原始内存 学习笔记
Leetcode circular linked list (fast and slow pointer) code line by line interpretation
PHP implements querying the data matching the date of birth according to the entered age
加油站[问题分析->问题转换->贪心]
杰理之样机无触摸,拆机之后重新安装变正常【篇】
[autosar-dcm] - 4.3-how UDS $22 and $2e services read and write NVM data
phpcms实现订单直接支付宝支付功能
百度智能云-创建人脸识别应用
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')