CN106815017B - Dynamic language performance analysis and display method and system - Google Patents

Dynamic language performance analysis and display method and system Download PDF

Info

Publication number
CN106815017B
CN106815017B CN201611217936.5A CN201611217936A CN106815017B CN 106815017 B CN106815017 B CN 106815017B CN 201611217936 A CN201611217936 A CN 201611217936A CN 106815017 B CN106815017 B CN 106815017B
Authority
CN
China
Prior art keywords
dynamic language
execution
intermediate data
performance
dynamic
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.)
Active
Application number
CN201611217936.5A
Other languages
Chinese (zh)
Other versions
CN106815017A (en
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.)
Zhuhai Jianxin Interactive Entertainment Co.,Ltd.
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Chengdu Xishanju Interactive Entertainment Technology 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 Zhuhai Kingsoft Online Game Technology Co Ltd, Chengdu Xishanju Interactive Entertainment Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201611217936.5A priority Critical patent/CN106815017B/en
Publication of CN106815017A publication Critical patent/CN106815017A/en
Application granted granted Critical
Publication of CN106815017B publication Critical patent/CN106815017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The technical scheme of the invention comprises a dynamic language performance analysis and display method and a dynamic language performance analysis and display system, which are used for realizing the following steps: acquiring a target dynamic language system, carrying out global sampling based on dynamic execution and calling levels on the dynamic language system, and generating customized structured intermediate data; and analyzing the intermediate data, and performing overall interaction and analysis on the execution performance condition of the dynamic language in a cascading visualization mode corresponding to the execution and calling relation. The invention has the beneficial effects that: the running state of the target program is completely shown, and the system operator is helped to better understand the actual execution flow of the target system, especially key performance index conditions.

Description

Dynamic language performance analysis and display method and system
Technical Field
The invention relates to a dynamic language performance analysis and display method and a dynamic language performance analysis and display system, and belongs to the field of computers.
Background
In a logic part of application software realized by using a dynamic language, due to the inherent dynamic language characteristics of the dynamic language, the diversity of an execution script source, the fragmentation of an execution flow after the host language is embedded and the like, the independent and complete global performance analysis of the corresponding execution flow is generally difficult to perform in practice; the performance data obtained by sampling specific execution segments is often discrete and isolated, and the overall operation condition of the dynamic language system cannot be reflected.
Disclosure of Invention
In order to solve the above problems in the prior art, the present invention provides a dynamic language performance analysis and display method and system. By using the technical scheme of the invention, the user can visually analyze and interact the whole running condition of the dynamic language.
The technical scheme of the invention comprises a dynamic language performance analysis and display method, which is characterized by comprising the following steps: A. acquiring a target dynamic language system, carrying out global sampling based on dynamic execution and calling levels on the dynamic language system, and generating customized structured intermediate data; B. and analyzing the intermediate data, and performing overall interaction and analysis on the execution performance condition of the dynamic language in a cascading visualization mode corresponding to the execution and calling relation.
According to the dynamic language performance analysis and display method, the step A further comprises the following steps: s21, the dynamic execution comprises monitoring key points of the target program so as to obtain performance information of the whole execution flow; and S22, extracting the auxiliary information in the operation, combining the auxiliary information with the performance information captured on the key points, and forming structured and layered intermediate data.
Further extensions to the above step S21 include: the program key points include entries and exits for dynamic language functions, entries and exits for dynamic language code fragments, and entries and exits for dynamic language interactions with the host language.
Further extensions to the above step S22 include: the intermediate data is the description of the complete execution performance condition of the dynamic language in the target program, and the organization form of the intermediate data is matched with the calling level.
According to the dynamic language performance analysis and display method, the step B further comprises the following steps: s51, interpreting the structured intermediate data, and further displaying the interpreted structured intermediate data by using an interactive interface; s52, providing an editing interface to view, interact and analyze the structured intermediate data; and S53, establishing connection with the target program, performing synchronous exchange of data, and further outputting and monitoring the performance information of the target program in real time based on the synchronously exchanged data.
Further extensions to the above step S53 include: an analyzer is provided to analyze target program performance information and an adjuster is provided to make real-time adjustments to target program performance.
The technical scheme of the invention also comprises a dynamic language performance analysis and display system according to any method, which is characterized in that the method comprises the following steps: the system comprises a structuring module, a data processing module and a data processing module, wherein the structuring module is used for acquiring a target dynamic language system, carrying out global sampling based on dynamic execution and calling levels on the dynamic language system and generating customized structured intermediate data; and the dynamic display module is used for analyzing the intermediate data and integrally interacting and analyzing the execution performance condition of the dynamic language in a cascading visualization mode corresponding to the execution and calling relation.
The invention has the beneficial effects that: the running state of the target program is completely shown, and the system operator is helped to better understand the actual execution flow of the target system, especially the key performance index conditions (such as the memory occupation condition on the running key point and the execution time of the key business flow).
Drawings
FIG. 1 illustrates an overall flow diagram according to an embodiment of the invention;
FIG. 2 illustrates an interaction diagram according to an embodiment of the invention;
FIG. 3 is a schematic diagram of hierarchical intermediate data according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating operation according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments. The dynamic language performance analysis and display method and the system are suitable for optimizing program performance.
FIG. 1 shows a general flow diagram according to an embodiment of the invention. The method is mainly used for acquiring a target dynamic language system, performing global sampling based on dynamic execution and calling levels on the dynamic language system, and generating customized structured intermediate data; and analyzing the intermediate data, and performing overall interaction and analysis on the execution performance condition of the dynamic language in a cascading visualization mode corresponding to the execution and calling relation.
FIG. 2 illustrates an interaction diagram according to an embodiment of the present invention. The specific interaction is as follows:
in the execution flow of normal service, firstly registering and anchoring key points;
starting a target program to be analyzed;
data collection based on a call stack;
ending the target program;
carrying out layering processing on the acquired data by a monitoring process;
outputting a result;
wherein starting the target program to be analyzed to end the target program can execute multiple times of merging results.
Fig. 3 is a schematic diagram of hierarchical intermediate data according to an embodiment of the present invention, which is described as follows:
in the complete execution sequence, a plurality of target processes to be monitored are included, such as functions listed in the figure, memory code blocks, host interfaces, dynamic language runtime, and the like;
the target processes are organized in a tree structure, and a complete actual execution process is formed;
the arrow in the figure indicates the upper-level execution flow on which each execution flow depends, which can be regarded as the parent node in practice;
through a filtering mechanism of key points, the operating nodes which really need attention and the reference relationship among the operating nodes can be obtained.
FIG. 4 is a flowchart illustrating operations according to an embodiment of the present invention, which is implemented as follows S401 ~ S406
S401, configuring an environment and running a program in a global sampling mode;
s402, obtaining single sampling data by a hook which is registered on a section of the stack operation of the dynamic language in advance;
s403, periodically aggregating the sampling results in a period of time at a specific time point. Reorganizing the data in a hierarchical mode according to the execution and calling relation to form a structured intermediate result;
s404, obtaining the whole calling tree after the program is executed, generating execution data associated with a father node and adjacent nodes for each node on the tree, and further obtaining complete hierarchical data of the calling tree based on the current operation;
s405, configuring an interactive environment based on a customized window of a Web or local tool set, and loading and displaying interactive hierarchical content;
s406, the user can integrally zoom in or out any execution interval, and check the corresponding execution flow, call relationship and corresponding performance status.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and the present invention shall fall within the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (6)

1. A dynamic language performance analysis and display method is characterized by comprising the following steps:
A. the method comprises the following steps of obtaining a target dynamic language system, carrying out global sampling based on dynamic execution and calling levels on the dynamic language system, and generating customized hierarchical intermediate data, wherein the method comprises the following steps: s21, the dynamic execution comprises monitoring key points of the target program so as to obtain performance information of the whole execution flow; s22, extracting auxiliary information in operation, combining the auxiliary information with the performance information captured on the key points of the target program, and combining to form the hierarchical intermediate data;
B. and analyzing the hierarchical intermediate data, and performing overall interaction and analysis on the execution performance condition of the dynamic language in a cascading visualization mode corresponding to the execution and calling relation.
2. The method for analyzing and displaying dynamic language performance of claim 1, wherein the step S21 further comprises:
the target program key points comprise an inlet and an outlet of a dynamic language function, an inlet and an outlet of a dynamic language code segment, and an inlet and an outlet of a dynamic language and a host language interaction.
3. The method for analyzing and displaying dynamic language performance of claim 1, wherein the step S22 further comprises:
the hierarchical intermediate data is the description of the complete execution performance condition of the dynamic language in the target program, and the organization form of the hierarchical intermediate data is matched with the calling hierarchy.
4. The method for analyzing and displaying dynamic language performance of claim 1, wherein the step B comprises the steps of:
s51, interpreting the hierarchical intermediate data, and further displaying the interpreted hierarchical intermediate data by using an interactive interface;
s52, providing an editing interface to view, interact and analyze the hierarchical intermediate data;
and S53, establishing connection with the target program, performing synchronous exchange of the hierarchical intermediate data, and further performing real-time output and monitoring on the target program performance information based on the hierarchical intermediate data of the synchronous exchange.
5. The method for analyzing and displaying dynamic language performance of claim 4, wherein the step S53 further comprises:
an analyzer is provided to analyze target program performance information and an adjuster is provided to make real-time adjustments to target program performance.
6. A dynamic language performance analysis and presentation system for implementing the method of any one of claims 1 to 5, the system comprising:
the structuring module is used for acquiring a target dynamic language system, carrying out global sampling based on dynamic execution and calling levels on the dynamic language system and generating customized hierarchical intermediate data;
and the dynamic display module is used for analyzing the hierarchical intermediate data and integrally interacting and analyzing the execution performance condition of the dynamic language in a cascading visualization mode corresponding to the execution and calling relation.
CN201611217936.5A 2016-12-26 2016-12-26 Dynamic language performance analysis and display method and system Active CN106815017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611217936.5A CN106815017B (en) 2016-12-26 2016-12-26 Dynamic language performance analysis and display method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611217936.5A CN106815017B (en) 2016-12-26 2016-12-26 Dynamic language performance analysis and display method and system

Publications (2)

Publication Number Publication Date
CN106815017A CN106815017A (en) 2017-06-09
CN106815017B true CN106815017B (en) 2020-01-07

Family

ID=59110044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611217936.5A Active CN106815017B (en) 2016-12-26 2016-12-26 Dynamic language performance analysis and display method and system

Country Status (1)

Country Link
CN (1) CN106815017B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408235B (en) * 2018-10-19 2021-02-26 珠海金山网络游戏科技有限公司 Data processing method and device, computing equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541724A (en) * 2010-12-09 2012-07-04 中国科学院沈阳计算技术研究所有限公司 Performance evaluation method of real-time operating system
US9141347B2 (en) * 2009-05-18 2015-09-22 National Instruments Corporation Editing a graphical data flow program in a web browser on a client computer
CN105335280A (en) * 2014-07-16 2016-02-17 北京奇虎科技有限公司 Program performance test method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9141347B2 (en) * 2009-05-18 2015-09-22 National Instruments Corporation Editing a graphical data flow program in a web browser on a client computer
CN102541724A (en) * 2010-12-09 2012-07-04 中国科学院沈阳计算技术研究所有限公司 Performance evaluation method of real-time operating system
CN105335280A (en) * 2014-07-16 2016-02-17 北京奇虎科技有限公司 Program performance test method and device

Also Published As

Publication number Publication date
CN106815017A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
US9590880B2 (en) Dynamic collection analysis and reporting of telemetry data
WO2022032684A1 (en) A method, device, system and storage medium for fault diagnosis and solution recommendation
CN102999314A (en) Immediate delay tracker tool
CN111259073A (en) Intelligent business system running state studying and judging system based on logs, flow and business access
CN110851495A (en) Heterogeneous source data processing method and device, storage medium and electronic equipment
CN104462943A (en) Non-intrusive performance monitoring device and method for service system
CN111414619B (en) Data security detection method, device, equipment and readable storage medium
CN114036183A (en) Data ETL processing method, device, equipment and medium
CN111241447A (en) Webpage data acquisition method, system and storage medium
US9547537B2 (en) Automatic profiling report generation
CN111552521A (en) Application data reporting method, device, server and storage medium
CN106815017B (en) Dynamic language performance analysis and display method and system
CN104809063A (en) Test method and device of distributed system
US9164746B2 (en) Automatic topology extraction and plotting with correlation to real time analytic data
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN115237399A (en) Method for collecting data, storage medium, processor and engineering vehicle
CN111752916A (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN115757045A (en) Transaction log analysis method, system and device
CN110334001A (en) A kind of method and apparatus that batch automatically generates echo test
CN107247804B (en) Operation and maintenance big data analysis method, device and system
CN102915028B (en) The diagnostic system of PCS7 software systems and diagnostic method
CN104731900A (en) Hive scheduling method and device
CN114371884A (en) Method, device, equipment and storage medium for processing Flink calculation task
US20170337644A1 (en) Data driven invocation of realtime wind market forecasting analytics
CN100514994C (en) Communication host computer testing system and method thereof

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201210

Address after: No.329 Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Jianxin Interactive Entertainment Co.,Ltd.

Address before: 519000 Jinshan software building, 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Patentee before: ZHUHAI KINGSOFT NETWORK GAME TECHNOLOGY Co.,Ltd.

Patentee before: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.