CN114238024A - Timing diagram generation method and system - Google Patents

Timing diagram generation method and system Download PDF

Info

Publication number
CN114238024A
CN114238024A CN202111565388.6A CN202111565388A CN114238024A CN 114238024 A CN114238024 A CN 114238024A CN 202111565388 A CN202111565388 A CN 202111565388A CN 114238024 A CN114238024 A CN 114238024A
Authority
CN
China
Prior art keywords
interface
target
information
timing
log 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
Application number
CN202111565388.6A
Other languages
Chinese (zh)
Inventor
王健
张松祥
苏剑树
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202111565388.6A priority Critical patent/CN114238024A/en
Publication of CN114238024A publication Critical patent/CN114238024A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for generating a timing diagram, which comprises the following steps: setting a timing task, wherein the timing task is used for collecting target log information in a preset monitoring system; executing the timing task to acquire the target log information; analyzing the target log information to obtain an analysis tree; converting the parse tree into a chain structure; and drawing a target time sequence diagram according to the chain structure, and displaying the target time sequence diagram. The method comprises the steps of monitoring in real time through a monitoring system to obtain log information, collecting target log information in the log information through a timing task, analyzing the target log information to obtain an analysis tree, converting the analysis tree into a chain structure which is easy to draw a timing diagram, and finally drawing the timing diagram.

Description

Timing diagram generation method and system
Technical Field
The embodiment of the invention relates to the technical field of interface data processing, in particular to a method and a system for generating a timing diagram.
Background
The e-commerce system is developed with the following characteristics: the method has the advantages of multiple models, high complexity, long flow link, fast service change and high requirement on the performance of responding to burst flow. The interfaces between the systems have more calling relations, more times and more changes.
In the development process and the test process, development and test personnel rely on manual flow chart documents provided by the development personnel, but because of iteration of business and superposition of requirements, the flow chart documents have some information missing or slow updating because of maintenance problems, and influence is generated on development self-test and test case writing of the development and test. Due to inaccuracy of the provided document data, deviation is generated in design and test of the system model, and therefore construction of the system model is affected.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a method and a system for generating a timing chart, so as to solve the problem of inaccuracy of the plotted timing chart due to service iteration and the problem of deviation of a system model due to inaccuracy of the timing chart.
To achieve the above object, an embodiment of the present invention provides a method for generating a timing chart, including:
setting a timing task, wherein the timing task is used for collecting target log information in a preset monitoring system;
executing the timing task to acquire the target log information;
analyzing the target log information to obtain an analysis tree;
converting the parse tree into a chain structure;
and drawing a target time sequence diagram according to the chain structure, and displaying the target time sequence diagram.
Further, the executing the timing task to obtain target log information in a preset monitoring system includes:
triggering the timing task;
acquiring key information in the timing task;
and acquiring target log information related to the key information from the preset monitoring system based on the key information.
Further, the analyzing the target log information to obtain an analysis tree includes:
analyzing the target log information to obtain interface information of at least one target interface and a calling relation between the target interfaces, wherein the interface information comprises at least one of a requester system name, a callee system name, a calling interface, calling time, interface time consumption, service ip and a calling port number;
and obtaining an analytic tree based on the interface information and the calling relation.
Further, the converting the parse tree into a chain structure comprises:
and sequencing and associating the at least one target interface and the corresponding interface information thereof according to the calling time to obtain a chain structure.
To achieve the above object, an embodiment of the present invention provides a timing chart generation system, including:
the system comprises a setting module, a monitoring module and a processing module, wherein the setting module is used for setting a timing task, and the timing task is used for collecting target log information in a preset monitoring system;
the execution module is used for executing the timing task to acquire the target log information;
the analysis module is used for analyzing the target log information to obtain an analysis tree;
the conversion module is used for converting the parse tree into a chain structure;
and the drawing module is used for drawing a target timing sequence diagram according to the chain structure and displaying the target timing sequence diagram.
Further, the execution module is further configured to:
triggering the timing task;
acquiring key information in the timing task;
and acquiring target log information related to the key information from the preset monitoring system based on the key information.
Further, the parsing module is further configured to:
analyzing the target log information to obtain interface information of at least one target interface and a calling relation between the target interfaces, wherein the interface information comprises at least one of a requester system name, a callee system name, a calling interface, calling time, interface time consumption, service ip and a calling port number;
and obtaining an analytic tree based on the interface information and the calling relation.
Further, the conversion module is further configured to:
and sequencing and associating the at least one target interface and the corresponding interface information thereof according to the calling time to obtain a chain structure.
To achieve the above object, an embodiment of the present invention provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the computer program, when executed by the processor, implements the steps of the timing chart generation method described above.
To achieve the above object, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program is executable by at least one processor to cause the at least one processor to execute the steps of the above method for generating a timing chart.
According to the method and the system for generating the timing diagram, the monitoring system is used for monitoring in real time to obtain the log information, the timing task is used for collecting the target log information in the log information, analyzing the target log information to obtain the analysis tree, then the analysis tree is converted into the chain structure which is easy for drawing the timing diagram, and finally the timing diagram is drawn.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a method for generating a timing diagram according to the present invention.
Fig. 2 is a timing diagram of a first embodiment of a timing diagram generation method according to the present invention.
FIG. 3 is a flowchart illustrating a method for generating a timing diagram according to another embodiment of the present invention.
Fig. 4 is a schematic diagram of program modules of a second embodiment of the timing chart generation system according to the present invention.
Fig. 5 is a schematic diagram of a hardware structure of a third embodiment of the computer apparatus according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a timing diagram generation method according to an embodiment of the invention is shown. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The following description is made by way of example with the computer device 2 as the execution subject. The details are as follows.
And S100, setting a timing task, wherein the timing task is used for collecting target log information in a preset monitoring system.
Specifically, a timing task for acquiring target log information in the monitoring system is preset, target data takes traceid as key information, and the target log information is acquired through the timing task. the traceid is a unique serial number generated inside the CAT monitoring system and is a serial number of an interface calling dimension, the CAT monitoring system records the requirement of each interface calling, and correspondingly generates a unique serial number, for example, SQL is serially connected by the serial number.
And step S120, executing the timing task to acquire the target log information.
Specifically, a CAT embedded point is accessed in advance in an architecture system of a service model to set a monitoring system, and the architecture system includes a front end, a client, a back end, a server and the like, and is mainly used for data circulation. The monitoring system is connected with the framework system and used for storing and acquiring the log data of the service model in real time. In order to collect target data of a log page provided by CAT monitoring service, the CAT monitoring system provides page query service, a timing task directly collects target log information from a monitoring display page of the CAT monitoring system without query service, and the monitoring display page comprises a plurality of interface call log pages. The rule for timing task collection is as follows: and collecting target log information with traceid as key information. Each "show" has a corresponding traceid, and then each traceid has a corresponding page presentation. show is a button of a CAT monitoring page, and an upstream and downstream request flow acquired by each CAT is displayed in the page; for example: show may be an interface ID. The target log information can also be called interface target log information, the target data is an interface ID of the interface, and the corresponding target log information is inquired through the interface ID.
Such as the following single functions: the ordering interface can call the interface a, the interface b and the interface c; displaying links a, b and c on a CAT page of a lower order interface; and when the show is clicked, the detailed calling of the interface a can be shown in detail.
Namely, traceid 1: interface a (internal processing 1, 2, 3, 4 steps); traceid 2: interface b (internal processing 1, 2, 3 and 4 steps); traceid 3: interface c (internal processing 1, 2, 3, 4 steps).
In an exemplary embodiment, the step S120 further includes:
and step S121, triggering the timing task. And step S122, acquiring key information in the timing task. And S123, acquiring target log information related to the key information from the preset monitoring system based on the key information.
Specifically, the timing task may be automatically triggered by the server, or triggered based on other preset conditions, and after the timing task is triggered, the task to be executed in the timing task is acquired: and acquiring log information corresponding to the key information, namely acquiring the key information, and acquiring corresponding target log information from a storage unit of the monitoring system according to the key information. The timed task may be triggered daily, weekly, or monthly to obtain log information in real time. The log information stored in the monitoring system is stored in the storage unit, when the log information needs to be collected by the timed task, for the safety of the data, the safety verification can be performed on the timed task, for example, a collection instruction is set in the timed task, the collection instruction comprises a preset identifier, the preset identifier is used for indicating the validity of the identity, when the preset identifier is the identifier information in the white list, the log information is allowed to be collected, otherwise, the log information is not allowed to be collected, so that the safety of the data is ensured.
And step S140, analyzing the target log information to obtain an analysis tree.
Specifically, all the flow id, namely key information, is traversed in calling a log page, and then information of a system and an interface is acquired on each page according to the flow id; according to url (Uniform Resource Locator) of a page, assembling an http (Hypertext Transfer protocol) request, returning page data by the http, analyzing document files returned by the page, and elements hierarchical structure, acquiring information such as system, interface, time and the like, and storing the analyzed data in a database. Elements is a class in Java that is used to construct nodes in xml documents, and can be invoked, for example, when parsing or generating an xml document is required.
In an exemplary embodiment, the step S140 further includes:
step S141, analyzing the target log information to obtain interface information of at least one target interface and a calling relationship between the target interfaces, wherein the interface information comprises at least one of a system name of a requester, a system name of a callee, a calling interface, calling time, interface time consumption, a service ip and a calling port number. And S142, obtaining an analysis tree based on the interface information and the calling relation.
Specifically, the tree model of the parse tree is a parent node traceid, a local node traceid and a child node traceid, and the interface information includes a system name of a requesting party, a system name of a called party, a calling interface, calling time, interface time consumption, service ip and a calling port. And processing the interface information according to the tree model to obtain an analytic tree.
The structure of the number model is:
for example: traceid
traceidA->traceid1,traceid2,traceid3
traceidB
The data needing to be analyzed on the calling log page are all in the element object, the element object can be directly searched, and the needed data can be obtained from the element object.
And step S160, converting the parse tree into a chain structure.
Specifically, the tree structure of the parse tree is converted into the chain structure of the list. Acquiring node information of each node in the parse tree, wherein the node information comprises time information; and converting the parse tree into a chain structure according to the time information in the node information.
In an exemplary embodiment, the step S160 further includes:
and sequencing and associating the at least one target interface and the corresponding interface information thereof according to the calling time to obtain a chain structure.
Specifically, the chain structure of the list is a list structure, each target interface is arranged according to the list structure according to a time sequence, and corresponding interface information is associated behind each target interface, so that the time sequence chart is drawn conveniently.
And S180, drawing a target timing diagram according to the chain structure, and displaying the target timing diagram.
Specifically, the target sequence diagram is a flow chart for parsing a self-animated service with a page tool by acquiring data in a chain structure, see fig. 2. The page tool is analyzed as a Sequence Diagram open source tool, and the flow chart can be manufactured according to the Sequence after the chain structure is analyzed at the front end, namely, the earliest time interface data in the chain structure is firstly acquired, and the outermost layer interface data is sequentially acquired, wherein the interface data comprises a target interface and the corresponding interface information thereof. The real-time monitoring is carried out through the monitoring system, the time consumption of each transaction node can be monitored in a quasi-real-time visual mode, and then the time consumption is displayed to a user through a time sequence diagram for checking.
For a better understanding of the timing diagram generation method of the present invention, please refer to the flowchart of fig. 3.
Step S10, program CAT buries the point; by accessing the CAT buried point in the current architecture system, the program is the relevant program of the CAT monitoring system, so that the current architecture system can use the CAT system. Step S11, displaying a CAT monitoring page; and displaying a monitoring page, namely an interface calling log page, by the CAT monitoring system. Step S12, crawling data by timing tasks; and setting a timing task, wherein the timing task is used for crawling data of the target log information. Step S13, structuring data; and analyzing the target log information to obtain an analysis tree, and performing chain conversion on the analysis tree to obtain a chain structure. Step S14, sorting the data and storing the data; and storing the data related to the chain structure in a database. And step S15, drawing the data into a flow chart by the js sequence diagram, and drawing the data related to the chain structure by the js sequence diagram to obtain a target sequence chart.
The method comprises the steps of monitoring in real time through a monitoring system to obtain log information, analyzing the log information to obtain an analytic tree, converting the analytic tree into a chain structure which is easy for drawing a time sequence diagram, and finally drawing the time sequence diagram; the monitoring system can monitor the time consumption of each transaction node in a quasi-real-time visual manner by monitoring in real time.
Example two
Referring to fig. 4, a schematic diagram of program modules of a second embodiment of the timing diagram generation system of the present invention is shown. In the present embodiment, the timing diagram generating system 20 may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the present invention and implement the above-described timing diagram generating method. The program module referred to in the embodiments of the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than the program itself for describing the execution process of the timing chart generation system 20 in the storage medium. The following description will specifically describe the functions of the program modules of the present embodiment:
the setting module 200 is configured to set a timing task, where the timing task is used to collect target log information in a preset monitoring system.
Specifically, a timing task for acquiring target log information in the monitoring system is preset, target data takes traceid as key information, and the target log information is acquired through the timing task. the traceid is a unique serial number generated inside the CAT monitoring system and is a serial number of an interface calling dimension, the CAT monitoring system records the requirement of each interface calling, and correspondingly generates a unique serial number, for example, SQL is serially connected by the serial number. Due to the fact that the monitoring system is arranged, the problem that a drawn time sequence diagram is inaccurate due to business iteration is solved, and the problem that a system model is deviated due to inaccuracy of the time sequence diagram is solved.
An executing module 202, configured to execute the timing task to obtain the target log information.
Specifically, a CAT embedded point is accessed in advance in an architecture system of a service model to set a monitoring system, and the architecture system includes a front end, a client, a back end, a server and the like, and is mainly used for data circulation. The monitoring system is connected with the framework system and used for storing and acquiring the log data of the service model in real time. In order to collect target data of a log page provided by CAT monitoring service, the CAT monitoring system provides page query service, a timing task directly collects target log information from a monitoring display page of the CAT monitoring system without query service, and the monitoring display page comprises a plurality of interface call log pages. The rule for timing task collection is as follows: and collecting target log information with traceid as key information. Each "show" has a corresponding traceid, and then each traceid has a corresponding page presentation. show is a button of a CAT monitoring page, and an upstream and downstream request flow acquired by each CAT is displayed in the page; for example: show may be an interface ID. The target log information can also be called interface target log information, the target data is an interface ID of the interface, and the corresponding target log information is inquired through the interface ID.
Such as the following single functions: the ordering interface can call the interface a, the interface b and the interface c; displaying links a, b and c on a CAT page of a lower order interface; and when the show is clicked, the detailed calling of the interface a can be shown in detail.
Namely, traceid 1: interface a (internal processing 1, 2, 3, 4 steps); traceid 2: interface b (internal processing 1, 2, 3 and 4 steps); traceid 3: interface c (internal processing 1, 2, 3, 4 steps).
In an exemplary embodiment, the execution module 202 is further configured to:
triggering the timing task; acquiring key information in the timing task; and acquiring target log information related to the key information from the preset monitoring system based on the key information.
Specifically, the timing task may be automatically triggered by the server, or triggered based on other preset conditions, and after the timing task is triggered, the task to be executed in the timing task is acquired: and acquiring log information corresponding to the key information, namely acquiring the key information, and acquiring corresponding target log information from a storage unit of the monitoring system according to the key information. The timed task may be triggered daily, weekly, or monthly to obtain log information in real time. The log information stored in the monitoring system is stored in the storage unit, when the log information needs to be collected by the timed task, for the safety of the data, the safety verification can be performed on the timed task, for example, a collection instruction is set in the timed task, the collection instruction comprises a preset identifier, the preset identifier is used for indicating the validity of the identity, when the preset identifier is the identifier information in the white list, the log information is allowed to be collected, otherwise, the log information is not allowed to be collected, so that the safety of the data is ensured.
And the analysis module 204 is configured to analyze the target log information to obtain an analysis tree.
Specifically, all the flow id, namely key information, is traversed in calling a log page, and then information of a system and an interface is acquired on each page according to the flow id; according to url (Uniform Resource Locator) of a page, assembling an http (Hypertext Transfer protocol) request, returning page data by the http, analyzing document files returned by the page, and elements hierarchical structure, acquiring information such as system, interface, time and the like, and storing the analyzed data in a database. Elements is a class in Java that is used to build nodes in xml, and can be invoked, for example, when an xml document needs to be parsed or generated.
In an exemplary embodiment, the parsing module 204 is further configured to:
analyzing the target log information to obtain interface information of at least one target interface and a calling relation between the target interfaces, wherein the interface information comprises at least one of a requester system name, a callee system name, a calling interface, calling time, interface time consumption, service ip and a calling port number; and obtaining an analytic tree based on the interface information and the calling relation.
Specifically, the tree model of the parse tree is a parent node traceid, a local node traceid and a child node traceid, and the interface information includes a system name of a requesting party, a system name of a called party, a calling interface, calling time, interface time consumption, service ip and a calling port. And processing the interface information according to the tree model to obtain an analytic tree.
The structure of the number model is:
for example: traceid
traceidA->traceid1,traceid2,traceid3
traceidB
The data needing to be analyzed on the calling log page are all in the element object, the element object can be directly searched, and the needed data can be obtained from the element object.
A converting module 206, configured to convert the parse tree into a chain structure.
Specifically, the tree structure of the parse tree is converted into the chain structure of the list. Acquiring node information of each node in the parse tree, wherein the node information comprises time information; and converting the parse tree into a chain structure according to the time information in the node information.
In an exemplary embodiment, the conversion module 206 is further configured to:
and sequencing and associating the at least one target interface and the corresponding interface information thereof according to the calling time to obtain a chain structure.
Specifically, the chain structure of the list is a list structure, each target interface is arranged according to the list structure according to a time sequence, and corresponding interface information is associated behind each target interface, so that the time sequence chart is drawn conveniently.
And the drawing module 208 is configured to draw the target timing diagram according to the chain structure and display the target timing diagram.
Specifically, the target timing diagram is a flow chart for parsing the self-animated traffic with a page tool by acquiring data in a chain structure. The page tool is analyzed as a Sequence Diagram open source tool, and the flow chart can be manufactured according to the Sequence after the chain structure is analyzed at the front end, namely, the earliest time interface data in the chain structure is firstly acquired, and the outermost layer interface data is sequentially acquired, wherein the interface data comprises a target interface and the corresponding interface information thereof. The real-time monitoring is carried out through the monitoring system, the time consumption of each transaction node can be monitored in a quasi-real-time visual mode, and then the time consumption is displayed to a user through a time sequence diagram for checking.
EXAMPLE III
Fig. 5 is a schematic diagram of a hardware architecture of a computer device according to a third embodiment of the present invention. In the present embodiment, the computer device 2 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a preset or stored instruction. The computer device 2 may be a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers), and the like. As shown in FIG. 5, the computer device 2 includes, but is not limited to, at least a memory 21, a processor 22, a network interface 23, and a timing diagram generation system 20, which may be communicatively coupled to each other via a system bus. Wherein:
in this embodiment, the memory 21 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 2, such as a hard disk or a memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 2. Of course, the memory 21 may also comprise both internal and external memory units of the computer device 2. In this embodiment, the memory 21 is generally used for storing an operating system and various application software installed in the computer device 2, such as the program codes of the timing chart generating system 20 in the second embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is configured to execute the program code stored in the memory 21 or process data, for example, to execute the timing diagram generating system 20, so as to implement the timing diagram generating method according to the first embodiment.
The network interface 23 may comprise a wireless network interface or a wired network interface, and the network interface 23 is generally used for establishing communication connection between the server 2 and other electronic devices. For example, the network interface 23 is used to connect the server 2 to an external terminal via a network, establish a data transmission channel and a communication connection between the server 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like. It is noted that fig. 5 only shows the computer device 2 with components 20-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the timing diagram generating system 20 stored in the memory 21 can be further divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (in this embodiment, the processor 22) to complete the present invention.
For example, fig. 4 shows a schematic diagram of program modules of an embodiment implementing the timing diagram generating system 20, in this embodiment, the timing diagram generating system 20 may be divided into the setting module 200, the executing module 202, the parsing module 204, the converting module 206, and the drawing module 208. The program module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the timing chart generation system 20 in the computer device 2. The specific functions of the program modules 200 and 208 have been described in detail in the second embodiment, and are not described herein again.
Example four
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of the present embodiment is used for a computer program, and when executed by a processor, implements the timing chart generation method of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for generating a timing chart, comprising:
setting a timing task, wherein the timing task is used for collecting target log information in a preset monitoring system;
executing the timing task to acquire the target log information;
analyzing the target log information to obtain an analysis tree;
converting the parse tree into a chain structure;
and drawing a target time sequence diagram according to the chain structure, and displaying the target time sequence diagram.
2. The method for generating a timing chart according to claim 1, wherein the executing the timing task to obtain target log information in a preset monitoring system comprises:
triggering the timing task;
acquiring key information in the timing task;
and acquiring target log information related to the key information from the preset monitoring system based on the key information.
3. The method of claim 2, wherein parsing the target log information to obtain a parse tree comprises:
analyzing the target log information to obtain interface information of at least one target interface and a calling relation between the target interfaces, wherein the interface information comprises at least one of a requester system name, a callee system name, a calling interface, calling time, interface time consumption, service ip and a calling port number;
and obtaining an analytic tree based on the interface information and the calling relation.
4. The method according to claim 3, wherein the converting the parse tree into a chain structure comprises:
and sequencing and associating the at least one target interface and the corresponding interface information thereof according to the calling time to obtain a chain structure.
5. A timing diagram generation system, comprising:
the system comprises a setting module, a monitoring module and a processing module, wherein the setting module is used for setting a timing task, and the timing task is used for collecting target log information in a preset monitoring system;
the execution module is used for executing the timing task to acquire the target log information;
the analysis module is used for analyzing the target log information to obtain an analysis tree;
the conversion module is used for converting the parse tree into a chain structure;
and the drawing module is used for drawing a target timing sequence diagram according to the chain structure and displaying the target timing sequence diagram.
6. The timing diagram generation system of claim 5, wherein the execution module is further configured to:
triggering the timing task;
acquiring key information in the timing task;
and acquiring target log information related to the key information from the preset monitoring system based on the key information.
7. The timing diagram generation system of claim 6, wherein the parsing module is further configured to:
analyzing the target log information to obtain interface information of at least one target interface and a calling relation between the target interfaces, wherein the interface information comprises at least one of a requester system name, a callee system name, a calling interface, calling time, interface time consumption, service ip and a calling port number;
and obtaining an analytic tree based on the interface information and the calling relation.
8. The timing diagram generation system of claim 7, wherein the conversion module is further configured to:
and sequencing and associating the at least one target interface and the corresponding interface information thereof according to the calling time to obtain a chain structure.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory, a processor, the memory having stored thereon a computer program being executable on the processor, the computer program, when executed by the processor, realizing the steps of the timing diagram generation method according to any of claims 1-4.
10. A computer-readable storage medium, having stored therein a computer program executable by at least one processor to cause the at least one processor to perform the steps of the timing diagram generation method according to any one of claims 1 to 4.
CN202111565388.6A 2021-12-20 2021-12-20 Timing diagram generation method and system Pending CN114238024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111565388.6A CN114238024A (en) 2021-12-20 2021-12-20 Timing diagram generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111565388.6A CN114238024A (en) 2021-12-20 2021-12-20 Timing diagram generation method and system

Publications (1)

Publication Number Publication Date
CN114238024A true CN114238024A (en) 2022-03-25

Family

ID=80759669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111565388.6A Pending CN114238024A (en) 2021-12-20 2021-12-20 Timing diagram generation method and system

Country Status (1)

Country Link
CN (1) CN114238024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033470A (en) * 2023-10-08 2023-11-10 天津市天河计算机技术有限公司 Data generation method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033470A (en) * 2023-10-08 2023-11-10 天津市天河计算机技术有限公司 Data generation method, device, equipment and medium
CN117033470B (en) * 2023-10-08 2024-01-30 天津市天河计算机技术有限公司 Data generation method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109558575B (en) Online form editing method, online form editing device, computer equipment and storage medium
US10467316B2 (en) Systems and methods for web analytics testing and web development
CN106656536B (en) Method and equipment for processing service calling information
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
Mayer et al. An approach to extract the architecture of microservice-based software systems
CN109376291B (en) Website fingerprint information scanning method and device based on web crawler
CN110287069B (en) ESB interface automatic test method, server and computer readable storage medium
US20190243753A1 (en) Intermittent failure metrics in technological processes
CN112287009A (en) Interface calling and interface data warehousing method, device, equipment and storage medium
CN110704521A (en) Interface data access method and system
CN110502538B (en) Method, system, equipment and storage medium for portrait tag generation logic mapping
US20150100679A1 (en) Web application monitoring verification
CN111859076B (en) Data crawling method, device, computer equipment and computer readable storage medium
CN113449339A (en) Log collection method, system, computer device and computer readable storage medium
CN110795697A (en) Logic expression obtaining method and device, storage medium and electronic device
CN112084249A (en) Access record extraction method and device
CN114238024A (en) Timing diagram generation method and system
CN111221711A (en) User behavior data processing method, server and storage medium
CN113094248B (en) User behavior data analysis method and device, electronic equipment and medium
CN112187509A (en) Multi-architecture cloud platform execution log management method, system, terminal and storage medium
US20140337069A1 (en) Deriving business transactions from web logs
KR20210000041A (en) Method and apparatus for analyzing log data in real time
CN115242638B (en) Feasible touch screening method and device, electronic equipment and storage medium
CN112532424B (en) Service system, service end and information processing method
CN117742900B (en) Method, device, equipment and storage medium for constructing service call graph

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