Storage method for preventing client logs from losing easily
A client and log technology, which is applied in the input/output process of data processing, digital data information retrieval, special data processing applications, etc., can solve the problems of log information loss, and the log is not easily lost, so as to reduce the problem of freezing and reduce the IO consumption and the effect of improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach
[0029] like figure 1 As shown, specifically, specific embodiments of the present invention include:
[0030] (1) If the transitional log file log.0 is not found in the log directory, call the system MMAP to create a 2M MMAP memory when the Android or IOS system is initialized, and map the created MMAP memory to In a text file of the system, the text file is named log.0, and log.0 is used as the log file that plays a transitional role, indicating the latest stored log file. If the transitional log file log.0 is found in the log directory, the log.0 is mapped into the MMAP memory according to the MMAP rule.
[0031] (2) Read the 2K header data Header structure (struct Header) of the mapped MMAP memory space, where the structure is set as follows:
[0032] struct Header {
[0033] int32_t write_len_;
[0034] int32_t free_len_;
[0035] int32_t flag_;
[0036] char ext_data_[2035];
[0037] char magic_flag_;
[0038]};
[0039] In the above settings, write_len_ indicates ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com