Coder Social home page Coder Social logo

用久了, 还是会闪退 about zxkitlogger HOT 7 CLOSED

ytx0574 avatar ytx0574 commented on May 27, 2024
用久了, 还是会闪退

from zxkitlogger.

Comments (7)

DamonHu avatar DamonHu commented on May 27, 2024

可以发下报错的日志或者闪退的定位

from zxkitlogger.

ytx0574 avatar ytx0574 commented on May 27, 2024

image
就是日志持续写很快, 然后卡死的

from zxkitlogger.

DamonHu avatar DamonHu commented on May 27, 2024

收到,我去模拟一下

from zxkitlogger.

ytx0574 avatar ytx0574 commented on May 27, 2024

收到,我去模拟一下

        self.mDisplayLogDataArray = HDSqliteTools.shared.getAllLog(name: self.dataBaseName, keyword: self.mSearchBar.text, type: self.filterType)

还有个问题, 日志太多的时候, 这里也卡.

from zxkitlogger.

ytx0574 avatar ytx0574 commented on May 27, 2024
image 原因是日志输出频率太高, 这里的动画和dispatch.main的切换以及下面的滚动到底部的代码导致卡死. 我这项目是蓝牙一直给app发数据, 1s差不多就有20条的样子

from zxkitlogger.

DamonHu avatar DamonHu commented on May 27, 2024

短期大量输出内容刷新界面,会导致cpu大量计算占用,所以可以采取节流的方式,设置定时刷新界面,单位秒,默认为0,例如5秒刷新一次

ZXKitLogger.throttleTime = 5

更新到4.0.9版本可使用

from zxkitlogger.

ytx0574 avatar ytx0574 commented on May 27, 2024

👌🏻, 感谢大佬, 我再继续试用

from zxkitlogger.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.