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

举例:比如开启了严苛模式,在主线程去做IO的耗时操作时:
如果加了penaltyLog违规日志打印,就会把错误主线程进行了IO 操作给打印出来。
如果加了penaltyDeath 违规崩溃,就会把崩溃的信息打印出来。
这样都是用来提醒开发人员,代码违规不合理,需要去修复。
边栏推荐
- 建立自己的网站(22)
- [QT] QT multithreading development - reentrancy and thread safety
- Objects and object variables
- U++ learning note pile
- 百度智能云-创建人脸识别应用
- [micro service sentinel] rewrite Sentinel's interface blockexceptionhandler
- Storage unit conversion
- 杰理之充电拔出,无法触摸开机【篇】
- Market Research - current market situation and future development trend of third-party data platform
- NC50965 Largest Rectangle in a Histogram
猜你喜欢

Socket socket c/s end process

数学建模——图与网络模型及方法(一)

Perceptron model and Application

uniapp微信登录返显用户名和头像

基于ASP.net的手机销售管理系统(二手手机销售管理系统)+ASP.NET+C#语言+VS2010+数据库可以用于课设、毕设学习

电商系统微服务架构

Phpcms realizes the direct Alipay payment function of orders

Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts

Utilisation de simpletk - 4. Question étrange

牛客网:最大子矩阵
随机推荐
牛客网:龙与地下城游戏
LxC terminal login method
An overview of the development of affective computing and understanding research
[micro service sentinel] rewrite Sentinel's interface blockexceptionhandler
Build your own website (22)
Jerry's modification does not require long press the boot function [chapter]
Leetcode circular linked list (fast and slow pointer) code line by line interpretation
Source code analysis - lightweight asynchronous crawler framework Ruia
Commodity information management system (C language document version)
[shutter] shutter custom fonts (download TTF fonts | pubspec.yaml configure font resources | synchronize resources | globally apply fonts | locally apply fonts)
SimpleITK使用——3. 常见操作
Unity发布WebGL播放声音的一种方法
杰理之样机在多次触摸后会触发关机【篇】
数据库系统概论第一章简答题-期末考得怎么样?
Using rendertext() to output multiple lines of text with rendertext() in R shiny
Storage unit conversion
对象与对象变量
U++ learning notes - relaxation
Oracle PL / SQL programming
Struct, bit segment, enumeration, union