CN115080297A - Analysis method and device for crash log - Google Patents
Analysis method and device for crash log Download PDFInfo
- Publication number
- CN115080297A CN115080297A CN202210764083.6A CN202210764083A CN115080297A CN 115080297 A CN115080297 A CN 115080297A CN 202210764083 A CN202210764083 A CN 202210764083A CN 115080297 A CN115080297 A CN 115080297A
- Authority
- CN
- China
- Prior art keywords
- file
- crash
- target
- log
- authentication information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0769—Readable error formats, e.g. cross-platform generic formats, human understandable formats
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0787—Storage of error reports, e.g. persistent data storage, storage using memory protection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请涉及人工智能技术领域,特别是涉及一种崩溃日志的解析方法及其装置。The present application relates to the technical field of artificial intelligence, and in particular, to a crash log parsing method and device thereof.
背景技术Background technique
随着互联网技术的飞速发展,电子设备行业也快速发展,伴随着电子设备而产生的应用程序也日渐增多,如何提高应用程序的使用者的体验感成为各个应用程序开发者要解决的主要问题。With the rapid development of Internet technology, the electronic equipment industry is also developing rapidly, and the number of applications generated by electronic equipment is also increasing day by day. How to improve the user experience of the application has become the main problem to be solved by the application developers.
电子设备在日常使用过程可能会存在一些事故,为了解决事故,需要对事故对应的崩溃日志进行解析,根据解析结果解决该闪退事故。例如,电子设备在使用时可能出现闪退事故,为解决闪退事故,需要对该闪退事故对应的崩溃日志进行解析,根据解析结果解决该闪退事故。现有技术中,开发人员可以对崩溃日志进行手动命令解析,从而获取解析结果。There may be some accidents in the daily use of electronic equipment. In order to solve the accident, it is necessary to analyze the crash log corresponding to the accident, and solve the flashback accident according to the analysis result. For example, when an electronic device is in use, a flashback accident may occur. In order to solve the flashback accident, it is necessary to parse the crash log corresponding to the flashback accident, and solve the flashback accident according to the analysis result. In the prior art, developers can perform manual command parsing on crash logs to obtain parsing results.
但是,上述崩溃日志的解析方法操作难度较大,增加人工成本。However, the above-mentioned crash log parsing method is difficult to operate and increases labor costs.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述技术问题,提供一种崩溃日志的解析方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to provide a crash log analysis method, apparatus, computer device, computer-readable storage medium and computer program product for the above technical problems.
第一方面,本申请提供了一种崩溃日志的解析方法。所述方法包括:In a first aspect, the present application provides a crash log parsing method. The method includes:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对所述初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to obtain the target crash file;
基于所述系统文件对所述目标崩溃日志进行验证;verifying the target crash log based on the system file;
若验证通过,则对所述目标崩溃日志进行解析,得到目标日志文件,所述目标日子文件包括所述APP的事故信息。If the verification is passed, the target crash log is parsed to obtain a target log file, and the target date file includes the accident information of the APP.
在其中一个实施例中,所述对所述目标崩溃日志进行解析,得到目标日志文件,包括:In one embodiment, the target crash log is parsed to obtain a target log file, including:
对所述目标崩溃日志进行符号化解析,得到所述APP发生事故的类名与方法名;Perform symbolic analysis on the target crash log to obtain the class name and method name of the APP accident;
根据所述类名与所述方法名,生成初始日志文件,对所述初始日志文件进行命名处理,得到所述目标日志文件。According to the class name and the method name, an initial log file is generated, and the initial log file is named to obtain the target log file.
在其中一个实施例中,所述基于所述系统文件对所述目标崩溃日志进行验证,包括:In one embodiment, the verifying the target crash log based on the system file includes:
判断所述系统文件中的身份验证信息与所述目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the system file is consistent with the authentication information in the target crash file;
若所述系统文件中的身份验证信息与所述目标崩溃文件中的身份验证信息一致,则确定所述验证通过;If the authentication information in the system file is consistent with the authentication information in the target crash file, it is determined that the authentication is passed;
若所述系统文件中的身份验证信息与所述目标崩溃文件中的身份验证信息不一致,则确定所述验证未通过。If the authentication information in the system file is inconsistent with the authentication information in the target crash file, it is determined that the authentication fails.
在其中一个实施例中,所述系统文件包括程序文件和符号表文件,所述判断所述系统文件中的身份验证信息与所述目标崩溃文件中的身份验证信息是否一致,包括:In one embodiment, the system file includes a program file and a symbol table file, and the determining whether the authentication information in the system file is consistent with the authentication information in the target crash file includes:
判断所述程序文件和所述符号表文件中的身份验证信息与所述目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file;
若所述程序文件和所述符号表文件中的身份验证信息均与所述目标崩溃文件中的身份验证信息一致,则表示所述系统文件中的身份验证信息与所述目标崩溃文件中的身份验证信息一致。If the identity verification information in the program file and the symbol table file is consistent with the identity verification information in the target crash file, it means that the identity verification information in the system file is the same as the identity verification information in the target crash file Verify that the information is consistent.
在其中一个实施例中,还包括:In one embodiment, it also includes:
若所述验证未通过,则重新获取所述APP的新的目标崩溃文件,并基于所述系统文件重新对所述新的目标崩溃文件进行验证。If the verification fails, a new target crash file of the APP is re-acquired, and the new target crash file is re-verified based on the system file.
在其中一个实施例中,包括:In one embodiment, it includes:
响应于所述身份验证未通过,确认所述身份验证未通过的原因;In response to the failure of the identity verification, confirm the reason for the failure of the identity verification;
基于所述身份验证未通过的原因,输出报错提醒信息。Based on the reason why the identity verification fails, an error message is outputted.
在其中一个实施例中,所述获取设备中应用程序APP的初始崩溃日志和系统文件,包括:In one embodiment, the acquisition of the initial crash log and system file of the application APP in the device includes:
获取所述设备中所包含的多个基础文件;obtain a plurality of basic files contained in the device;
将所述多个基础文件显示在解析应用程序界面的导入文件预览区域,其中,所述解析应用程序可安装于所述设备上;displaying the plurality of basic files in the import file preview area of the parsing application program interface, wherein the parsing application program can be installed on the device;
响应于基于所述导入文件预览区域对所述多个基础文件的选定操作,获取所述设备中的所述崩溃日志和所述系统文件。The crash log and the system file in the device are obtained in response to a selected operation on the plurality of base files based on the import file preview area.
在其中一个实施例中,还包括:In one embodiment, it also includes:
在所述解析应用程序界面的生成文件预览区域展示所述目标日志文件;Display the target log file in the generated file preview area of the parsing application program interface;
基于所述解析应用程序界面获取导出指令,响应于所述导出指令将所述目标日志文件按照目标路径进行存储。An export instruction is acquired based on the parsing application program interface, and the target log file is stored according to a target path in response to the export instruction.
第二方面,本申请还提供了一种崩溃日志的解析装置。所述装置包括:In a second aspect, the present application also provides a crash log parsing apparatus. The device includes:
获取模块,用于获取设备中应用程序APP的初始崩溃日志和系统文件;The acquisition module is used to acquire the initial crash log and system files of the application APP in the device;
修改模块,用于对所述初始崩溃文件的拓展名进行修改,得到目标崩溃文件;a modification module, for modifying the extension of the initial crash file to obtain a target crash file;
验证模块,用于基于所述目标崩溃日志对所述系统文件进行验证;a verification module, configured to verify the system file based on the target crash log;
解析模块,用于若验证通过,则对所述系统文件进行解析,得到目标日志文件,所述目标日子文件包括所述APP的事故信息。A parsing module, configured to parse the system file if the verification is passed, to obtain a target log file, and the target date file includes the accident information of the APP.
第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对所述初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to obtain the target crash file;
基于所述系统文件对所述目标崩溃日志进行验证;verifying the target crash log based on the system file;
若验证通过,则对所述目标崩溃日志进行解析,得到目标日志文件,所述目标日子文件包括所述APP的事故信息。If the verification is passed, the target crash log is parsed to obtain a target log file, and the target date file includes the accident information of the APP.
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the following steps are implemented:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对所述初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to obtain the target crash file;
基于所述系统文件对所述目标崩溃日志进行验证;verifying the target crash log based on the system file;
若验证通过,则对所述目标崩溃日志进行解析,得到目标日志文件,所述目标日子文件包括所述APP的事故信息。If the verification is passed, the target crash log is parsed to obtain a target log file, and the target date file includes the accident information of the APP.
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对所述初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to obtain the target crash file;
基于所述系统文件对所述目标崩溃日志进行验证;verifying the target crash log based on the system file;
若验证通过,则对所述目标崩溃日志进行解析,得到目标日志文件,所述目标日子文件包括所述APP的事故信息。If the verification is passed, the target crash log is parsed to obtain a target log file, and the target date file includes the accident information of the APP.
根据本申请的技术方案,通过获取初始崩溃日志和系统文件,为后续得到目标日志文件提供基础数据,通过目标崩溃文件实现对于系统文件的验证处理,保证了解析过程的顺利进行,为后续能够顺利得到目标日志文件提供保障;通过对系统文件进行解析,实现获取目标日志文件,降低了崩溃日志解析的操作难度,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。According to the technical solution of the present application, by obtaining the initial crash log and the system file, basic data is provided for the subsequent acquisition of the target log file, and the verification processing of the system file is realized through the target crash file, which ensures the smooth progress of the parsing process and ensures the smooth progress of the subsequent Obtaining the target log file provides guarantee; by parsing the system file, the target log file is obtained, which reduces the operational difficulty of crash log parsing, reduces the labor cost required for parsing crash logs, and increases the work efficiency of parsing crash logs.
附图说明Description of drawings
图1为本申请实施例提供的一种崩溃日志的解析方法的示例图;FIG. 1 is an example diagram of a method for parsing a crash log provided by an embodiment of the present application;
图2为本申请实施例提供的一种崩溃日志的解析方法的流程图;2 is a flowchart of a method for parsing a crash log provided by an embodiment of the present application;
图3为本申请实施例提供的另一种崩溃日志的解析方法的流程图;3 is a flowchart of another crash log parsing method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种崩溃日志的解析方法的流程图;4 is a flowchart of another crash log parsing method provided by an embodiment of the present application;
图5为本申请实施例提供的另一种崩溃日志的解析方法的流程图;5 is a flowchart of another crash log parsing method provided by an embodiment of the present application;
图6为本申请实施例提供的另一种崩溃日志的解析方法的流程图;6 is a flowchart of another crash log parsing method provided by an embodiment of the present application;
图7为本申请实施例提供的解析应用程序界面设计图;FIG. 7 is a design diagram of a parsing application program interface provided by an embodiment of the present application;
图8为本申请实施例提供的另一种崩溃日志的解析方法的流程图;8 is a flowchart of another crash log parsing method provided by an embodiment of the present application;
图9为本申请实施例提供的一种崩溃日志的解析装置的结构框图;FIG. 9 is a structural block diagram of an apparatus for parsing a crash log provided by an embodiment of the present application;
图10为本申请实施例提供的另一种崩溃日志的解析装置的结构框图;10 is a structural block diagram of another crash log parsing apparatus provided by an embodiment of the present application;
图11为本申请实施例提供的另一种崩溃日志的解析装置的结构框图;11 is a structural block diagram of another crash log parsing apparatus provided by an embodiment of the present application;
图12为本申请实施例提供的另一种崩溃日志的解析装置的结构框图;12 is a structural block diagram of another crash log parsing apparatus provided by an embodiment of the present application;
图13为一个实施例中计算机设备的内部结构图。Figure 13 is a diagram of the internal structure of a computer device in one embodiment.
附图标记reference number
1、导入文件预览区域;2、编辑控件;3、删除控件;4、导入控件;5、备选区;6、生成文件预览区域;7、导出控件。1. Import file preview area; 2. Edit control; 3. Delete control; 4. Import control; 5. Alternative area; 6. Generate file preview area; 7. Export control.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
在本申请的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this application, references to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc. refer to the specific features described in connection with the embodiment or example. , structure, material or feature is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
并且,在本申请的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本申请中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围,也不表示先后顺序。And, in the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this document is only an association to describe the associated object Relation, it means that there can be three kinds of relations, for example, A and/or B can mean that A exists alone, A and B exist at the same time, and B exists alone. The first, second, and other numeral numbers involved in the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application, nor do they indicate the order of precedence.
如图1所示,用户的设备在日常使用时,安装于用户设备中的应用程序APP发生了事故,此时开发人员的设备接收到事故应用程序APP发送的初始崩溃日志和系统文件,开发人员的设备中安装有解析应用程序,解析应用程序从开发人员的设备的数据存储系统中获取初始崩溃日志和系统文件,并对初始崩溃文件的拓展名进行修改,得到目标崩溃文件,基于系统文件验证目标崩溃文件属于同一设备中且同一应用程序APP,若验证通过,则对目标崩溃日志进行符号化处理,得到事故的事故的类名与方法名,至此完成对初始崩溃日志的解析操作。As shown in Figure 1, when the user's device is in daily use, an accident occurs in the application APP installed in the user's device. At this time, the developer's device receives the initial crash log and system file sent by the accident application APP. The parsing application is installed on the device of the developer. The parsing application obtains the initial crash log and system file from the data storage system of the developer's device, and modifies the extension of the initial crash file to obtain the target crash file. Based on the system file verification The target crash file belongs to the same device and the same application APP. If the verification is passed, the target crash log is symbolized to obtain the class name and method name of the accident. So far, the analysis of the initial crash log is completed.
在实际使用过程中,电子设备在日常使用过程中可能会遇到一些事故,为了解决该事故,需要开发人员崩溃日志进行手动命令解析,从而获取解析结果,但是,人工解析的方法操作难度较大,增加人工成本。In the actual use process, electronic equipment may encounter some accidents in the daily use process. In order to solve the accident, the developer needs to parse the crash log manually to obtain the parsing result. However, the manual parsing method is difficult to operate. , increasing labor costs.
基于上述问题,本申请公开了一种崩溃日志的解析方法及其装置,通过获取初始崩溃日志和系统文件,基于初始崩溃日志得到目标崩溃日志,并基于系统文件对目标崩溃日志进行验证,若验证通过,则对目标崩溃日志进行解析处理,最终得到目标日志文件。具体地,下面参考附图描述本申请实施例的崩溃日志的解析方法。Based on the above problems, the present application discloses a crash log parsing method and device. By obtaining an initial crash log and a system file, a target crash log is obtained based on the initial crash log, and the target crash log is verified based on the system file. If passed, the target crash log is parsed, and the target log file is finally obtained. Specifically, a crash log parsing method according to an embodiment of the present application is described below with reference to the accompanying drawings.
图2为本申请实施例提供的一种崩溃日志的解析方法的流程图,如图1所示,该崩溃日志的解析方法包括以下步骤:2 is a flowchart of a method for parsing a crash log provided by an embodiment of the present application. As shown in FIG. 1 , the method for parsing a crash log includes the following steps:
步骤201,获取设备中应用程序APP的初始崩溃日志和系统文件。Step 201: Obtain an initial crash log and system file of an application program APP in the device.
其中,设备可以为各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。Among other things, the devices may be various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. A device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices.
可选地,初始崩溃日志为扩展名可以为“.ips”的文件,系统文件可包括:程序文件和符号表文件。Optionally, the initial crash log is a file whose extension may be ".ips", and the system file may include: a program file and a symbol table file.
在本申请的一种实施例中,假设本申请实施例的崩溃日志的解析方法可应用于设备,该设备上安装有解析应用程序,用户可基于解析应用程序实现对于初始崩溃日志和系统文件的选定、获取与解析。In an embodiment of the present application, it is assumed that the crash log parsing method of the embodiment of the present application can be applied to a device, and a parsing application program is installed on the device. Select, get and resolve.
作为一种实现方式,本申请可以通过在解析应用程序界面中设置信息接收栏以实现初始崩溃日志和系统文件的获取,当某一设备中的应用程序APP(Application应用程序)发生事故时,该设备可实现对于事故应用程序APP初始崩溃日志和系统文件的获取,并且将初始崩溃日志和系统文件在信息接收栏中显示,从而实现对初始崩溃日志和系统文件获取操作。As an implementation manner, the present application can obtain the initial crash log and system file by setting the information receiving column in the parsing application program interface. When an accident occurs in the application program APP (Application program) in a certain device, the The device can obtain the initial crash log and system file of the accident application APP, and display the initial crash log and system file in the information receiving column, thereby realizing the operation of obtaining the initial crash log and system file.
举例说明,当某一智能电话在运行短视频应用程序发生事故时,该设备可实现对于短视频应用程序的初始崩溃日志和系统文件的获取,并将短视频应用程序的初始崩溃日志和系统文件在信息接收栏中显示,从而实现获取智能电话中的短视频应用程序的初始崩溃日志和系统文件。作为另一种实现方式,本申请可以通过在解析应用程序中设置数据库和搜索栏实现初始崩溃日志和系统文件的获取,其中,数据库中可储存若干初始崩溃日志和若干系统文件,且数据库可实现对于初始崩溃日志和系统文件的增加与删减,当需要获取某一初始崩溃日志和某一系统文件的时候,可根据搜索栏中的搜索条件,向用户展示出最符合搜索条件的初始崩溃日志和系统文件。用户可根据实际情况选定最合适的初始崩溃日志和系统文件,实现获取初始崩溃日志和系统文件的操作。其中,搜索条件可包括:初始崩溃日志和系统文件的存入时间和初始崩溃日志和系统文件命名中所包含的关键字等。For example, when an accident occurs when a smartphone is running a short video application, the device can obtain the initial crash log and system file of the short video application, and store the initial crash log and system file of the short video application. Displayed in the information receiving bar, thereby realizing the acquisition of the initial crash log and system files of the short video application in the smartphone. As another implementation manner, the present application can realize the acquisition of initial crash logs and system files by setting a database and a search bar in the parsing application, wherein several initial crash logs and several system files can be stored in the database, and the database can realize For the addition and deletion of initial crash logs and system files, when a certain initial crash log and a certain system file need to be obtained, the initial crash log that best matches the search criteria can be displayed to the user according to the search criteria in the search bar. and system files. The user can select the most suitable initial crash log and system file according to the actual situation, and realize the operation of obtaining the initial crash log and system file. The search conditions may include: the storage time of the initial crash log and the system file, keywords contained in the naming of the initial crash log and the system file, and the like.
举例说明,当需要获取某一智能电话中的短视频应用程序的初始崩溃日志和系统文件时,在搜索栏中输入初始崩溃日志和系统文件的存入时间,实现在数据库中获取某一智能电话中的短视频应用程序的初始崩溃日志和系统文件。For example, when you need to obtain the initial crash log and system file of a short video application in a smartphone, enter the initial crash log and the storage time of the system file in the search bar to obtain a smartphone in the database. Initial crash log and system files for the short video application in .
步骤202,对初始崩溃文件的拓展名进行修改,得到目标崩溃文件。Step 202: Modify the extension of the initial crash file to obtain the target crash file.
例如,初始崩溃文件的拓展名为“.ips”,但拓展名为“.ips”的初始崩溃文件无法进行可视化处理,即无法对初始崩溃文件进行打开操作,进而无法根据初始崩溃文件进行后续的操作流程;为保证能够对初始崩溃文件进行可视化处理,且后续实现能够根据系统文件对初始崩溃文件进行验证,需要将初始崩溃文件的拓展名修改为“.crash”,其中,拓展名为“.crash”的初始崩溃文件,即为目标崩溃文件。For example, the extension name of the initial crash file is ".ips", but the initial crash file with the extension name ".ips" cannot be visualized, that is, the initial crash file cannot be opened, and subsequent operations cannot be performed based on the initial crash file. Operation process; in order to ensure that the initial crash file can be visualized, and the subsequent implementation can verify the initial crash file according to the system file, the extension name of the initial crash file needs to be changed to ".crash", where the extension name is ". crash” is the initial crash file, which is the target crash file.
步骤203,基于系统文件志对目标崩溃日进行验证。
需要说明的是,为保证后续能够实现对于崩溃日志的解析处理,需要保证了目标崩溃日志与系统文件互相对应,若目标崩溃日志与系统文件不互相对应,则后续无法实现对于崩溃日志的解析处理。It should be noted that, in order to ensure the subsequent analysis and processing of the crash log, it is necessary to ensure that the target crash log and the system file correspond to each other. If the target crash log and the system file do not correspond to each other, the subsequent analysis and processing of the crash log cannot be realized. .
其中,目标崩溃日志与系统文件互相对应指的是:目标崩溃日志与系统文件均属于同一设备中且同一应用程序APP;目标崩溃日志与系统文件不互相对应指的是:目标崩溃日志与系统文件不属于同一设备,和/或,不属于同一应用程序APP。Among them, the target crash log and the system file correspond to each other means: the target crash log and the system file belong to the same device and the same application APP; the target crash log and the system file do not correspond to each other refers to: the target crash log and the system file Do not belong to the same device, and/or, do not belong to the same application APP.
举例说明,若目标崩溃日志属于设备A,系统文件也属于设备A,但是目标崩溃日志属于设备A中的应用程序M,而系统文件属于设备A中的应用程序N,则证明目标崩溃日志与系统文件不互相对应。For example, if the target crash log belongs to device A and the system file also belongs to device A, but the target crash log belongs to application M in device A, and the system file belongs to application N in device A, it proves that the target crash log is related to the system The files do not correspond to each other.
在本申请的一种实施例中,可选地,可通过获取目标崩溃日志中的第一验证信息和系统文件中的第二验证信息,通过验证第一验证信息与第二验证信息是否一致,进而判断系统文件对目标崩溃日志的验证是否通过,若第一验证信息与第二验证信息一致,则表示系统文件对目标崩溃日志的验证通过;若第一验证信息与第二验证信息不一致,则表示系统文件对目标崩溃日志的验证未通过。In an embodiment of the present application, optionally, by obtaining the first verification information in the target crash log and the second verification information in the system file, and verifying whether the first verification information is consistent with the second verification information, Then it is judged whether the verification of the target crash log by the system file is passed. If the first verification information is consistent with the second verification information, it means that the verification of the target crash log by the system file is passed; if the first verification information is inconsistent with the second verification information, then Indicates that system file validation of the target crash log failed.
步骤204,若验证通过,则对目标崩溃日志进行解析,得到目标日志文件,目标日子文件包括APP的事故信息。
其中,APP的事故信息可以包括但不限于:APP中发生事故的位置坐标,APP发生事故的原因,APP发生事故的时间等。The accident information of the APP may include, but is not limited to: the location coordinates of the accident in the APP, the cause of the accident in the APP, the time when the accident occurred in the APP, and the like.
在本申请的一种实施例中,通过对目标崩溃日志进行解析处理,从而实现对于目标崩溃日志的符号化处理,使得目标崩溃日志中的数据从而十六进制数据解析为APP中发生事故的位置坐标。可选地,APP中发生事故的位置坐标可以包括但不限于:事故的类名与方法名。In an embodiment of the present application, by performing parsing processing on the target crash log, the symbolic processing of the target crash log is realized, so that the data in the target crash log, and thus the hexadecimal data, is parsed into the accident occurred in the APP. Position coordinates. Optionally, the location coordinates of the accident in the APP may include, but are not limited to, the class name and method name of the accident.
根据本申请的崩溃日志的解析方法,通过获取初始崩溃日志和系统文件,为后续得到目标日志文件提供基础数据,通过目标崩溃文件实现对于系统文件的验证处理,保证了解析过程的顺利进行,为后续能够顺利得到目标日志文件提供保障;通过对系统文件进行解析,实现获取目标日志文件,降低了崩溃日志解析的操作难度,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。According to the analysis method of the crash log of the present application, by obtaining the initial crash log and the system file, basic data is provided for the subsequent acquisition of the target log file, and the verification processing of the system file is realized through the target crash file, so as to ensure the smooth progress of the analysis process. The target log file can be successfully obtained in the follow-up to provide guarantee; by parsing the system file, the target log file can be obtained, which reduces the operational difficulty of crash log parsing, reduces the labor cost required for parsing crash logs, and increases the work of parsing crash logs. efficiency.
需要说明的是,可通过对系统文件进行符号化解析处理,从而得到目标日志文件,可选地,如图3所示,图3为本申请实施例提供的另一种崩溃日志的解析方法的流程图,该方法包括以下步骤:It should be noted that the target log file can be obtained by performing symbolic parsing processing on the system file. Optionally, as shown in FIG. 3 , FIG. Flow chart, the method includes the following steps:
步骤301,基于目标崩溃日志进行符号化解析,得到APP发生事故的类名与方法名。
需要说明的是,通过对目标崩溃日志进行符号化解析,实现了将目标崩溃日志中的十六进制数据进行符号化解析处理,从而得到APP发生事故的类名与方法名。It should be noted that by performing symbolic analysis on the target crash log, symbolic analysis of the hexadecimal data in the target crash log is realized, so as to obtain the class name and method name of the APP accident.
需要说明的是,为保证能够顺利完成对目标崩溃日志的解析操作,需要基于目标崩溃日志读取解析工具,通过解析工具实现对于目标崩溃日志的解析操作,其中,解析工具包括:symbolicatecrash工具。It should be noted that, in order to ensure that the parsing operation of the target crash log can be successfully completed, it is necessary to read the parsing tool based on the target crash log, and realize the parsing operation of the target crash log through the parsing tool, wherein the parsing tool includes the symbolicatecrash tool.
步骤302,根据类名与方法名,生成初始日志文件,对初始日志文件进行命名处理,得到目标日志文件。Step 302: Generate an initial log file according to the class name and method name, and perform naming processing on the initial log file to obtain a target log file.
需要说明的是,通过对类名与方法名进行汇总处理,实现将类名与方法名存入同一文件中,则该文件即为初始日志文件,可理解为,初始日志文件中包括类名和方法名。It should be noted that by summarizing the class name and method name, the class name and method name are stored in the same file, and the file is the initial log file. It can be understood that the initial log file includes the class name and method. name.
在本申请的一种实施例中,本申请可以通过在解析应用程序界面中设置名称修改控件,当需要修改初始日志文件的名称时,可触发解析应用程序界面的名称修改控件,开启初始日志文件的名称修改功能,当完成修改后,再次触发解析应用程序界面的名称修改控件,将已修改的初始日志文件的名称进行保存处理,并且,关闭初始日志文件的名称修改功能。In an embodiment of the present application, the present application can set a name modification control in the parsing application program interface. When the name of the initial log file needs to be modified, the name modification control of the parsing application program interface can be triggered to open the initial log file. When the modification is completed, the name modification control of the parsing application interface is triggered again, the name of the modified initial log file is saved, and the name modification function of the initial log file is turned off.
举例说明,假设初始日志文件的初始名称为‘文件1’,当需要修改初始日志文件的名称时,触发解析应用程序界面的名称修改控件,开启初始日志文件的名称修改功能,输入修改后的名称‘文件2’后,再次触发解析应用程序界面的名称修改控件,将已修改的初始日志文件的名称进行保存处理。For example, assuming that the initial name of the initial log file is 'file 1', when the name of the initial log file needs to be modified, trigger the name modification control of the parsing application interface, enable the name modification function of the initial log file, and enter the modified name After 'file 2', trigger the name modification control of the parsing application interface again to save the name of the modified initial log file.
根据本申请的崩溃日志的解析方法,通过对目标崩溃日志进行符号化解析,完成对于类名与方法名的获取,从而实现对于APP发生事故位置的确定,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。并且,通过对初始日志文件进行命名处理,增加了操作的便捷性,使得用户能够根据实际需求对初始日志文件进行更名处理。According to the crash log parsing method of the present application, by performing symbolic parsing of the target crash log, the acquisition of the class name and the method name is completed, thereby realizing the determination of the accident location of the APP, and reducing the labor cost required for parsing the crash log. , which increases the efficiency of parsing crash logs. In addition, by performing naming processing on the initial log file, the convenience of operation is increased, so that the user can rename the initial log file according to actual needs.
需要说明的是,可通过对比验证系统文件的身份验证信息与目标崩溃日志的身份验证信息,实现系统文件于目标崩溃日志的验证,可选地,如图3所示,图4为本申请实施例提供的另一种崩溃日志的解析方法的流程图,该方法包括以下步骤:It should be noted that the verification of the system file in the target crash log can be realized by comparing the authentication information of the system file and the authentication information of the target crash log. Optionally, as shown in FIG. 3 , FIG. 4 is implemented for this application. The flow chart of another crash log parsing method provided by the example includes the following steps:
步骤401,判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致。Step 401: Determine whether the authentication information in the system file is consistent with the authentication information in the target crash file.
需要说明的是,系统文件的身份验证信息用于确定系统文件所属的设备以及系统文件所属的应用程序APP,并且,系统文件的身份验证信息中可包含:系统文件对应设备的身份信息和系统文件对应应用程序APP的身份信息。It should be noted that the authentication information of the system file is used to determine the device to which the system file belongs and the application APP to which the system file belongs, and the authentication information of the system file may include: the identity information of the device corresponding to the system file and the system file The identity information of the corresponding application APP.
需要说明的是,目标崩溃文件的身份验证信息用于确定目标崩溃文件所属的设备以及目标崩溃文件所属的应用程序APP,并且,目标崩溃文件的身份验证信息中可包含:目标崩溃文件对应设备的身份信息和目标崩溃文件对应应用程序APP的身份信息。It should be noted that the authentication information of the target crash file is used to determine the device to which the target crash file belongs and the application APP to which the target crash file belongs, and the authentication information of the target crash file may include: The identity information and the target crash file correspond to the identity information of the application APP.
在本申请的一种实施例中,获取系统文件的身份验证信息和目标崩溃文件的身份验证信息,并基于系统文件的身份验证信息和目标崩溃文件的身份验证信息,确定系统文件所属的设备和所属的应用程序APP,以及,目标崩溃文件所属的设备和所属的应用程序APP,通过对比系统文件所属的设备与目标崩溃文件所属的设备是否相同,以及,对比系统文件所属的应用程序APP和目标崩溃文件所属的应用程序APP是否一致,判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致。In an embodiment of the present application, the authentication information of the system file and the authentication information of the target crash file are obtained, and based on the authentication information of the system file and the authentication information of the target crash file, the device and device to which the system file belongs are determined. The application APP to which the target crash file belongs, and the device to which the target crash file belongs and the application APP to which it belongs, by comparing whether the device to which the system file belongs is the same as the device to which the target crash file belongs, and comparing the application APP to which the system file belongs and the target Check whether the APP to which the crash file belongs is consistent, and judge whether the authentication information in the system file is consistent with the authentication information in the target crash file.
需要说明的是,若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致,则验证通过;若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则验证未通过。It should be noted that if the authentication information in the system file is consistent with the authentication information in the target crash file, the verification is passed; if the authentication information in the system file is inconsistent with the authentication information in the target crash file, the verification fails. pass.
其中,系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致指的是:系统文件所属的应用程序APP和目标崩溃文件所属的应用程序APP一致,并且,系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致;系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致指的是:系统文件所属的应用程序APP和目标崩溃文件所属的应用程序APP不一致,和/或,系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致。The fact that the authentication information in the system file is consistent with the authentication information in the target crash file means that the application APP to which the system file belongs is consistent with the application APP to which the target crash file belongs, and the authentication information in the system file is consistent Consistent with the authentication information in the target crash file; inconsistency between the authentication information in the system file and the authentication information in the target crash file means that the application APP to which the system file belongs is inconsistent with the application APP to which the target crash file belongs. And/or, the authentication information in the system file does not match the authentication information in the target crash file.
举例说明,当需要判断基于目标崩溃日志对系统文件进行验证时,获取系统文件中的身份验证信息与目标崩溃文件中的身份验证信息,基于系统文件中的身份验证信息确定系统文件属于A设备和B应用程序APP,基于目标崩溃文件中的身份验证信息确定目标崩溃文件属于A设备和C应用程序APP,因此可以确定目标崩溃文件与系统文件不属于相同的应用程序APP,即系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则验证未通过。For example, when it is necessary to judge that the system file is verified based on the target crash log, the authentication information in the system file and the authentication information in the target crash file are obtained, and based on the authentication information in the system file, it is determined that the system file belongs to A device and The B application APP determines that the target crash file belongs to the A device and the C application APP based on the authentication information in the target crash file. Therefore, it can be determined that the target crash file and the system file do not belong to the same application APP, that is, the identity in the system file. If the authentication information is inconsistent with the authentication information in the target crash file, the authentication fails.
在本申请的一种实施例中,基于目标崩溃日志对系统文件进行验证,通过获取系统文件中的身份验证信息,并基于系统文件中的身份验证信息,即为获取系统文件所属设备的身份信息和系统文件所属应用程序APP的身份信息;根据系统文件所属设备的身份信息和系统文件所属应用程序APP的身份信息,于目标崩溃文件中寻找是否存在相同的设备的身份信息和应用程序APP的身份信息,若目标崩溃文件中存在相同的设备的身份信息和应用程序APP的身份信息,则确定验证通过;若目标崩溃文件中不存在相同的设备的身份信息,和/或,不存在相同的应用程序APP的身份信息,则确定验证未通过。In an embodiment of the present application, the system file is verified based on the target crash log, and the identity information of the device to which the system file belongs is obtained by acquiring the identity verification information in the system file and based on the identity verification information in the system file. and the identity information of the application APP to which the system file belongs; according to the identity information of the device to which the system file belongs and the identity information of the application APP to which the system file belongs, look for the identity information of the same device and the identity of the application APP in the target crash file. information, if the identity information of the same device and the identity information of the application APP exist in the target crash file, the verification is determined to be passed; if the identity information of the same device does not exist in the target crash file, and/or, the same application does not exist If the identity information of the program APP is used, it is determined that the verification has not passed.
需要说明的是,系统文件包括程序文件和符号表文件。在判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致时,可理解为:判断程序文件和符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;若程序文件和符号表文件中的身份验证信息均与目标崩溃文件中的身份验证信息一致,则表示系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致。It should be noted that system files include program files and symbol table files. When judging whether the authentication information in the system file is consistent with the authentication information in the target crash file, it can be understood as: judging whether the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file; If the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file, it means that the authentication information in the system file is consistent with the authentication information in the target crash file.
举例说明,响应于判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致时,分别判断程序文件的身份验证信息与目标崩溃文件中的身份验证信息是否一致,以及,符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致,此时仅有程序文件的身份验证信息与目标崩溃文件中的身份验证信息一致,而符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则可证明系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致。For example, in response to judging whether the authentication information in the system file is consistent with the authentication information in the target crash file, it is respectively determined whether the authentication information in the program file is consistent with the authentication information in the target crash file, and the symbol table Whether the authentication information in the file is consistent with the authentication information in the target crash file, only the authentication information in the program file is consistent with the authentication information in the target crash file, and the authentication information in the symbol table file is the same as that in the target crash file. If the authentication information in the crash file is inconsistent, it proves that the authentication information in the system file is inconsistent with the authentication information in the target crash file.
需要说明的是,若验证未通过,则重新获取APP的新的目标崩溃文件,并基于系统文件重新对新的目标崩溃文件进行验证。It should be noted that if the verification fails, the new target crash file of the APP is re-acquired, and the new target crash file is re-verified based on the system file.
其中,新的目标崩溃文件为不同于验证未通过的目标崩溃文件的文件,即新的目标崩溃文件与验证未通过的目标崩溃文件为不相同的文件。The new target crash file is a file different from the target crash file that fails the verification, that is, the new target crash file and the target crash file that fails the verification are different files.
需要说明的是,响应于身份验证未通过,确认身份验证未通过的原因;基于身份验证未通过的原因,输出报错提醒信息。It should be noted that, in response to the failure of the authentication, the reason for the failure of the authentication is confirmed; based on the reason for the failure of the authentication, an error message is output.
在本申请的一些实施例中,本申请可以通过在解析应用程序界面设置报错提示区,该报错提示区可显示提醒信息,并且将身份验证未通过的原因进行显示。In some embodiments of the present application, the present application can set an error reporting prompt area in the parsing application program interface, and the error reporting prompt area can display prompt information and display the reason why the identity verification failed.
在本申请的一些实施例中,输出报错提醒信息的形式有很多,其中,输出报错提醒信息的形式可以包括但不限于:LED(light-emitting diode发光二极管)提示、邮件提示和电话提示;其中,LED提示具体用于:当身份验证未通过,确认身份验证未通过的原因,根据不同的身份验证未通过的原因LED可显示不同的发光颜色,例如:绿色代表程序文件身份验证信息与目标崩溃文件中的身份验证信息不一致,红色代表符号表文件的身份验证信息与目标崩溃文件中的身份验证信息不一致。进而实现通过不同颜色的光亮给现场人员输出报错提醒信息。邮件提示具体用于:当身份验证未通过,确认身份验证未通过的原因,通过网络将身份验证未通过的原因以电子邮件的形式发送至预设的邮箱地址上,从而实现输出报错提醒信息。电话提示具体用于:当身份验证未通过,确认身份验证未通过的原因,并且第一时间拨通预设接收告警的手机号码,对方接听后,自动播报身份验证未通过的原因,实现输出报错提醒信息。In some embodiments of the present application, there are many forms of outputting error reporting reminder information, wherein, the forms of outputting error reporting reminder information may include but are not limited to: LED (light-emitting diode) prompts, email prompts, and telephone prompts; wherein , LED prompt is specifically used: when the authentication fails, confirm the reason for the failure of the authentication, and the LED can display different luminous colors according to different reasons for the failure of the authentication, for example: green represents the program file authentication information and the target crash The authentication information in the file is inconsistent, and red indicates that the authentication information in the symbol table file is inconsistent with the authentication information in the target crash file. And then realize the output of error reminder information to the on-site personnel through the light of different colors. The email prompt is specifically used to: when the identity verification fails, confirm the reason for the failure of the identity verification, and send the reason for the failure of the identity verification to the preset email address in the form of email through the network, so as to realize the output of the error message. The phone prompt is specifically used to: when the identity verification fails, confirm the reason for the failure of the identity verification, and dial the preset mobile phone number to receive the alarm as soon as possible. Reminder information.
根据本申请的崩溃日志的解析方法,通过对基于系统文件对目标崩溃日志进行验证,保证了后续能够顺利得到目标日志文件,保证了解析过程的顺利进行,增加了解析成功的可能性,实现了对于目标崩溃日志的自动验证,降低了崩溃日志解析的操作难度,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。According to the analysis method of the crash log of the present application, by verifying the target crash log based on the system file, it is ensured that the target log file can be obtained smoothly in the follow-up, the smooth progress of the analysis process is ensured, the possibility of successful analysis is increased, and the realization of The automatic verification of the target crash log reduces the operational difficulty of crash log parsing, reduces the labor cost required for parsing the crash log, and increases the work efficiency of parsing the crash log.
需要说明的是,可通过文件预览区域,实现初始崩溃日志和系统文件的获取,可选地,如图5所示,图5为本申请实施例提供的另一种崩溃日志的解析方法的流程图,该方法包括以下步骤:It should be noted that the initial crash log and the system file can be obtained through the file preview area. Optionally, as shown in FIG. 5 , FIG. 5 is a flow of another crash log parsing method provided by this embodiment of the present application. Figure, the method includes the following steps:
步骤501,获取设备中所包含的多个基础文件。Step 501: Acquire multiple basic files included in the device.
其中,多个基础文件指的是未被用户选定的多个初始崩溃日志和多个系统文件。The multiple basic files refer to multiple initial crash logs and multiple system files that are not selected by the user.
需要说明的是,多个基础文件可储存于设备的本地硬件中,和/或,线上数据库中,可根据实际情况对基础文件的储存位置进行自主选择。It should be noted that a plurality of basic files can be stored in the local hardware of the device, and/or in an online database, and the storage location of the basic files can be independently selected according to the actual situation.
步骤502,将多个基础文件显示在解析应用程序界面的导入文件预览区域,其中,解析应用程序可安装于设备上。
需要说明的是,文件预览区域中的多个基础文件按照预先设定的排序规则进行依次排列,并且,文件预览区域可显示基础文件的文件扩展名以及文件名称。其中,排序规则可以包括但不限于:依照基础文件的存入时间先后顺序,依照基础文件的文件名称首字母的先后顺序排序等。It should be noted that the multiple basic files in the file preview area are arranged in sequence according to a preset sorting rule, and the file preview area can display the file extension and file name of the basic files. Wherein, the sorting rules may include but are not limited to: sorting according to the storage time sequence of the basic files, sorting according to the first letters of the file names of the basic files, and the like.
在本申请的一种实施例中,如图5所示,本申请可以通过在解析应用程序中设置编辑控件2和删除控件3实现对于文件预览区域内多个基础文件的编辑操作,当需要对基础文件进行编辑时,触发编辑控件2,实现开启文件预览区域的编辑功能,此时选定需要删除的基础文件,并触发删除控件3,从而实现对该基础文件的删除操作,当完成删除后,再次触发编辑控件2关闭文件预览区域的编辑功能。In an embodiment of the present application, as shown in FIG. 5 , the present application can implement editing operations on multiple basic files in the file preview area by setting the editing control 2 and the deletion control 3 in the parsing application program. When editing the basic file, trigger the editing control 2 to realize the editing function of opening the file preview area. At this time, select the basic file to be deleted, and trigger the deletion control 3, so as to realize the deletion operation of the basic file. After the deletion is completed , trigger the editing control 2 again to close the editing function of the file preview area.
步骤503,响应于基于导入文件预览区域对多个基础文件的选定操作,获取设备中的崩溃日志和系统文件。
在本申请的一种实施例中,如图7所示,本申请可以通过在解析应用程序中设置编辑控件2和导入控件4,实现对于崩溃日志和系统文件的获取。当需要获取崩溃日志和系统文件的时候,触发编辑控件2,实现开启文件预览区域的编辑功能,此时选定需要导入的崩溃日志和系统文件,并触发导入控件4,从而实现将选定的崩溃日志和系统文件进行导入操作,当完成导入后,再次触发编辑控件2关闭文件预览区域的编辑功能。In an embodiment of the present application, as shown in FIG. 7 , the present application can obtain crash logs and system files by setting an editing control 2 and an importing control 4 in the parsing application. When it is necessary to obtain the crash log and system file, trigger the editing control 2 to realize the editing function of opening the file preview area. At this time, select the crash log and system file to be imported, and trigger the import control 4, so as to realize the selection of the selected crash log and system file. The crash log and system files are imported. When the import is completed, the editing control 2 is triggered again to close the editing function of the file preview area.
在本申请的一种实施例中,如图7所示,本申请可以通过在解析应用程序中设置编辑控件2和备选区5,实现对于崩溃日志和系统文件的获取。当需要获取崩溃日志和系统文件的时候,触发编辑控件2,实现开启文件预览区域的编辑功能,此时双击触发需要导入的崩溃日志和系统文件,将选定的崩溃日志和系统文件存入备选区5,完成选定后,再次触发编辑控件2,关闭文件预览区域的编辑功能并且将备选区5内的文件进行导入。In an embodiment of the present application, as shown in FIG. 7 , the present application can obtain crash logs and system files by setting an editing control 2 and an
根据本申请的崩溃日志的解析方法,通过设置导入文件预览区域方便用户在崩溃日志的解析过程中进行操作,降低了解析崩溃日志的操作难度,增加工作效率。According to the crash log parsing method of the present application, by setting the import file preview area, it is convenient for users to perform operations in the crash log parsing process, which reduces the operational difficulty of parsing crash logs and increases work efficiency.
需要说明的是,可通过生成文件预览区域,实现目标日志文件的储存,可选地,如图6所示,图6为本申请实施例提供的另一种崩溃日志的解析方法的流程图,该方法包括以下步骤:It should be noted that the storage of the target log file can be realized by generating a file preview area. Optionally, as shown in FIG. 6 , FIG. 6 is a flowchart of another crash log parsing method provided by the embodiment of the present application, The method includes the following steps:
步骤601,在解析应用程序界面的生成文件预览区域展示目标日志文件。
需要说明的是,用户可通过生成文件预览区域对目标日志文件进行检查,若目标日志文件检查无误则可进行后续的步骤,若目标日志文件检查有误,则可触发删除控件,对有误的目标日志文件进行删除,并重新获取目标日志文件。It should be noted that the user can check the target log file through the generated file preview area. If the target log file is checked correctly, the next steps can be performed. If the target log file is checked incorrectly, the delete control can be triggered. The target log file is deleted, and the target log file is retrieved.
在本申请的一种实施例中,如图7所示,本申请可以通过在解析应用程序中设置删除控件3,实现对于目标日志文件的删除操作。当完成目标日志文件的获取后,生成文件预览区域6展示目标日志文件,用户基于生成文件预览区域6对目标日志文件进行检查,若目标日志文件存在错误,触发删除控件3实现对于目标日志文件的删除操作。In an embodiment of the present application, as shown in FIG. 7 , the present application can implement the delete operation on the target log file by setting the delete control 3 in the parsing application program. After the acquisition of the target log file is completed, the generated file preview area 6 displays the target log file, and the user checks the target log file based on the generated file preview area 6. If there is an error in the target log file, the delete control 3 is triggered to realize the deletion of the target log file. delete operation.
步骤602,基于解析应用程序界面获取导出指令,响应于导出指令将目标日志文件按照目标路径进行存储。Step 602: Obtain an export instruction based on the parsing application program interface, and store the target log file according to the target path in response to the export instruction.
其中,在本申请的一种实施例中,如图7所示,可以通过在解析应用程序中设置导出控件7,实现将目标日志文件按照目标路径进行存储,当完成目标日志文件的获取,目标日志文件显示于生成文件预览区域6,当目标日志文件检查无误后,触发导出控件7,随后生成文件预览区域6弹出存储路径预览框,用户可在存储路径预览框中对储存目标日志文件的目标路径进行修改,当再次触发导出控件7时,将目标日志文件按照目标路径进行存储。Among them, in an embodiment of the present application, as shown in FIG. 7 , by setting an export control 7 in the parsing application program, the target log file can be stored according to the target path. When the acquisition of the target log file is completed, the target log file can be stored. The log file is displayed in the generated file preview area 6. When the target log file is checked and found to be correct, the export control 7 is triggered, and then the generated file preview area 6 pops up a storage path preview box. The user can store the target log file in the storage path preview box. The path is modified, and when the export control 7 is triggered again, the target log file is stored according to the target path.
根据本申请的崩溃日志的解析方法,通过设置导入文件预览区域和生成文件预览区域,方便用户在崩溃日志的解析过程中进行操作,降低了解析崩溃日志的操作难度,增加工作效率。According to the crash log parsing method of the present application, by setting the import file preview area and the generated file preview area, it is convenient for users to perform operations in the crash log parsing process, which reduces the operational difficulty of parsing crash logs and increases work efficiency.
在本申请的一种实施例中,如图8所示,当用户的设备在日常使用过程中,安装于用户设备中的应用程序APP发生了事故:In an embodiment of the present application, as shown in FIG. 8 , when the user's device is in daily use, an accident occurs in the application program APP installed in the user's device:
步骤1:将事故应用程序APP的初始崩溃日志和系统文件通过解析应用程序的导入文件预览区域,完成初始崩溃日志和系统文件的导入操作;其中,系统文件包括:程序文件和符号表文件。Step 1: The initial crash log and system file of the accident application APP are analyzed through the import file preview area of the application to complete the import operation of the initial crash log and system file; wherein, the system file includes: program file and symbol table file.
步骤2:对初始崩溃文件的拓展名进行修改,得到目标崩溃文件,并且,基于目标崩溃文件获取解析工具,其中,解析工具包括:symbolicatecrash工具。Step 2: Modify the extension of the initial crash file to obtain a target crash file, and obtain a parsing tool based on the target crash file, wherein the parsing tool includes a symbolicatecrash tool.
步骤3:基于系统文件对目标崩溃文件进行验证,若验证未通过,则提示用户重新导入系统文件,或者,在解析应用程序的导入文件预览区域中对系统该文件进行修改。Step 3: Verify the target crash file based on the system file. If the verification fails, the user is prompted to re-import the system file, or the system file is modified in the import file preview area of the parsing application.
步骤4:若验证通过,则对目标崩溃日志进行符号化处理,得到事故的事故的目标日志文件,并且,可对目标日志文件进行名称修改,其中,目标日志文件包括:类名与方法名。Step 4: If the verification is passed, the target crash log is symbolized to obtain the target log file of the accident, and the name of the target log file can be modified, wherein the target log file includes: class name and method name.
步骤5:生成文件预览区域展示已经生成的目标日志文件。Step 5: The generated file preview area displays the generated target log file.
步骤6:生成文件预览区域导出至指定目录或者通过生成文件预览区域自定义导出路径。Step 6: Export the generated file preview area to the specified directory or customize the export path through the generated file preview area.
应该理解的是,虽然如上的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution of these steps or stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in the other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的崩溃日志的解析方法的崩溃日志的解析装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个崩溃日志的解析装置实施例中的具体限定可以参见上文中对于崩溃日志的解析方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a crash log parsing apparatus for implementing the above-mentioned crash log parsing method. The implementation solution for solving the problem provided by the device is similar to the implementation solution described in the above method, so the specific limitations in the embodiment of the device for parsing one or more crash logs provided below can refer to the analysis of the crash log above. The limitation of the method is not repeated here.
在一个实施例中,如图9所示,图9为本申请实施例提供的一种崩溃日志的解析装置的结构框图,提供了一种崩溃日志的解析装置,包括:获取模块910、修改模块920、验证模块930和解析模块940,其中:In one embodiment, as shown in FIG. 9, FIG. 9 is a structural block diagram of a crash log parsing apparatus provided by an embodiment of the present application, which provides a crash log parsing apparatus, including: an
获取模块910,用于获取设备中应用程序APP的初始崩溃日志和系统文件。The obtaining
修改模块920,用于对初始崩溃文件的拓展名进行修改,得到目标崩溃文件。The
验证模块930,用于基于目标崩溃日志对系统文件进行验证。The
解析模块940,用于若验证通过,则对系统文件进行解析,得到目标日志文件,目标日子文件包括APP的事故信息。The
需要说明的是,在解析应用程序界面的生成文件预览区域展示目标日志文件;基于解析应用程序界面获取导出指令,响应于导出指令将目标日志文件按照目标路径进行存储。It should be noted that the target log file is displayed in the generated file preview area of the parsing application program interface; the export instruction is obtained based on the parsing application program interface, and the target log file is stored according to the target path in response to the export instruction.
根据本申请的崩溃日志的解析装置,通过获取初始崩溃日志和系统文件,为后续得到目标日志文件提供基础数据,通过目标崩溃文件实现对于系统文件的验证处理,保证了解析过程的顺利进行,为后续能够顺利得到目标日志文件提供保障;通过对系统文件进行解析,实现获取目标日志文件,降低了崩溃日志解析的操作难度,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。According to the crash log parsing device of the present application, by acquiring the initial crash log and the system file, basic data is provided for the subsequent acquisition of the target log file, and the verification processing of the system file is realized through the target crash file, which ensures the smooth progress of the parsing process, and The target log file can be successfully obtained in the follow-up to provide guarantee; by parsing the system file, the target log file can be obtained, which reduces the operational difficulty of crash log parsing, reduces the labor cost required for parsing crash logs, and increases the work of parsing crash logs. efficiency.
在本申请的一些实施例中,如图10所示,图10为本申请实施例提供的另一种崩溃日志的解析装置的结构框图,该崩溃日志的解析装置中解析模块1040包括:解析单元1041和生成单元1042。In some embodiments of the present application, as shown in FIG. 10 , FIG. 10 is a structural block diagram of another crash log parsing apparatus provided by an embodiment of the present application. The
解析单元1041,用于对目标崩溃日志进行符号化解析,得到APP发生事故的类名与方法名。The
生成单元1042,用于根据类名与方法名,生成初始日志文件,对初始日志文件进行命名处理,得到目标日志文件。The
其中,图10中1010-1030和图9中910-930具有相同功能和结构。Among them, 1010-1030 in FIG. 10 and 910-930 in FIG. 9 have the same function and structure.
根据本申请的崩溃日志的解析装置,通过对目标崩溃日志进行符号化解析,完成对于类名与方法名的获取,从而实现对于APP发生事故位置的确定,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。并且,通过对初始日志文件进行命名处理,增加了操作的便捷性,使得用户能够根据实际需求对初始日志文件进行更名处理。According to the crash log parsing device of the present application, by performing symbolic parsing of the target crash log, the acquisition of the class name and the method name is completed, thereby realizing the determination of the accident location of the APP, and reducing the labor cost required for parsing the crash log. , which increases the efficiency of parsing crash logs. In addition, by performing naming processing on the initial log file, the convenience of operation is increased, so that the user can rename the initial log file according to actual needs.
在本申请的一些实施例中,如图11所示,图11为本申请实施例提供的另一种崩溃日志的解析装置的结构框图,该崩溃日志的解析装置中验证模块1130包括:判断单元1131。In some embodiments of the present application, as shown in FIG. 11 , FIG. 11 is a structural block diagram of another crash log parsing apparatus provided by an embodiment of the present application. The
判断单元1131,用于判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致。The determining
需要说明的是,若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致,则确定验证通过;若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则确定验证未通过。It should be noted that if the authentication information in the system file is consistent with the authentication information in the target crash file, it is determined that the verification is passed; if the authentication information in the system file is inconsistent with the authentication information in the target crash file, it is determined that Verification failed.
需要说明的是,系统文件包括程序文件和符号表文件;判断程序文件和符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;若程序文件和符号表文件中的身份验证信息均与目标崩溃文件中的身份验证信息一致,则表示系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致。It should be noted that the system files include program files and symbol table files; determine whether the authentication information in the program files and symbol table files is consistent with the authentication information in the target crash file; if the authentication information in the program files and symbol table files is consistent If the information is consistent with the authentication information in the target crash file, it means that the authentication information in the system file is consistent with the authentication information in the target crash file.
在本申请的一种实施例中,若验证未通过,则重新获取APP的新的目标崩溃文件,并基于系统文件重新对新的目标崩溃文件进行验证。In an embodiment of the present application, if the verification fails, a new target crash file of the APP is re-acquired, and the new target crash file is re-verified based on the system file.
在本申请的一种实施例中,响应于身份验证未通过,确认身份验证未通过的原因;基于身份验证未通过的原因,输出报错提醒信息。In an embodiment of the present application, in response to the failure of the identity verification, the reason for the failure of the identity verification is confirmed; based on the reason for the failure of the identity verification, an error notification message is output.
其中,图11中1110、1120和1140和图10中1010、1020和1040具有相同功能和结构。Among them, 1110, 1120 and 1140 in FIG. 11 and 1010, 1020 and 1040 in FIG. 10 have the same function and structure.
根据本申请的崩溃日志的解析装置,通过对基于系统文件对目标崩溃日志进行验证,保证了后续能够顺利得到目标日志文件,保证了解析过程的顺利进行,增加了解析成功的可能性,实现了对于目标崩溃日志的自动验证,降低了崩溃日志解析的操作难度,降低了解析崩溃日志所需要的人工成本,增加了解析崩溃日志的工作效率。According to the crash log parsing device of the present application, by verifying the target crash log based on the system file, it is ensured that the target log file can be obtained smoothly in the follow-up, the parsing process is ensured smoothly, the possibility of successful parsing is increased, and the The automatic verification of the target crash log reduces the operational difficulty of crash log parsing, reduces the labor cost required for parsing the crash log, and increases the work efficiency of parsing the crash log.
在本申请的一些实施例中,如图12所示,图12为本申请实施例提供的另一种崩溃日志的解析装置的结构框图,该崩溃日志的解析装置中获取模块1212包括:获取单元1211、显示单元1212和获取单元1213。In some embodiments of the present application, as shown in FIG. 12 , FIG. 12 is a structural block diagram of another crash log parsing apparatus provided by an embodiment of the present application. The obtaining
其中,获取单元1211,用于获取设备中所包含的多个基础文件。Wherein, the obtaining
显示单元1212,用于将多个基础文件显示在解析应用程序界面的导入文件预览区域,其中,解析应用程序可安装于设备上。The
获取单元1213,用于响应于基于导入文件预览区域对多个基础文件的选定操作,获取设备中的崩溃日志和系统文件。The obtaining
其中,图12中1220-1240和图11中1120-1140具有相同功能和结构。Among them, 1220-1240 in FIG. 12 and 1120-1140 in FIG. 11 have the same function and structure.
根据本申请的崩溃日志的解析装置,通过设置导入文件预览区域和生成文件预览区域,方便用户在崩溃日志的解析过程中进行操作,降低了解析崩溃日志的操作难度,增加工作效率。According to the crash log parsing device of the present application, by setting the import file preview area and the generated file preview area, it is convenient for users to perform operations in the crash log parsing process, which reduces the operational difficulty of parsing crash logs and increases work efficiency.
上述崩溃日志的解析装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above crash log parsing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图13所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储崩溃日志的解析数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种崩溃日志的解析方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 13 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The computer device's database is used to store crash log parsing data. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a crash log analysis method.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图13所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种崩溃日志的解析方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 13 . The computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer equipment is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program is executed by the processor to implement a crash log analysis method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
本领域技术人员可以理解,图13中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 13 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to get the target crash file;
基于系统文件对目标崩溃日志进行验证;Validate target crash logs based on system files;
若验证通过,则对目标崩溃日志进行解析,得到目标日志文件,目标日子文件包括APP的事故信息。If the verification is passed, the target crash log is parsed to obtain the target log file, and the target date file includes the accident information of the APP.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
对目标崩溃日志进行符号化解析,得到APP发生事故的类名与方法名;Symbolically parse the target crash log to get the class name and method name of the APP accident;
根据类名与方法名,生成初始日志文件,对初始日志文件进行命名处理,得到目标日志文件。According to the class name and method name, the initial log file is generated, and the initial log file is named to obtain the target log file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the system file is consistent with the authentication information in the target crash file;
若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致,则确定验证通过;If the authentication information in the system file is consistent with the authentication information in the target crash file, it is determined that the authentication is passed;
若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则确定验证未通过。If the authentication information in the system file is inconsistent with the authentication information in the target crash file, it is determined that the authentication fails.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:其中,系统文件包括程序文件和符号表文件;In one embodiment, the processor further implements the following steps when executing the computer program: wherein the system file includes a program file and a symbol table file;
判断程序文件和符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file;
若程序文件和符号表文件中的身份验证信息均与目标崩溃文件中的身份验证信息一致,则表示系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致。If the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file, it means that the authentication information in the system file is consistent with the authentication information in the target crash file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
若验证未通过,则重新获取APP的新的目标崩溃文件,并基于系统文件重新对新的目标崩溃文件进行验证。If the verification fails, the new target crash file of the APP is re-acquired, and the new target crash file is re-verified based on the system file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
响应于身份验证未通过,确认身份验证未通过的原因;In response to the authentication failure, confirm the reason why the authentication failed;
基于身份验证未通过的原因,输出报错提醒信息。An error message is output based on the reason why the authentication failed.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取设备中所包含的多个基础文件;Get multiple base files contained in the device;
将多个基础文件显示在解析应用程序界面的导入文件预览区域,其中,解析应用程序可安装于设备上;Display multiple base files in the import file preview area of the parsing application interface, where the parsing application can be installed on the device;
响应于基于导入文件预览区域对多个基础文件的选定操作,获取设备中的崩溃日志和系统文件。Crash logs and system files in the device are obtained in response to selected operations on the plurality of underlying files based on the import file preview area.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
在解析应用程序界面的生成文件预览区域展示目标日志文件;Display the target log file in the generated file preview area of the parsing application interface;
基于解析应用程序界面获取导出指令,响应于导出指令将目标日志文件按照目标路径进行存储。Obtain the export instruction based on the parsing application program interface, and store the target log file according to the target path in response to the export instruction.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to get the target crash file;
基于系统文件对目标崩溃日志进行验证;Validate target crash logs based on system files;
若验证通过,则对目标崩溃日志进行解析,得到目标日志文件,目标日子文件包括APP的事故信息。If the verification is passed, the target crash log is parsed to obtain the target log file, and the target date file includes the accident information of the APP.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
对目标崩溃日志进行符号化解析,得到APP发生事故的类名与方法名;Symbolically parse the target crash log to get the class name and method name of the APP accident;
根据类名与方法名,生成初始日志文件,对初始日志文件进行命名处理,得到目标日志文件。According to the class name and method name, the initial log file is generated, and the initial log file is named to obtain the target log file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the system file is consistent with the authentication information in the target crash file;
若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致,则确定验证通过;If the authentication information in the system file is consistent with the authentication information in the target crash file, it is determined that the authentication is passed;
若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则确定验证未通过。If the authentication information in the system file is inconsistent with the authentication information in the target crash file, it is determined that the authentication fails.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:其中,系统文件包括程序文件和符号表文件;In one embodiment, the processor further implements the following steps when executing the computer program: wherein the system file includes a program file and a symbol table file;
判断程序文件和符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file;
若程序文件和符号表文件中的身份验证信息均与目标崩溃文件中的身份验证信息一致,则表示系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致。If the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file, it means that the authentication information in the system file is consistent with the authentication information in the target crash file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
若验证未通过,则重新获取APP的新的目标崩溃文件,并基于系统文件重新对新的目标崩溃文件进行验证。If the verification fails, the new target crash file of the APP is re-acquired, and the new target crash file is re-verified based on the system file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
响应于身份验证未通过,确认身份验证未通过的原因;In response to the authentication failure, confirm the reason why the authentication failed;
基于身份验证未通过的原因,输出报错提醒信息。An error message is output based on the reason why the authentication failed.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取设备中所包含的多个基础文件;Get multiple base files contained in the device;
将多个基础文件显示在解析应用程序界面的导入文件预览区域,其中,解析应用程序可安装于设备上;Display multiple base files in the import file preview area of the parsing application interface, where the parsing application can be installed on the device;
响应于基于导入文件预览区域对多个基础文件的选定操作,获取设备中的崩溃日志和系统文件。Crash logs and system files in the device are obtained in response to selected operations on the plurality of underlying files based on the import file preview area.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
在解析应用程序界面的生成文件预览区域展示目标日志文件;Display the target log file in the generated file preview area of the parsing application interface;
基于解析应用程序界面获取导出指令,响应于导出指令将目标日志文件按照目标路径进行存储。Obtain the export instruction based on the parsing application program interface, and store the target log file according to the target path in response to the export instruction.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps:
获取设备中应用程序APP的初始崩溃日志和系统文件;Get the initial crash log and system files of the application APP in the device;
对初始崩溃文件的拓展名进行修改,得到目标崩溃文件;Modify the extension of the initial crash file to get the target crash file;
基于系统文件对目标崩溃日志进行验证;Validate target crash logs based on system files;
若验证通过,则对目标崩溃日志进行解析,得到目标日志文件,目标日子文件包括APP的事故信息。If the verification is passed, the target crash log is parsed to obtain the target log file, and the target date file includes the accident information of the APP.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
对目标崩溃日志进行符号化解析,得到APP发生事故的类名与方法名;Symbolically parse the target crash log to get the class name and method name of the APP accident;
根据类名与方法名,生成初始日志文件,对初始日志文件进行命名处理,得到目标日志文件。According to the class name and method name, the initial log file is generated, and the initial log file is named to obtain the target log file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
判断系统文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the system file is consistent with the authentication information in the target crash file;
若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致,则确定验证通过;If the authentication information in the system file is consistent with the authentication information in the target crash file, it is determined that the authentication is passed;
若系统文件中的身份验证信息与目标崩溃文件中的身份验证信息不一致,则确定验证未通过。If the authentication information in the system file is inconsistent with the authentication information in the target crash file, it is determined that the authentication fails.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:其中,系统文件包括程序文件和符号表文件;In one embodiment, the processor further implements the following steps when executing the computer program: wherein the system file includes a program file and a symbol table file;
判断程序文件和符号表文件中的身份验证信息与目标崩溃文件中的身份验证信息是否一致;Determine whether the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file;
若程序文件和符号表文件中的身份验证信息均与目标崩溃文件中的身份验证信息一致,则表示系统文件中的身份验证信息与目标崩溃文件中的身份验证信息一致。If the authentication information in the program file and the symbol table file is consistent with the authentication information in the target crash file, it means that the authentication information in the system file is consistent with the authentication information in the target crash file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
若验证未通过,则重新获取APP的新的目标崩溃文件,并基于系统文件重新对新的目标崩溃文件进行验证。If the verification fails, the new target crash file of the APP is re-acquired, and the new target crash file is re-verified based on the system file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
响应于身份验证未通过,确认身份验证未通过的原因;In response to the authentication failure, confirm the reason why the authentication failed;
基于身份验证未通过的原因,输出报错提醒信息。An error message is output based on the reason why the authentication failed.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取设备中所包含的多个基础文件;Get multiple base files contained in the device;
将多个基础文件显示在解析应用程序界面的导入文件预览区域,其中,解析应用程序可安装于设备上;Display multiple base files in the import file preview area of the parsing application interface, where the parsing application can be installed on the device;
响应于基于导入文件预览区域对多个基础文件的选定操作,获取设备中的崩溃日志和系统文件。Crash logs and system files in the device are obtained in response to selected operations on the plurality of underlying files based on the import file preview area.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
在解析应用程序界面的生成文件预览区域展示目标日志文件;Display the target log file in the generated file preview area of the parsing application interface;
基于解析应用程序界面获取导出指令,响应于导出指令将目标日志文件按照目标路径进行存储。Obtain the export instruction based on the parsing application program interface, and store the target log file according to the target path in response to the export instruction.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all Information and data authorized by the user or fully authorized by the parties.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to a memory, a database or other media used in the various embodiments provided in this application may include at least one of a non-volatile memory and a volatile memory. Non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Memory) Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The database involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210764083.6A CN115080297A (en) | 2022-06-30 | 2022-06-30 | Analysis method and device for crash log |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210764083.6A CN115080297A (en) | 2022-06-30 | 2022-06-30 | Analysis method and device for crash log |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115080297A true CN115080297A (en) | 2022-09-20 |
Family
ID=83257300
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210764083.6A Pending CN115080297A (en) | 2022-06-30 | 2022-06-30 | Analysis method and device for crash log |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115080297A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109032909A (en) * | 2018-07-18 | 2018-12-18 | 携程旅游信息技术(上海)有限公司 | Processing method, system, equipment and the storage medium of application crash log |
| CN110347571A (en) * | 2019-07-09 | 2019-10-18 | 深圳市网心科技有限公司 | A kind of crash log acquisition method, analysis method and relevant apparatus |
| CN110764945A (en) * | 2019-10-23 | 2020-02-07 | 北京博睿宏远数据科技股份有限公司 | Crash log processing method, device, equipment and storage medium |
| CN111104185A (en) * | 2019-12-20 | 2020-05-05 | 上海米哈游网络科技股份有限公司 | File analysis method, device, system and storage medium |
| CN111382259A (en) * | 2018-12-28 | 2020-07-07 | 上海游昆信息技术有限公司 | Analysis method and device for APP crash logs |
| CN111638991A (en) * | 2020-06-05 | 2020-09-08 | 贝壳技术有限公司 | Method and system for analyzing crash file |
-
2022
- 2022-06-30 CN CN202210764083.6A patent/CN115080297A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109032909A (en) * | 2018-07-18 | 2018-12-18 | 携程旅游信息技术(上海)有限公司 | Processing method, system, equipment and the storage medium of application crash log |
| CN111382259A (en) * | 2018-12-28 | 2020-07-07 | 上海游昆信息技术有限公司 | Analysis method and device for APP crash logs |
| CN110347571A (en) * | 2019-07-09 | 2019-10-18 | 深圳市网心科技有限公司 | A kind of crash log acquisition method, analysis method and relevant apparatus |
| CN110764945A (en) * | 2019-10-23 | 2020-02-07 | 北京博睿宏远数据科技股份有限公司 | Crash log processing method, device, equipment and storage medium |
| CN111104185A (en) * | 2019-12-20 | 2020-05-05 | 上海米哈游网络科技股份有限公司 | File analysis method, device, system and storage medium |
| CN111638991A (en) * | 2020-06-05 | 2020-09-08 | 贝壳技术有限公司 | Method and system for analyzing crash file |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10146672B2 (en) | Method and system for automated user interface (UI) testing through model driven techniques | |
| US10969929B2 (en) | Dependency graph-controlled object and compute pipeline migration | |
| WO2019205415A1 (en) | Data import management method and apparatus, mobile terminal and storage medium | |
| US9848277B2 (en) | High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices | |
| CN101526916B (en) | Application method and system for regression testing based on page object flow verification | |
| US9495282B2 (en) | Method and systems for a dashboard testing framework in an online demand service environment | |
| WO2020119422A1 (en) | Method and apparatus for loading test data, computer device and storage medium | |
| CN111984239A (en) | Page configuration method, device, server and storage medium | |
| CN108388623B (en) | ER relationship generation method and device, computer equipment and storage medium | |
| US10956309B2 (en) | Source code management systems and methods | |
| CN110084486A (en) | A kind of method for managing resource and device | |
| JP2018520452A (en) | Techniques for constructing generic programs using controls | |
| WO2019214014A1 (en) | Online product management method and apparatus, terminal device, and storage medium | |
| CN114443039A (en) | Input parameter verification method and device, electronic equipment and storage medium | |
| CN114490415B (en) | Business testing method, computer device, storage medium and computer program product | |
| WO2019109556A1 (en) | Cube file creation method, device, storage medium and terminal | |
| CN113918162B (en) | Front-end code automatic verification method based on centralized management mode | |
| CN114816372A (en) | Code generation method and device, electronic equipment and storage medium | |
| CN120631727A (en) | Application tracking data processing method, device, equipment and storage medium | |
| CN115080297A (en) | Analysis method and device for crash log | |
| WO2019085354A1 (en) | Excel system interface-based database linkage method, electronic device, and storage medium | |
| CN117851484A (en) | Data processing method, device and computer equipment based on rule engine | |
| CN117493199A (en) | Code verification method, device, computer equipment and storage medium | |
| CN116756022A (en) | Data preparation methods, devices, computer equipment and storage media | |
| JP2015148925A (en) | Program generation device and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |