当前位置:网站首页>性能优化----严苛模式
性能优化----严苛模式
2022-07-02 22:07:00 【咋就那么爱学习】
StrictMode是一个开发工具,它可以检测出我们可能无意中做的事情,并将它们提醒我们注意,以便我们能够修复它们。
StrictMode最常用于捕获应用程序主线程上的意外磁盘或网络访问。帮助我们让磁盘和网络操作远离主线程,可以使应用程序更加平滑、响应更快。

举例:比如开启了严苛模式,在主线程去做IO的耗时操作时:
如果加了penaltyLog违规日志打印,就会把错误主线程进行了IO 操作给打印出来。
如果加了penaltyDeath 违规崩溃,就会把崩溃的信息打印出来。
这样都是用来提醒开发人员,代码违规不合理,需要去修复。
边栏推荐
- U++ learning notes - relaxation
- [shutter] shutter opens a third-party application (url|launcher plug-in search and installation | url| launcher plug-in official example | open browser | open a third-party application)
- 对象与对象变量
- Hanoi Tower problem
- 杰理之充电拔出,无法触摸开机【篇】
- Kubernetes resource object introduction and common commands (4)
- Socket套接字C/S端流程
- JS获取display为none的隐藏元素的宽度和高度的解决方案
- Market Research - current market situation and future development trend of genome editing mutation detection kit
- Market Research - current market situation and future development trend of aircraft audio control panel system
猜你喜欢

540. Single element in ordered array

附加:【登录信息存储】与【登录状态校验】;(包括:总结了到目前为止,有关【登录信息存储】与【登录状态校验】的所有内容;)

大话云原生之负载均衡篇-小饭馆客流量变大了
![[shutter] shutter application theme (themedata | dynamic modification theme)](/img/77/6b0082368943aee7108ac550141f28.gif)
[shutter] shutter application theme (themedata | dynamic modification theme)

对象与对象变量

Dynamic memory allocation (malloc calloc realloc free)
![[ODX studio edit PDX] -0.1- how to quickly view the differences in supported diagnostic information between variant variants (service, sub function...)](/img/2b/f31b81cedf37ca187bcaa20dfe0b83.png)
[ODX studio edit PDX] -0.1- how to quickly view the differences in supported diagnostic information between variant variants (service, sub function...)

Struct, bit segment, enumeration, union

【ODX Studio编辑PDX】-0.1-如何快速查看各Variant变体间的支持的诊断信息差异(服务,Sub-Function...)

Promise optimized callback hell
随机推荐
Commodity information management system (C language document version)
《乔布斯传》英文原著重点词汇笔记(十一)【 chapter nine】
PHP微信抢红包的算法
Simpleitk use - 3 Common operations
Market Research - current market situation and future development trend of aircraft audio control panel system
Notes on key vocabulary in the English original of the biography of jobs (11) [chapter nine]
Reading experience of just because
540. Single element in ordered array
`${}`的用法
《乔布斯传》英文原著重点词汇笔记(十)【 chapter eight】
大话云原生之负载均衡篇-小饭馆客流量变大了
牛客网:最大子矩阵
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?
Market Research - current market situation and future development trend of aircraft wireless intercom system
Solve the error of changing the selected file when uploading excel file. Net:: err_ UPLOAD_ FILE_ CHANGED
Market Research - current market situation and future development trend of aircraft front wheel steering system
影视随摘
杰理之如何测试按键的误触率【篇】
U++ 学习笔记 堆