A method, system, electronic device and storage medium for automatically generating a digital human behavior module execution flow chart

By generating a multi-forktree diagram to display the execution order and error message of the digital human behavior module, the time and experience dependence problems of digital human trainers when troubleshooting faults are solved, and the fault location and repair efficiency is improved.

CN117421142BActive Publication Date: 2024-11-22ZHEJIANG FENGWO IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311499296.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-11-22
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

Digital human trainers need to make long-term speculation on the execution process when troubleshooting problems, and rely heavily on experience, which affects training efficiency and quality. Complex module combinations and random functional blocks increase the difficulty of analysis.

Method used

By collecting and storing the operation and ending information of the digital human behavior module, a multi-forktree diagram is generated to display the execution order of the module and the error information, helping to quickly locate problems.

Benefits of technology

Significantly improve troubleshooting efficiency, trainers can quickly identify wrong lines and modify modules, shorten positioning and repair time, and reduce dependence on experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117421142B_ABST
    Figure CN117421142B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, electronic device and storage medium for automatically generating a digital human behavior module execution flow chart, including collecting operation information and end information in the digital human behavior execution module; storing the operation information and end information in a complete process information array; preprocessing the complete process information array to obtain a preprocessing process array; drawing and generating a multi-branch tree based on the preprocessing process array; the nodes in the multi-branch tree represent execution modules and the front node of the two adjacent nodes in the execution process sequence is the parent node of the rear node, and the rear node is the child node of the front node. The present invention displays a detailed process record of each execution module of the digital human, and when a behavior error occurs, it prominently marks which operation line has a problem, so that the trainer can quickly locate the problem, analyze the cause, modify the module, and retest the function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital human technology, and in particular to a method, system, electronic device and storage medium for automatically generating a digital human behavior module execution flow chart. Background Art

[0002] As the company's digital human capabilities increase and the complexity of actual business increases, the modules recorded by digital human trainers are becoming larger and larger, and the number of modules is also increasing. Often, a module representing the basic capabilities of a digital human will be composed of more than a dozen or even dozens of basic modules, while a module that handles complex business will be composed of several basic capability modules. Each module contains two processes, the main program and the daemon, which can call other modules in parallel. There is also a logical relationship of mutual reference and circular call between modules, so looking at the overall situation, all sub-processes are not executed linearly in sequence. Because a large number of random function blocks and intelligent processing blocks that adapt to different situations are recorded inside the module, when the module content is actually run, different execution processes will be generated according to different business scenarios. Various reasons make the analysis work after training complicated and time-consuming. When a digital human behavior fails, it is often necessary to trace the complete execution process, and the trainer can only know which function module's main program or daemon reported the error at the first time. Combined with the module reference relationship diagram of the business module, the duration of the digital human's current behavior execution and the theoretical running time of each related module, it is inferred which function blocks the digital human has executed before the error. This troubleshooting process is time-consuming, the inferred execution process deviates from the actual execution process, and is highly dependent on the trainer's experience, which greatly affects the training efficiency and quality of digital human capabilities. Summary of the invention

[0003] In view of the shortcomings existing in the above problems, the present invention provides a method, system, electronic device and storage medium for automatically generating a digital human behavior module execution flow chart.

[0004] To achieve the above-mentioned purpose, the present invention provides a method for automatically generating a digital human behavior module execution flow chart, comprising:

[0005] Collect the running information and ending information in the execution process of the digital human behavior execution module respectively. The running information includes the program start timestamp, module ID, module version number, program type, process ID and caller process ID. The ending information includes the program end timestamp, process ID and error information.

[0006] Storing the running information and the ending information into a complete process information array;

[0007] Preprocessing the complete process information array to obtain a preprocessing process array;

[0008] Based on the preprocessing process array, draw and generate a multi-branch tree;

[0009] The nodes in the multi-branch tree represent execution modules and the former node of two adjacent nodes in the execution process sequence is the parent node of the latter node, and the latter node is the child node of the former node.

[0010] Preferably, the program types include main programs and daemon programs.

[0011] Preferably, the process ID in the running information is the same as the process ID in the end information.

[0012] Preferably, preprocessing the complete process information array to obtain a preprocessed process array includes:

[0013] Taking out the end information in the complete process information array and storing it in the end information set;

[0014] Based on the process ID, traverse the running information in the complete process information array, and find the corresponding end information in the end information set;

[0015] Based on the running information and the corresponding end information, obtaining a program running duration;

[0016] The error information existing in the program running duration and the end information is added to the corresponding running information.

[0017] Preferably, based on the preprocessing process array, drawing and generating a multi-branch tree includes:

[0018] Taking out the last node in the execution process from the preprocessing process array;

[0019] For each of the last nodes, search for the corresponding parent node in sequence according to the process ID until the final parent node is found;

[0020] When the child node matches the corresponding parent node, the child node is inserted under the parent node.

[0021] Preferably, when the child node matches the corresponding parent node, inserting the child node under the parent node includes:

[0022] When the child node matches the corresponding parent node, first determine whether there is a module child node in the child node set of the parent node that is consistent with the module ID of the child node;

[0023] If it does not exist, create a virtual module node, if the program type of the child node is a main program, the child node is the right child node of the virtual module node, if the program type of the child node is a daemon program, the child node is the left child node of the virtual module node, and insert the virtual module node into the child node set of the parent node;

[0024] If it exists, it is added to the module subnode according to the program type of the subnode.

[0025] Preferably, if the error information exists on the child node, the error information is added to the parent node.

[0026] The present invention also provides a system for automatically generating a digital human behavior module execution flow chart, comprising:

[0027] The collection module is used to collect the operation information and end information of the execution process of the digital human behavior execution module respectively. The operation information includes the program start timestamp, module ID, module version number, program type, process ID and caller's process ID. The end information includes the program end timestamp, process ID and error information.

[0028] A storage module, used for storing the operation information and the end information into a complete process information array;

[0029] A preprocessing module, used for preprocessing the complete process information array to obtain a preprocessing process array;

[0030] A drawing module, used for drawing and generating a multi-branch tree based on the pre-processing process array;

[0031] The nodes in the multi-branch tree represent execution modules and the former node of two adjacent nodes in the execution process sequence is the parent node of the latter node, and the latter node is the child node of the former node.

[0032] The present invention also provides an electronic device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the above method.

[0033] The present invention also provides a storage medium storing a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device executes the above method.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] The present invention displays a detailed process record of each module executed by the digital human. When a behavioral error occurs, it prominently marks which operation line has the problem, making it convenient for the trainer to quickly locate the problem, analyze the cause, modify the module, and retest the function. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a flow chart of the method of automatically generating a digital human behavior module execution flow chart of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] Reference Figure 1 The present invention provides a method for automatically generating a digital human behavior module execution flow chart, comprising:

[0039] Collect the running information and ending information of the execution process of the digital human behavior execution module respectively. The running information includes the program start timestamp, module ID, module version number, program type, process ID and caller's process ID. The ending information includes the program end timestamp, process ID and error information.

[0040] Store the running information and the ending information into the complete process information array;

[0041] Specifically, during the initialization phase of the digital human behavior execution, an empty array will be created to store process information, called the "complete process information array". When the module starts running, two independent processes will be created at the same time, named "main program" and "daemon program". When the program starts running, the running information of the current program will be pushed to the "complete process information array". The running information includes the program start timestamp, module ID, module version number, program type, process ID, caller's process ID and other business-related information. The main content of the "main program" is the execution of the main functional logic, and the main content of the "daemon program" is to monitor and handle atypical scenarios such as network instability, application crashes and other problems. The "main program" and "daemon program" are executed in parallel and can reference other modules and call them during the execution process. When the "main program" or "daemon program" ends, the running information will be pushed to the "complete process information array" again. The end information includes the program end timestamp, process ID, and error information (if there is an error). When all programs have finished running, the information on the start and end of all programs and the calling relationship between different programs are collected.

[0042] Preprocess the complete process information array to obtain a preprocessing process array;

[0043] Specifically, the "complete process information array" contains a copy of each program's startup information and a copy of the program's end information. For the algorithm to generate a multi-branch tree, this array has half of the redundant nodes (because each tree node only needs to correspond to one copy of the program's running information). The array needs to be streamlined and the startup information and the end information need to be integrated. Because the "end information" must be located after the "running information" in the "complete process information array", a Map object structure for temporarily storing the program's end information set can be established, called the "end information set", and then the "complete process information array" is traversed from back to front to determine the type of program information. If it is "end information", it is taken out of the array and stored in the "end information set", with the process ID as the key and the information object as the value; if it is "running information", the corresponding end information is found in the "end information set" according to the process ID (the process ID of the startup information is the same as that of the end information), and possible error information is appended, and the duration of the program run is calculated, which is the "program end timestamp" minus the "program start timestamp", and then the corresponding end information is deleted from the "end information set" to reduce memory usage. After the traversal is completed, a preprocessed process information array is obtained, which is called the "preprocessed process array". That is, the preprocessing process is: take out the end information in the complete process information array and store it in the end information set; based on the process ID, traverse the running information in the complete process information array and find the corresponding end information in the end information set; based on the running information and the corresponding end information, obtain the program running duration; add the program running duration and the error information in the end information to the corresponding running information.

[0044] Draw and generate a multi-branch tree based on the preprocessing process array;

[0045] The nodes in the multi-branch tree represent execution modules and the former node of two adjacent nodes in the execution process sequence is the parent node of the latter node, and the latter node is the child node of the former node.

[0046] In this embodiment, an algorithm is used to reversely generate a multi-branch tree that can reflect the parallel execution process based on the "pre-processing process array": since the process array is dynamically generated by the digital human in the process of executing the module based on the module reference relationship network and the changing actual business scenarios, it has uncertainty in length and content before it is formed, and has the characteristics of overall order in the time dimension and local disorder at the subtree level after it is formed. It is not a simple one-dimensional array representation of a multi-branch tree generated by a pre-order traversal (or in-order, post-order traversal) of a multi-branch tree, so the multi-branch tree cannot be reversely generated by a simple traversal of the array once. This application adopts a method of directional optimization combined with actual business conditions. First, the "pre-processing process array" is analyzed, and it can be seen that: 1. Although multiple processes can be executed in parallel, each single line must be executed in order, and the pre-processed process array is an array that only contains "operation information", so for each subtree, the parent node's position index in the array must be smaller than the child node's position index; 2. During the running process of the parent node program, the child node program will be called to start running, so the position of the parent node in the array will not be far away from the position of the child node in the array. This distance depends on the length of time the parent node has been running before calling the child node and the length of time other parallel programs have been running. If the parent node has been running other business logic for 10 minutes before calling the child node, and during this period, two other subtrees' parallel programs have started running, then the distance between the parent node and the child node in the process array is 2, which roughly conforms to the normal distribution law as a whole; 3. From the characteristics of the tree, it can be seen that each child node has one and only one parent node. According to the above three characteristics, an algorithm for generating a multi-branch tree by searching for the parent node in reverse order is used. The algorithm takes out the last node of the array in turn and matches its parent node forward. Only a few comparisons are needed to find the parent node, insert the child node under the parent node, and enter the next cycle. Therefore, only one complete cycle is required to generate a multi-branch tree in reverse. The time complexity of this algorithm is O(n) and the space complexity is O(1). The drawing steps are as follows: take out the last node in the execution process from the preprocessing process array; for each last node, match forward in turn according to the process ID to find the corresponding parent node until the final parent node is found; when the child node matches the corresponding parent node, the child node is inserted under the parent node.

[0047] Furthermore, when a child node matches a corresponding parent node, inserting the child node under the parent node includes:

[0048] When a child node matches the corresponding parent node, first determine whether there is a module child node in the child node set in the parent node that has the same module ID as the child node;

[0049] If it does not exist, create a virtual module node. If the program type of the child node is the main program, the child node is the right child node of the virtual module node. If the program type of the child node is the daemon program, the child node is the left child node of the virtual module node. Insert the virtual module node into the child node set of the parent node.

[0050] If it exists, it will be added to the module subnode according to the program type of the subnode.

[0051] Specifically, since the "complete process information array" only records the running information of the child processes (referring to the "main process" and the "daemon process"), if only these child processes are used as tree nodes, the multi-branch tree formed is very messy. Therefore, when generating the multi-branch tree, a "virtual module node" is created, and the "virtual module node" is used to gather the process child nodes. The entire multi-branch tree is alternately expanded by module nodes and process child nodes. The specific method is as follows: When traversing the "pre-processing process array" in reverse order in the reverse generation multi-branch tree algorithm, assuming that the child node B has found the parent node A, B is not directly added to the Children array of A (the child node set of A), but according to the module ID in the program information of B, it is searched whether the Children array of A contains the module node C. Case 1: If C does not exist, a virtual module node is created to represent the module node C, and then the program type of B is determined. If B is the main program, it is used as the right child node of C. If B is a daemon program, it is used as the left child node of C. Finally, add the virtual module node C to the Children array of A; Case 2: If C exists, add it directly to the child nodes of C according to the program type of B.

[0052] In this embodiment, if there is an error message on the child node, the error message is added to the parent node. Add optimization points for transmitting program error information: Since the "pre-processing process array" contains only the program information that finally reports an error, and the multi-branch tree diagram drawn wants to show the complete error route, the error information must be passed layer by layer like bubbling to the upper layer. The specific method is as follows: When traversing the "pre-processing process array" in reverse order in the reverse generation multi-branch tree algorithm, assuming that the child node B has found the parent node A, and has found the corresponding module node C in the Children array of A or has newly created the corresponding module node C, it is determined whether the program information of the child node B contains error information. If it contains error information, the error information is added to A and C. Because it is a reverse traversal, each child node will look forward for the parent node to repeat this judgment process, so the error information will be passed layer by layer to the first program information of the "pre-processing process array", and the error information has been copied along the route, so the error route is established.

[0053] In this embodiment, according to the generated tree structure process data, the Canvas technology is used to draw a flow chart: the multi-branch tree diagram is drawn in a horizontal expansion mode from left to right. The most critical point is how to determine the coordinates of each node on the plane diagram and the size of the area occupied by the subtree with the node as the root node. The area occupied by each subtree can be regarded as a rectangle. The length of the rectangle depends on the depth of the subtree, and the width of the rectangle depends on the breadth of the subtree. Therefore, the present invention is guided by the idea of ​​"divide and conquer", recursively calculates the area and position of each subtree from bottom to top. The specific method is as follows: determine whether the current node is a leaf node. If it is a leaf node, the area occupied by the node is a fixed "leaf node width w" multiplied by "leaf node height h"; if it is not a leaf node, it is used as a subtree to calculate the area, and the length of the subtree rectangular area is Width, the width of the rectangular area is Height, the horizontal spacing with the child node is Space, and the vertical spacing of each child node is Gap. There are n child nodes in total, and the width of the area occupied by the i-th child node is recorded as W i , the height is denoted as H i , then the calculation formula is:

[0054] Width=max(Wi)+Space+w

[0055] Height=(∑ 1<=i<=n H i )+Gap*(n-1)

[0056] Note: 1. max() is used to find the maximum value in a set of data; ∑ is the cumulative sum;

[0057] After the recursion is completed, the occupied area of ​​the entire multi-branch tree and each of its subtrees is calculated. The relative root node of each subtree is located on the left side of the rectangular area and centered vertically. The coordinates of its upper left corner are marked as (X, Y). Relative to the rectangular area, the calculation formula is:

[0058] X=0

[0059] Y=(Height / 2)-h

[0060] The coordinates of the upper left corner of its i-th child node are marked as (Z i ,V i ), relative to the rectangular area, the calculation formula is:

[0061] Z i =w+Space

[0062] V i =(∑ i-1 H i )+Gap*(i-1)

[0063] At this point, we can draw a horizontal expansion diagram of the multi-branch tree based on the above data. When drawing each node, if it is a virtual module node, the module name and version number are displayed. If it is a process child node, the main program and the daemon are distinguished, and the running time is displayed. When the node information contains error information, the node is drawn with a striking red theme, and other nodes use a light gray theme.

[0064] The method and system provided by the present invention are used in digital human training scenarios, which has the following advantages:

[0065] Improved efficiency in locating problems: In the previous training model, after an error occurred, an experienced trainer was required to analyze the problem. Then, based on the granularity of the analysis results, about ten digital humans were selected to execute the fine-tuned module to further determine the general process. After multiple rounds of investigation, the problem was accurately located. In this process, if it is necessary to improve the analysis accuracy of the execution of a certain process line, it is necessary to track and monitor the behavior of the digital human one-to-one, which is time-consuming and labor-intensive. In complex situations, it may even require multiple trainers to collaboratively track the problem. The flowchart generated by the method provided by the present invention represents the actual module sequence executed by the digital human, and the execution time is accurate to seconds. For the modules called in a loop, the execution number is accurate to times. The digital human behavior trainer can modify the module operation logic according to the error prompts highlighted in the flowchart, and actively control the execution process of the module to be executed as described by the error line process. Only one trainer and one digital human are needed to accurately reproduce the error scenario.

[0066] Improved efficiency in confirming repair results: After repairing the module, you can select digital humans for testing in batches, or have one digital human perform the test repeatedly. There is no need for a dedicated person to track the execution status in real time. You only need to compare the flowchart generated for each run with the original error flowchart to draw a conclusion on whether the error process should be repaired.

[0067] The generation speed from process array to multi-tree flowchart is fast: because each subtree of the multi-tree of the digital human execution process is different, their breadth and depth are random. According to the traditional algorithm for generating multi-trees from unordered arrays, it is necessary to traverse the array sequentially multiple times, and each traversal searches for all child nodes under a parent node. Because the number of child nodes is unknown, each traversal needs to traverse to the last bit of the array. Therefore, the time complexity of the algorithm is O(n2) and the space complexity is O(1). Another traditional algorithm uses the Map data structure, first traverses the process array once, uses the node ID (i.e., process ID) as the key of the Map, and the node as the value of the Map, and then takes out the process nodes in the array one by one, and matches the relationship chain according to the node parent ID (i.e., the caller process ID). Since this algorithm only needs to loop twice, the time complexity is reduced to O(n), but the space complexity is increased to O(n). This is a method of trading space for time, which is not excellent. The present invention is based on actual business scenarios, and the optimized algorithm has a time complexity of O(n) and a space complexity of O(1), combining the advantages of the first two traditional algorithms.

[0068] Based on the above points, before the present invention, the following are the elements for digital human error troubleshooting tasks: (1) Experience requirements for digital human behavior trainers: work experience of at least 12 months, proficient in the operation rules of different basic behavior modules of digital human, and able to reversely infer possible combinations based on execution performance; (2) Digital human equipment required for error troubleshooting and retesting: 10 people; (3) Time required for error location: 60 to 120 minutes. After the present invention is launched, the corresponding elements are changed as follows: (1) Experience requirements for digital human behavior trainers: work experience of at least 2 months, basic understanding of the operation rules of different basic behavior modules of digital human, and ability to understand the execution flowchart; (2) Digital human equipment required for error troubleshooting and retesting: 1 person; (3) Time required for error location: 5 minutes, and it can be intuitively seen from the flowchart which module has an error when and which number of operations it is running, and which other modules were running before the error. By comparison, it can be seen that after implementing the method and system for automatically generating the execution flow chart of the digital human behavior module, the efficiency of the digital human in performing the error troubleshooting task has been greatly improved: (1) the experience requirement of the trainer can be reduced: (12-2) / 12≈83%; (2) the number of digital human devices required for troubleshooting and retesting can be reduced: (10-1) / 10=90%; (3) the time required for error location can be shortened: (60-5) / 60≈92%.

[0069] The present invention also provides a system for automatically generating a digital human behavior module execution flow chart, comprising:

[0070] The collection module is used to collect the running information and end information of the execution process of the digital human behavior execution module. The running information includes the program start timestamp, module ID, module version number, program type, process ID and caller's process ID. The end information includes the program end timestamp, process ID and error information.

[0071] A storage module, used for storing the running information and the ending information into a complete process information array;

[0072] A preprocessing module, used for preprocessing the complete process information array to obtain a preprocessing process array;

[0073] A drawing module is used to draw and generate a multi-branch tree based on the preprocessing process array;

[0074] The nodes in the multi-branch tree represent execution modules and the former node of two adjacent nodes in the execution process sequence is the parent node of the latter node, and the latter node is the child node of the former node.

[0075] The present invention also provides an electronic device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the above method.

[0076] The present invention also provides a storage medium storing a computer program executable by an electronic device. When the program runs on the electronic device, the electronic device executes the above method.

[0077] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for automatically generating a digital human behavior module execution flow chart, characterized in that: include: Collect the running information and ending information in the execution process of the digital human behavior execution module respectively. The running information includes the program start timestamp, module ID, module version number, program type, process ID and caller's process ID. The ending information includes the program end timestamp, process ID and error information. The process ID in the running information is the same as the process ID in the ending information. Storing the running information and the ending information into a complete process information array; Preprocessing the complete process information array to obtain a preprocessing process array; Based on the preprocessing process array, draw and generate a multi-branch tree; The nodes in the multi-branch tree represent execution modules and the former node of two adjacent nodes in the execution process sequence is the parent node of the latter node, and the latter node is the child node of the former node; Preprocessing the complete process information array to obtain a preprocessing process array includes: Taking out the end information in the complete process information array and storing it in the end information set; Based on the process ID, traverse the running information in the complete process information array, and find the corresponding end information in the end information set; Based on the running information and the corresponding end information, obtaining a program running duration; Adding the error information existing in the program running duration and the end information to the corresponding running information; Based on the preprocessing process array, drawing and generating a multi-branch tree includes: Taking out the last node in the execution process from the preprocessing process array; For each of the last nodes, search for the corresponding parent node in sequence according to the process ID until the final parent node is found; When the child node matches the corresponding parent node, the child node is inserted under the parent node.

2. The method for automatically generating a digital human behavior module execution flow chart according to claim 1, characterized in that: The program types include main programs and daemon programs.

3. The method for automatically generating a digital human behavior module execution flow chart according to claim 2, characterized in that: When the child node matches the corresponding parent node, inserting the child node under the parent node includes: When the child node matches the corresponding parent node, first determine whether there are other child nodes in the child node set of the parent node that have the same module ID as the child node; If it does not exist, create a virtual node. If the program type of the child node is a main program, the child node is the right child node of the virtual node. If the program type of the child node is a daemon program, the child node is the left child node of the virtual node. The virtual node is inserted into the child node set of the parent node. If it exists, it is added to the other child nodes according to the program type of the child node.

4. The method for automatically generating a digital human behavior module execution flow chart according to claim 3, characterized in that: If the error information exists on the child node, the error information is added to the parent node.

5. A system for automatically generating a digital human behavior module execution flow chart, characterized in that: include: The collection module is used to collect the running information and the end information in the execution process of the digital human behavior execution module respectively. The running information includes the program start timestamp, module ID, module version number, program type, process ID and the process ID of the caller. The end information includes the program end timestamp, process ID and error information. The process ID in the running information is the same as the process ID in the end information. A storage module, used for storing the operation information and the end information into a complete process information array; A preprocessing module, used for preprocessing the complete process information array to obtain a preprocessing process array; A drawing module, used for drawing and generating a multi-branch tree based on the pre-processing process array; The nodes in the multi-branch tree represent execution modules and the front node of two adjacent nodes in the execution process sequence is the parent node of the rear node, and the rear node is the child node of the front node; preprocessing the complete process information array to obtain the preprocessing process array includes: Taking out the end information in the complete process information array and storing it in the end information set; Based on the process ID, traverse the running information in the complete process information array, and find the corresponding end information in the end information set; Based on the running information and the corresponding end information, obtaining a program running duration; Adding the error information existing in the program running duration and the end information to the corresponding running information; Based on the preprocessing process array, drawing and generating a multi-branch tree includes: Taking out the last node in the execution process from the preprocessing process array; For each of the last nodes, search for the corresponding parent node in sequence according to the process ID until the final parent node is found; When the child node matches the corresponding parent node, the child node is inserted under the parent node.

6. An electronic device, characterized in that: The method comprises at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the method according to any one of claims 1 to 4.

7. A storage medium, characterized in that: It stores a computer program executable by an electronic device. When the program runs on the electronic device, the electronic device executes the method according to any one of claims 1 to 4.