Data processing method and device, computer readable storage medium and electronic equipment

By using internal memory to record event messages and generate event sequence diagrams in the pipeline system, the problem of frequent failures in the early stage of module integration in the pipeline system is solved, the real-time performance and stability of the system are improved, and debugging time and costs are saved.

CN114489810BActive Publication Date: 2025-10-21GUANGZHOU XAIRCRAFT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210018313.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2025-10-21
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

In the software development process, failures are frequent in the early stages of module integration in pipeline systems. Existing debugging methods, which record data by printing data through serial ports, result in reduced real-time performance and cannot effectively handle the problem of multiple modules running simultaneously.

Method used

The system uses internal memory to record event messages in the pipeline system, generates event sequence diagrams, and analyzes the events to be optimized and abnormal events in the pipeline system through memory analysis files and event sequence diagrams, reducing latency to the microsecond level and improving system real-time performance and stability.

Benefits of technology

It achieves high real-time performance and stability of the pipeline system, saves time and costs for development and debugging personnel, and improves the system's debugging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489810B_ABST
    Figure CN114489810B_ABST
Patent Text Reader

Abstract

The application provides a data processing method and device, a computer readable storage medium and an electronic device, and relates to the field of data processing. The data processing method comprises the following steps: in the running process of a pipeline system deployed in an electronic device, an event generation signal is received, wherein the current event corresponding to the event generation signal is an event in a pipeline task corresponding to the pipeline system; in response to the event generation signal, a message event corresponding to the current event is added to an internal memory; the message event added to the internal memory of the electronic device is acquired; and based on the message event added to the internal memory, an event timing diagram is generated, wherein the event timing diagram is used for analyzing a to-be-optimized event of the pipeline system and / or locating an abnormal event of the pipeline system. The data processing method achieves the purpose of guaranteeing the real-time performance of the pipeline system, and the generated event timing diagram provides convenience for a development and debugging personnel to analyze the stability of the pipeline system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a data processing method and device, a computer-readable storage medium, and an electronic device. Background Art

[0002] To improve efficiency during software development, the entire software is typically broken down into several task modules, each assigned to a different developer. When the software involves pipeline technology, such as using the output data of module A as the input data for module B, the software places strict requirements on the execution order of the task modules. When integrating all the task modules into a pipeline software system, not only does it involve multiple task modules managed by different developers, but it may also involve the coordination of different hardware. Therefore, the initial integration phase is prone to failures, requiring debugging to improve the functionality and stability of the software system.

[0003] The current debugging method is to use the serial interface (serial port) to print and record data and other information when each module is running. However, printing from multiple serial ports reduces the real-time performance of each module, and if problems such as multiple modules running at the same time occur, the serial port may not be able to complete the printing and recording operation. Summary of the Invention

[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a data processing method and device, a computer-readable storage medium, and an electronic device.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to an electronic device equipped with a pipeline system, wherein the electronic device includes an internal memory. The method comprises: during operation of the pipeline system, receiving an event generation signal, wherein the current event corresponding to the event generation signal is an event in a pipeline task corresponding to the pipeline system; and in response to the event generation signal, adding a message event corresponding to the current event to the internal memory, wherein the message event corresponding to the current event includes occurrence time information of the current event and number information of the current event, wherein the number information of the current event is determined based on an event information table configured in the pipeline system.

[0006] In combination with the first aspect, in certain implementations of the first aspect, during the operation of the pipeline system, before receiving an event generation signal, the method also includes: configuring an event information table corresponding to the pipeline system, wherein the event information table includes M events, and numbering information corresponding to each of the M events, event index information corresponding to each of the M events, and memory usage information corresponding to each of the M events.

[0007] In combination with the first aspect, in certain implementations of the first aspect, after adding a message event corresponding to a currently occurring event to the internal memory, the method further includes: in response to an analysis request instruction of a user or an analysis instruction triggered by a pipeline system, generating a memory analysis file based on the message event added to the internal memory during the operation of the pipeline system; wherein the memory analysis file includes file header information and data information, and the data information includes information of the message event added to the internal memory.

[0008] In combination with the first aspect, in certain implementations of the first aspect, adding a message event corresponding to a currently occurring event to the internal memory includes: determining the memory occupancy of the message event corresponding to the currently occurring event; judging whether the amount of free memory in the internal memory is greater than or equal to the memory occupancy of the message event corresponding to the currently occurring event; if so, directly adding the message event corresponding to the currently occurring event to the internal memory; if not, deleting the message event with the earliest addition time in sequence based on the addition time of the message events stored in the internal memory, until the amount of free memory in the internal memory is greater than or equal to the memory occupancy of the message event corresponding to the currently occurring event, and then adding the message event corresponding to the currently occurring event to the internal memory.

[0009] In combination with the first aspect, in some implementations of the first aspect, the message event corresponding to the currently occurring event further includes status information of the currently occurring event and / or description information of the currently occurring event.

[0010] In a second aspect, an embodiment of the present application provides a data processing method, which includes: obtaining message events added to an internal memory of an electronic device during the operation of a pipeline system deployed in the electronic device, wherein the message events added to the internal memory are obtained according to the data processing method mentioned in the first aspect above; based on the message events added to the internal memory, generating an event timing diagram, wherein the event timing diagram is used to analyze events to be optimized of the pipeline system, and / or, to locate abnormal events of the pipeline system.

[0011] In a third aspect, an embodiment of the present application provides a data processing device, which is applied to an electronic device deployed with a pipeline system, and the electronic device includes an internal memory. The device includes: a receiving unit, configured to receive an event generation signal during operation of the pipeline system, wherein the current event corresponding to the event generation signal is an event in a pipeline task corresponding to the pipeline system; and an adding unit, configured to add a message event corresponding to the current event to the internal memory in response to the event generation signal, wherein the message event corresponding to the current event includes occurrence time information of the current event and number information of the current event, and the number information of the current event is determined based on an event information table configured in the pipeline system.

[0012] In a fourth aspect, an embodiment of the present application provides a data processing device, which includes: an acquisition unit, used to acquire message events added to an internal memory of an electronic device during the operation of a pipeline system deployed in the electronic device, wherein the message events added to the internal memory are obtained according to the data processing method mentioned in the first aspect above; a generation unit, used to generate an event timing diagram based on the message events added to the internal memory, wherein the event timing diagram is used to analyze events to be optimized of the pipeline system, and / or to locate abnormal events of the pipeline system.

[0013] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for executing the data processing method mentioned in the first aspect and / or the second aspect above.

[0014] In a sixth aspect, an embodiment of the present application provides an electronic device, which is deployed with a pipeline system, and the electronic device includes: a processor for executing the data processing method mentioned in the first aspect and / or the second aspect above; and a memory for storing processor executable instructions.

[0015] Compared with the solution of using the serial port in the system to transmit messages, which causes delays in the occurrence of events in the pipeline system, the data processing method provided in the embodiment of the present application records the messages corresponding to the events occurring in the pipeline system based on the internal memory. This method can reduce the delay to the microsecond level, thereby ensuring the pipeline system's requirements for high real-time performance, improving the efficiency and stability of the pipeline system, and has great practical value.

[0016] The data processing method provided in the embodiment of the present application generates an event timing diagram based on the message events added to the internal memory, so as to more intuitively and quickly analyze the events to be optimized of the pipeline system, and / or locate abnormal events of the pipeline system, saving unnecessary time costs for development and debugging personnel and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 The figure is a flow chart of a data processing method provided in one embodiment of the present application.

[0018] Figure 2 Shown is a flow chart of a data processing method provided in another embodiment of the present application.

[0019] Figure 3 Shown is a flow chart of a data processing method provided in another embodiment of the present application.

[0020] Figure 4 The figure shows a flow chart of adding a message event corresponding to a currently occurring event to an internal memory provided by an embodiment of the present application.

[0021] Figure 5 Shown is a flow chart of a data processing method provided in another embodiment of the present application.

[0022] Figure 6 Shown is a schematic diagram of presenting an event timing diagram provided in an embodiment of the present application.

[0023] Figure 7 FIG2 is a schematic diagram of the structure of a data processing device provided in one embodiment of the present application.

[0024] Figure 8 Shown is a structural schematic diagram of a data processing device provided in another embodiment of the present application.

[0025] Figure 9 Shown is a structural schematic diagram of a data processing device provided in another embodiment of the present application.

[0026] Figure 10 Shown is a structural schematic diagram of a data processing device provided in another embodiment of the present application.

[0027] Figure 11 Shown is a structural schematic diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0029] As the scale of development systems in projects continues to grow, a module-based responsibility system is often adopted during project development. This means that each developer is responsible for a different development module and must integrate all modules into the system to complete the entire system development process. For high-real-time pipeline systems, which are built using pipeline technology during the development process, such as image signal processing (ISP) pipeline systems, strict pipeline timing requirements are imposed. Each module must ensure that the data from the previous module has been processed. At the same time, the system's real-time requirements constrain it from waiting indefinitely for a timed-out module. If two modules that should be executed sequentially overlap, the execution time of these modules can easily lead to system errors or data corruption. Therefore, when developing such a high-real-time pipeline system and integrating all modules into the system, in addition to the risk of errors in the coordination between modules, algorithm iterations, the introduction of different cameras, or pipeline re-customization can also disrupt timing, leading to data anomalies and system failures.

[0030] The current debugging method is to use serial port printing to record data and other information when each module is running. However, printing from multiple serial ports reduces the real-time performance of each module. If problems such as multiple modules running at the same time occur, the serial port may not be able to complete the printing and recording operations.

[0031] In order to solve the above technical problems, the embodiments of the present application provide a data processing method and device, a computer-readable storage medium and an electronic device to achieve the purpose of ensuring the real-time performance of the pipeline system. At the same time, the generated event timing diagram provides convenience for development and debugging personnel to analyze the stability of the pipeline system. Especially when problems occur in the pipeline system, it is convenient for development and debugging personnel to locate abnormal events in the system more intuitively and quickly, saving unnecessary time costs.

[0032] The following combination Figures 1 to 6 The data processing method mentioned in the embodiments of this application is introduced in detail.

[0033] Figure 1 The figure shows a flow chart of a data processing method provided by an embodiment of the present application. The data processing method is applied to an electronic device with a pipeline system, and the electronic device includes an internal memory. Figure 1 As shown, the data processing method provided in the embodiment of the present application includes the following steps.

[0034] Step S11: During the operation of the pipeline system, an event generation signal is received, wherein the current event corresponding to the event generation signal is an event in the pipeline task corresponding to the pipeline system.

[0035] For example, a pipeline system includes pipeline tasks, which in turn include multiple events. For example, in a camera pipeline system, video tasks include digital video encoding and decoding events, while system tasks include auto white balance, auto exposure, and wide dynamic range (WDR) activation events.

[0036] Step S12: In response to the event generation signal, a message event corresponding to the current event is added to the internal memory. The message event corresponding to the current event includes the occurrence time information of the current event and the number information of the current event. The number information of the current event is determined based on the event information table configured by the pipeline system.

[0037] Exemplarily, the event information table includes every event in the pipeline system. The message event corresponding to the current event may also include the status information of the current event and / or the description information of the current event. For example, the status information of the event includes a node, a start, and an end. It is understood that when the duration of the event is negligible, the occurrence of the event is recorded as a node state, that is, the status information of the event is a node. Otherwise, the occurrence of the event has a start and an end, which correspond to the start state and the end state of the event respectively.

[0038] Compared with the solution of using the serial port in the system to transmit messages, which causes delays in the occurrence of events in the pipeline system, the data processing method provided in the embodiment of the present application records the messages corresponding to the events occurring in the pipeline system based on the internal memory. This method can reduce the delay to the microsecond level, thereby ensuring the pipeline system's requirements for high real-time performance, improving the efficiency and stability of the pipeline system, and has great practical value.

[0039] Figure 2 FIG. 1 is a flow chart of a data processing method provided by another embodiment of the present application. Figure 1 Based on the embodiment shown Figure 2 The embodiment shown is described below in detail. Figure 2 The embodiment shown is Figure 1 The differences and similarities between the illustrated embodiments are not described in detail.

[0040] like Figure 2 As shown, in the embodiment of the present application, during the operation of the pipeline system, before receiving the event generation signal (step S11), the following steps may also be included.

[0041] Step S10: configure an event information table corresponding to the pipeline system, wherein the event information table includes M events, number information corresponding to each of the M events, event index information corresponding to each of the M events, and memory usage information corresponding to each of the M events, where M is a positive integer.

[0042] Exemplarily, the pipeline system includes M events. The event information table may also include N tasks in the pipeline system, number information corresponding to each of the N tasks, task index information corresponding to each of the N tasks, and events included in each of the N tasks, where N is a positive integer.

[0043] Figure 3 FIG. 1 is a flow chart of a data processing method provided by another embodiment of the present application. Figure 1 Based on the embodiment shown Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown is Figure 1 The differences and similarities between the illustrated embodiments are not described in detail.

[0044] like Figure 3 As shown, in the embodiment of the present application, after adding the message event corresponding to the current event to the internal memory in response to the event generation signal (step S12), the following steps may also be included.

[0045] In step S13, in response to a user's analysis request or an analysis command triggered by the pipeline system, a memory analysis file is generated based on the message events added to the internal memory during the operation of the pipeline system. The memory analysis file includes file header information and data information, and the data information includes information about the message events added to the internal memory.

[0046] Exemplarily, the user includes a development and debugging personnel. When the user wants to obtain a memory analysis file, the user can initiate an analysis request instruction, that is, a manual output request; when the pipeline system fails, an analysis instruction will be triggered, that is, an automatic output request. When the manual output request or automatic output request mentioned above occurs, the system will block the subsequent addition of message events to the internal memory. Based on the information of the message events added to the internal memory during the operation of the pipeline system, the data information of the memory analysis file is constituted. The header information of the memory analysis file may include a version number, status information on whether the message event overflows and is overwritten, task index information corresponding to each of the N tasks, and event index information corresponding to each of the M events. Exemplarily, based on the output request, information can also be printed out through the terminal to meet the different needs of users to view information on paper.

[0047] The data processing method provided in the embodiment of the present application generates a memory analysis file in response to the user's analysis request instruction or the analysis instruction triggered by the pipeline system. It does not occupy too many resources or generate too much unnecessary information due to storing all the information. The output is available as you view it, and the output is in the form of a proprietary file, which can be better distinguished from other information. It is convenient and effective to carry out practical applications and has great practical value.

[0048] Figure 4 The figure shows a flow chart of adding a message event corresponding to a current event to the internal memory provided by an embodiment of the present application. Figure 1 Based on the embodiment shown Figure 4 The embodiment shown is described below in detail. Figure 4 The embodiment shown is Figure 1 The differences and similarities between the illustrated embodiments are not described in detail.

[0049] like Figure 4 As shown, in an embodiment of the present application, step S12, in response to an event generation signal, adds a message event corresponding to the current event to the internal memory, including the following steps.

[0050] Step S121: determining the memory usage of the message event corresponding to the current event.

[0051] Exemplarily, the memory usage of the message event corresponding to the currently occurring event may be determined based on the event information table.

[0052] Step S122: determining whether the free memory amount of the internal memory is greater than or equal to the memory occupied by the message event corresponding to the currently occurring event.

[0053] The determination in step S122 is performed to prevent the message event from being completely recorded in the internal memory. For example, the free memory amount of the internal memory may refer to the free memory amount of the internal memory used to record the message event.

[0054] Step S123: If yes, directly add the message event corresponding to the current event to the internal memory.

[0055] If the internal memory has sufficient capacity, there is no need to worry about malfunctions caused by insufficient capacity.

[0056] Step S124, if not, then based on the addition time of the message events stored in the internal memory, delete the message events with the earliest addition time in sequence until the amount of free memory in the internal memory is greater than or equal to the memory usage of the message event corresponding to the current event, and then add the message event corresponding to the current event to the internal memory.

[0057] When step S124 is executed, that is, message events overflow and overwrite occurs, that is, the oldest message event added overflows the memory and is overwritten by the most recently added message event. For example, the oldest message event can also be retained, that is, the message event corresponding to the earliest event in the pipeline task when the pipeline system is just started, so that when the event information of the early system startup needs to be viewed, other message events can be deleted, such as deleting the message events recorded in the memory between five and three minutes before the time point of executing step S124.

[0058] The data processing method provided in the embodiment of the present application is combined with the need to record the latest message events in actual applications. Based on the amount of free memory in the internal memory used to record message events, it determines the execution overwrite situation and solves the problem of how to record message events in the internal memory when message events overflow, so as to prevent the inability to record the latest message events due to insufficient internal memory capacity.

[0059] Figure 5 FIG. 1 is a flow chart of a data processing method provided by another embodiment of the present application. Figure 5 As shown, the data processing method provided in the embodiment of the present application includes the following steps.

[0060] Step S1: Acquire message events added to the internal memory of the electronic device during the operation of the pipeline system deployed in the electronic device, wherein the message events added to the internal memory are obtained based on the data processing method mentioned in any of the above embodiments.

[0061] Step S2: Generate an event sequence diagram based on the message events added to the internal memory, wherein the event sequence diagram is used to analyze the events to be optimized in the pipeline system and / or to locate abnormal events in the pipeline system.

[0062] The data processing method provided in the embodiment of the present application can be used for electronic devices deployed with host computer software, such as memory debugging systems, timing analysis systems or timing anomaly detection systems. For example, during the operation of the pipeline system deployed in the electronic device, A (A is a positive integer) events corresponding to each event are added to the internal memory. At this time, the developer initiates an analysis request instruction and generates a corresponding memory analysis file based on the message events corresponding to each of the A events. The host computer software parses the header of the memory analysis file, obtains the numbering information corresponding to each task and event, parses each event message recorded in the memory analysis file, and generates a corresponding event sequence diagram.

[0063] For example, the event sequence diagram can be Figure 6 The presentation format shown. Figure 6 FIG. 1 is a schematic diagram showing an event sequence diagram provided by an embodiment of the present application. For example, Figure 6As shown, the vertical axis of the graph represents time, with time units ranging from 500μs to 1ms depending on display needs. The horizontal axis represents the event number. 100 represents the timeline in the host software. A horizontal line is drawn based on the mouse click location to facilitate viewing of concurrent events at that point in time. The rectangles in the graph are drawn based on the parsed event messages recorded in the memory analysis file. The vertical length of the rectangle represents the duration of the event. If the event's occurrence time is negligible, the event appears as a node and is also drawn as a point in the graph. Rectangles in the same column represent the same event occurring at different points in time. The host software offers valuable features, such as selecting a single event for viewing.

[0064] For example, if the camera fails to take photos during stress testing, the debugging personnel can preliminarily locate the frame number and time information of the failed photo according to the system log of the camera. Based on the frame number and time information, they can check the area near the corresponding time and event in the timing diagram, such as whether the time consumption of nearby events is abnormal, and whether the events carried out simultaneously in the timing diagram can overlap in time in the pipeline task.

[0065] For example, when the video data is unstable during camera preview, such as video image jumps or no data, by checking the generated event timing diagram, checking whether there are various events triggered by the preview action near the camera preview moment in the event timing diagram, checking whether the timing of various events triggered by the camera preview action is stable, checking the scheduling stability of the system, etc., it is easy to locate the time point or area where the problem occurs or the abnormal timing.

[0066] In the early module development, pipeline design, and later module iteration and pipeline iteration, real-time systems have high requirements for timing. By viewing the generated event timing diagram, the time point or area where the problem occurs or the abnormal timing can be located, and abnormal events can be checked. Based on which module task the event belongs to, the module task is updated and iterated; or by viewing the generated event timing diagram, it is found that the occurrence time of an event is too long and needs to be optimized, and then it is iteratively optimized.

[0067] The data processing method provided in the embodiment of the present application generates an event timing diagram based on the message events added to the internal memory, so as to more intuitively and quickly analyze the events to be optimized of the pipeline system, and / or locate abnormal events of the pipeline system, saving unnecessary time costs for development and debugging personnel and improving efficiency.

[0068] Combined with the above Figures 1 to 6 , describes the method embodiment of the present application in detail, and the following is combined with Figures 7 to 10The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so for parts not described in detail, reference can be made to the previous method embodiment.

[0069] Figure 7 FIG. 1 is a schematic diagram of the structure of a data processing device provided by an embodiment of the present application. Figure 7 As shown, the data processing device provided in this embodiment of the present application includes a receiving unit 11 and an adding unit 12.

[0070] Specifically, the receiving unit 11 is configured to receive an event generation signal during operation of the pipeline system, wherein the current event corresponding to the event generation signal is an event in the corresponding pipeline task of the pipeline system. The adding unit 12 is configured to, in response to the event generation signal, add a message event corresponding to the current event to the internal memory, wherein the message event corresponding to the current event includes the occurrence time information of the current event and the number information of the current event, and the number information of the current event is determined based on the event information table configured in the pipeline system.

[0071] Figure 8 The figure shows a schematic diagram of the structure of a data processing device provided by another embodiment of the present application. Figure 7 Based on the embodiment shown Figure 8 The embodiment shown is described below in detail. Figure 8 The embodiment shown is Figure 7 The differences and similarities between the illustrated embodiments are not described in detail.

[0072] like Figure 8 As shown, the data processing device provided in the embodiment of the present application also includes a configuration unit 10, which is used to configure an event information table corresponding to the pipeline system, wherein the event information table includes M events, and numbering information corresponding to each of the M events, event index information corresponding to each of the M events, and memory usage information corresponding to each of the M events.

[0073] Figure 9 The figure shows a schematic diagram of the structure of a data processing device provided by another embodiment of the present application. Figure 7 Based on the embodiment shown Figure 9 The embodiment shown is described below in detail. Figure 9 The embodiment shown is Figure 7 The differences and similarities between the illustrated embodiments are not described in detail.

[0074] like Figure 9As shown, the data processing device provided by the embodiment of the present application also includes a response generation unit 13, which is used to respond to the user's analysis request instruction or the analysis instruction triggered by the pipeline system, and generate a memory analysis file based on the message event added to the internal memory during the operation of the pipeline system; wherein the memory analysis file includes file header information and data information, and the data information includes information of the message event added in the internal memory.

[0075] In some embodiments, the adding unit 12 is also used to determine the memory usage of the message event corresponding to the current event; determine whether the free memory amount of the internal memory is greater than or equal to the memory usage of the message event corresponding to the current event; if so, directly add the message event corresponding to the current event to the internal memory; if not, delete the message event with the earliest addition time in sequence according to the addition time of the message events stored in the internal memory, until the free memory amount in the internal memory is greater than or equal to the memory usage of the message event corresponding to the current event, and then add the message event corresponding to the current event to the internal memory.

[0076] Figure 10 FIG. 1 is a structural diagram of a data processing device provided by another embodiment of the present application. Figure 10 As shown, the data processing device provided in the embodiment of the present application includes an acquisition unit 1 and a generation unit 2.

[0077] Specifically, the acquisition unit 1 is used to obtain message events added to the internal memory of the electronic device during the operation of the pipeline system deployed in the electronic device, wherein the message events added to the internal memory are obtained based on the data processing method mentioned in any of the above embodiments; the generation unit 2 is used to generate an event timing diagram based on the message events added to the internal memory, wherein the event timing diagram is used to analyze the events to be optimized of the pipeline system, and / or to locate abnormal events of the pipeline system.

[0078] Below, reference Figure 11 To describe the electronic device according to the embodiment of the present application. Figure 11 Shown is a structural schematic diagram of an electronic device provided in one embodiment of the present application.

[0079] like Figure 11 As shown, the electronic device 9 includes one or more processors 7 and a memory 8 .

[0080] The processor 7 may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 9 to perform desired functions.

[0081] The memory 8 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor 7 may execute the program instructions to implement the data processing methods of the various embodiments of the present application mentioned above and / or other desired functions. Various contents such as message data may also be stored in the computer-readable storage medium. Exemplarily, the memory 8 may include the internal memory of the various embodiments of the present application mentioned above.

[0082] In one example, the electronic device 9 may further include an input device 6 and an output device 5 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0083] The input device 6 may include, for example, a keyboard, a mouse, a sensor (touch sensor, visual sensor), etc.

[0084] The output device 5 can output various information to the outside, including risk task data, etc. The output device 5 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0085] Of course, to simplify, Figure 11 Only some of the components related to the present application in the electronic device 9 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, the electronic device 9 may further include any other appropriate components according to specific application conditions.

[0086] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps of the data processing method according to various embodiments of the present application described above in this specification.

[0087] The computer program product may be written in any combination of one or more programming languages ​​to implement the program code for performing the operations of the embodiments of the present application, including object-oriented programming languages ​​such as Java, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0088] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps of the data processing method according to various embodiments of the present application described above in this specification.

[0089] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared rays, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0090] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of this application. In addition, the specific details disclosed above are merely illustrative and facilitating understanding, and are not restrictive. The above details do not limit this application to necessarily being implemented using the above specific details.

[0091] The block diagrams of the devices, devices, equipment, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0092] It should also be noted that in the apparatus, device, and method of the present application, each component or each step can be decomposed and / or recombined, and such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0093] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0094] The above description has been provided for the purpose of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A data processing method, characterized in that: The method is applied to an electronic device equipped with a pipeline system, wherein the electronic device includes an internal memory, the pipeline system includes a pipeline task, and the pipeline task includes multiple events. The method includes: During the operation of the pipeline system, an event generation signal is received, wherein the current event corresponding to the event generation signal is an event in the pipeline task corresponding to the pipeline system; In response to the event generation signal, adding a message event corresponding to the currently occurring event to the internal memory, wherein the message event corresponding to the currently occurring event includes occurrence time information of the currently occurring event and number information of the currently occurring event, and the number information of the currently occurring event is determined based on an event information table configured in the pipeline system, and the event information table includes each event in the pipeline system; After adding the message event corresponding to the currently occurring event to the internal memory, the method further includes: generating a memory analysis file based on message events added to the internal memory during operation of the pipeline system in response to an analysis request instruction from a user or an analysis instruction triggered by the pipeline system; The memory analysis file includes file header information and data information, and the data information includes information of message events added in the internal memory.

2. The data processing method according to claim 1, wherein: In the operation process of the pipeline system, before receiving the event generation signal, the method further includes: Configure the event information table corresponding to the pipeline system, wherein the event information table includes M events, as well as numbering information corresponding to each of the M events, event index information corresponding to each of the M events, and memory usage information corresponding to each of the M events.

3. The data processing method according to claim 1 or 2, characterized in that: The adding the message event corresponding to the currently occurring event to the internal memory includes: Determine the memory usage of the message event corresponding to the currently occurring event; Determine whether the free memory amount of the internal memory is greater than or equal to the memory usage of the message event corresponding to the currently occurring event; If yes, directly add the message event corresponding to the current event to the internal memory; If not, the message event with the earliest addition time is deleted in sequence according to the addition time of the message events stored in the internal memory until the amount of free memory in the internal memory is greater than or equal to the memory occupancy of the message event corresponding to the current event, and then the message event corresponding to the current event is added to the internal memory.

4. The data processing method according to claim 1 or 2, characterized in that: The message event corresponding to the currently occurring event also includes status information of the currently occurring event and / or description information of the currently occurring event.

5. A data processing method, characterized in that: include: Acquire a message event added to an internal memory of the electronic device during operation of a pipeline system deployed in the electronic device, wherein the message event added to the internal memory is obtained according to the method according to any one of claims 1 to 4; Based on the message events added in the internal memory, an event sequence diagram is generated, wherein the event sequence diagram is used to analyze the events to be optimized of the pipeline system and / or to locate abnormal events of the pipeline system.

6. A data processing device, characterized in that: The device is applied to an electronic device equipped with a pipeline system, wherein the electronic device includes an internal memory, the pipeline system includes a pipeline task, and the pipeline task includes multiple events. The device includes: a receiving unit, configured to receive an event generation signal during operation of the pipeline system, wherein the current event corresponding to the event generation signal is an event in a pipeline task corresponding to the pipeline system; an adding unit, configured to add a message event corresponding to the currently occurring event to the internal memory in response to the event generation signal, wherein the message event corresponding to the currently occurring event includes occurrence time information of the currently occurring event and number information of the currently occurring event, and the number information of the currently occurring event is determined based on an event information table configured in the pipeline system, and the event information table includes every event in the pipeline system; The device also includes a generation unit for generating a memory analysis file in response to an analysis request instruction of a user or an analysis instruction triggered by the pipeline system, based on the message events added to the internal memory during the operation of the pipeline system; wherein the memory analysis file includes file header information and data information, and the data information includes information of the message events added to the internal memory.

7. A data processing device, characterized in that: include: an acquiring unit, configured to acquire a message event added to an internal memory of the electronic device during operation of the pipeline system deployed in the electronic device, wherein the message event added to the internal memory is obtained according to the method according to any one of claims 1 to 4; A generating unit is used to generate an event sequence diagram based on the message events added in the internal memory, wherein the event sequence diagram is used to analyze the events to be optimized of the pipeline system and / or to locate abnormal events of the pipeline system.

8. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to execute the data processing method according to any one of claims 1 to 5.

9. An electronic device, characterized in that: The electronic device is deployed with a pipeline system, and the electronic device includes: processor; a memory for storing instructions executable by the processor; The processor is used to execute the data processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for generating data records

    CN103441861A

  • Intelligent station panoramic data monitoring and analyzing system and method

    CN110943870A

  • Program debugging method, computing equipment and storage medium

    CN113312262A