当前位置:网站首页>性能优化----严苛模式
性能优化----严苛模式
2022-07-02 22:07:00 【咋就那么爱学习】
StrictMode是一个开发工具,它可以检测出我们可能无意中做的事情,并将它们提醒我们注意,以便我们能够修复它们。
StrictMode最常用于捕获应用程序主线程上的意外磁盘或网络访问。帮助我们让磁盘和网络操作远离主线程,可以使应用程序更加平滑、响应更快。
举例:比如开启了严苛模式,在主线程去做IO的耗时操作时:
如果加了penaltyLog违规日志打印,就会把错误主线程进行了IO 操作给打印出来。
如果加了penaltyDeath 违规崩溃,就会把崩溃的信息打印出来。
这样都是用来提醒开发人员,代码违规不合理,需要去修复。
边栏推荐
- Storage unit conversion
- 送给即将工作的自己
- Simpleitk use - 3 Common operations
- PHP implements querying the data matching the date of birth according to the entered age
- kubernetes 使用主机名将 pod 分配在指定节点上
- SimpleITK使用——4. 奇怪的问题
- 【AUTOSAR-DCM】-4.3-UDS $22和$2E服务如何读取和写入NVM数据
- 服务器响应状态码
- Additional: [login information storage] and [login status verification]; (including: summarizing all the contents of [login information storage] and [login status verification] so far;)
- Market Research - current situation and future development trend of anterior cruciate ligament (ACL) reconstruction Market
猜你喜欢
uniapp微信登录返显用户名和头像
New feature of go1.18: trylock, which has been tossed n times
"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks!
Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?
建立自己的网站(22)
[shutter] shutter gesture interaction (small ball following the movement of fingers)
UE4 游戏架构 学习笔记
Kubernetes resource object introduction and common commands (4)
任务和特权级保护
Utilisation de simpletk - 4. Question étrange
随机推荐
Niuke: Dragon and dungeon games
Notes on key vocabulary of the original English book biography of jobs (IX) [chapter seven]
影视随摘
NC24325 [USACO 2012 Mar S]Flowerpot
[shutter] shutter page life cycle (initialization period | createstate | initstate | update period | build | destroy period | dispose)
How should programmers write logs
数学建模——图与网络模型及方法(一)
Market Research - current situation and future development trend of preclinical medical device testing service market
`${}`的用法
kubernetes 使用主机名将 pod 分配在指定节点上
JS获取display为none的隐藏元素的宽度和高度的解决方案
[shutter] shutter application life cycle (foreground state resumed | background state paused | inactive | component separation state detached)
傑理之修改不需要長按開機功能【篇】
Market Research - current situation and future development trend of carob chocolate market
Oracle-PL/SQL编程
Market Research - current situation and future development trend of marine clutch Market
uniapp微信登录返显用户名和头像
PHP implements querying the data matching the date of birth according to the entered age
《乔布斯传》英文原著重点词汇笔记(十一)【 chapter nine】
数据库系统概论第一章简答题-期末考得怎么样?