CN106815017B - A dynamic language performance analysis and display method and system - Google Patents
A dynamic language performance analysis and display method and system Download PDFInfo
- 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
- dynamic
- intermediate data
- performance
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
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 present invention includes a dynamic language performance analysis and display method and system, which are used to achieve: acquiring a target dynamic language system, performing global sampling on the dynamic language system based on dynamic execution and calling levels, and generating a customized structured intermediate Data; analyze the intermediate data, and conduct overall interaction and analysis of the execution performance of the dynamic language through a cascading visualization method corresponding to the execution and invocation relationships. The beneficial effects of the present invention are: complete display of the running status of the target program, helping system operators to better understand the actual execution process of the target system, especially some key performance indicators.
Description
技术领域technical field
本发明涉及一种动态语言性能分析及展示方法和系统,属于计算机领域。The invention relates to a dynamic language performance analysis and display method and system, belonging to the field of computers.
背景技术Background technique
在应用软件使用动态语言实现的逻辑部分中,由于动态语言所固有的动态语言特性,执行脚本来源的多样性,嵌入宿主语言后执行流程的碎片化等情形,实践中通常难以对其对应的执行流程做独立完整的全局性性能分析;而针对具体执行片段采样得到的性能数据,往往离散而孤立,不能反映该动态语言系统整体的运行情况。In the logic part of application software implemented by dynamic language, due to the inherent dynamic language characteristics of dynamic language, the diversity of execution script sources, and the fragmentation of the execution process after embedding in the host language, it is usually difficult to execute the corresponding execution in practice. The process performs independent and complete global performance analysis; while the performance data sampled for specific execution segments is often discrete and isolated, and cannot reflect the overall operation of the dynamic language system.
发明内容SUMMARY OF THE 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 solution of the present invention, the user can intuitively analyze and interact with the overall operating status of the dynamic language.
本发明的技术方案包括一种动态语言性能分析及展示方法,其特征在于,该方法包括:A.获取目标动态语言系统,对动态语言系统进行基于动态执行和调用层次的全局采样,并生成定制的结构化中间数据;B.对中间数据进行分析,通过与执行和调用关系相对应的层叠式可视化方式对该动态语言的执行性能状况进行整体的交互和分析。The technical solution of the present invention includes a dynamic language performance analysis and display method, which is characterized in that the method includes: A. Obtaining a target dynamic language system, performing global sampling on the dynamic language system based on dynamic execution and calling levels, and generating custom The structured intermediate data; B. Analyze the intermediate data, and conduct overall interaction and analysis of the execution performance status of the dynamic language through a cascading visualization method corresponding to the execution and invocation relationships.
根据所述的动态语言性能分析及展示方法,所述的步骤A还包括:S21,所述动态执行包括对目标程序关键点的监控进而获取整个执行流程的性能信息;S22,提取运行时辅助信息,与关键点上捕获的性能信息相结合,组合形成结构化和层次化的中间数据。According to the dynamic language performance analysis and display method, the step A further includes: S21, the dynamic execution includes monitoring the key points of the target program to obtain performance information of the entire execution process; S22, extracting runtime auxiliary information , combined with the performance information captured at key points to form structured and hierarchical intermediate data.
对上述步骤S21的进一步扩展,其包括:所述程序关键点包括动态语言函数的入口和出口,动态语言代码段的入口和出口,以及,动态语言与宿主语言交互的入口和出口。A further extension of the above step S21 includes: the key points of the program include the entry and exit of dynamic language functions, the entry and exit of dynamic language code segments, and the entry and exit of interaction between dynamic language and host language.
对上述步骤S22的进一步扩展,其包括:所述中间数据为动态语言在目标程序中的完整执行性能状况的描述,其组织形式与调用层次相匹配。A further extension of the above step S22 includes: the intermediate data is a description of the complete execution performance status of the dynamic language in the target program, and its organization form matches the calling level.
根据述的动态语言性能分析及展示方法,所述的步骤B还包括:S51,对结构化中间数据进行解释,进一步使用交互界面将解释后的结构化中间数据进行展示;S52,提供编辑界面对结构化中间数据进行查看、交互及分析;S53,与目标程序建立连接,并进行数据的同步交换,进一步,基于同步交换的数据对目标程序性能信息进行实时输出和监控。According to the dynamic language performance analysis and display method, the step B further includes: S51, interpreting the structured intermediate data, and further using an interactive interface to display the interpreted structured intermediate data; S52, providing an editing interface to View, interact and analyze the structured intermediate data; S53, establish a connection with the target program, and perform synchronous exchange of data, and further, output and monitor the performance information of the target program in real time based on the synchronously exchanged data.
对上述步骤S53的进一步扩展,其包括:提供分析器对目标程序性能信息进行分析,以及,提供调节器对目标程序性能进行实时调节。A further extension of the above step S53 includes: providing an analyzer to analyze the performance information of the target program, and providing a regulator to adjust the performance of the target program in real time.
本发明的技术方案还包括根据上述任意方法的一种动态语言性能分析及展示系统,其特征在于,该方法包括:结构化模块,用于获取目标动态语言系统,对动态语言系统进行基于动态执行和调用层次的全局采样,并生成定制的结构化中间数据;动态展示模块,用于对中间数据进行分析,通过与执行和调用关系相对应的层叠式可视化方式对该动态语言的执行性能状况进行整体的交互和分析。The technical solution of the present invention also includes a dynamic language performance analysis and display system according to any of the above methods, characterized in that the method includes: a structured module for acquiring a target dynamic language system, and performing dynamic execution on the dynamic language system based on the and global sampling of the calling level, and generate customized structured intermediate data; the dynamic display module is used to analyze the intermediate data, and analyze the execution performance status of the dynamic language through a cascading visualization method corresponding to the execution and calling relationship. Holistic interaction and analysis.
本发明的有益效果为:完整展现目标程序的运行状况,帮助系统的操作人员更好地理解目标系统的实际执行流程,尤其是一些关键性能指标情况(如运行关键点上的内存占用情况和关键业务流程的执行时间)。The beneficial effects of the present invention are: complete display of the running status of the target program, helping system operators to better understand the actual execution process of the target system, especially some key performance indicators (such as the memory occupancy and execution time of the business process).
附图说明Description of drawings
图1所示为根据本发明实施方式的总体流程图;Figure 1 shows an overall flow chart according to an embodiment of the present invention;
图2所示为根据本发明实施方式的交互图;Figure 2 shows an interaction diagram according to an embodiment of the present invention;
图3所示为根据本发明实施方式的层次化中间数据示意图;FIG. 3 is a schematic diagram of hierarchical intermediate data according to an embodiment of the present invention;
图4所示为根据本发明实施方式的操作流程图。FIG. 4 shows a flow chart of operation according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。本发明的动态语言性能分析及展示方法和系统适用于程序性能的优化。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The dynamic language performance analysis and display method and system of the present invention are suitable for program performance optimization.
图1所示为根据本发明实施方式的总体流程图。主要用于实现获取目标动态语言系统,对动态语言系统进行基于动态执行和调用层次的全局采样,并生成定制的结构化中间数据;以及,对中间数据进行分析,通过与执行和调用关系相对应的层叠式可视化方式对该动态语言的执行性能状况进行整体的交互和分析。Figure 1 shows an overall flow diagram according to an embodiment of the present invention. It is mainly used to obtain the target dynamic language system, perform global sampling of the dynamic language system based on dynamic execution and invocation levels, and generate customized structured intermediate data; The cascading visualization method of the dynamic language performs overall interaction and analysis of the execution performance of the dynamic language.
图2所示为根据本发明实施方式的交互图。其具体交互如下所示:Figure 2 shows an interaction diagram according to an embodiment of the present invention. Its specific interaction is as follows:
在正常业务的执行流程内,首先注册和锚定关键点;In the execution process of normal business, first register and anchor key points;
启动待分析的目标程序;Start the target program to be analyzed;
基于调用栈的数据采集;Data collection based on call stack;
结束目标程序;end the target program;
由监控流程对采集数据做层次化处理;The collected data is processed hierarchically by the monitoring process;
输出结果;output result;
其中启动待分析的目标程序至结束目标程序可执行多次并归并结果。Wherein, starting the target program to be analyzed and ending the target program can be executed multiple times and the results are merged.
图3所示为根据本发明实施方式的层次化中间数据示意图,示意图内容如下所述:FIG. 3 is a schematic diagram of hierarchical intermediate data according to an embodiment of the present invention, and the content of the schematic diagram is as follows:
在完整的执行序列中,包含多种待监控的目标流程,如图中列出的函数,内存代码块,宿主接口,动态语言运行时,等等;In the complete execution sequence, there are various target processes to be monitored, such as the functions listed in the figure, memory code blocks, host interfaces, dynamic language runtimes, etc.;
这些目标流程以树状结构组织,形成了完整的实际执行流程;These target processes are organized in a tree structure, forming a complete actual execution process;
图中箭头所示为每段执行流程所依赖的上一级执行流程,实践中可视为其父节点;The arrow in the figure shows the upper-level execution process that each execution process depends on, which can be regarded as its parent node in practice;
通过关键点的过滤机制,我们可以得到那些真正需要关注的运行节点及其相互之间的引用关系。Through the filtering mechanism of key points, we can get those running nodes that really need attention and the reference relationship between them.
图4所示为根据本发明实施方式的操作流程图。其具体实施步骤如下S401~S406FIG. 4 shows a flow chart of operation according to an embodiment of the present invention. The specific implementation steps are as follows S401~S406
S401,配置环境并以全局采样方式运行程序;S401, configure the environment and run the program in a global sampling mode;
S402,由预先注册于动态语言在栈操作的切面上的挂钩得到单次采样数据;S402, obtain single sampling data from hooks pre-registered in the dynamic language on the aspect of stack operation;
S403,在特定的时间点上周期性地汇总一段时期内的采样结果。并按照执行和调用关系,以层次化的方式重新组织数据,形成结构化的中间结果;S403, periodically summarize the sampling results in a period of time at a specific time point. And according to the execution and calling relationship, the data is reorganized in a hierarchical manner to form a structured intermediate result;
S404,程序执行完毕时得到整个调用树,并为该树上的每个节点生成与父节点和邻节点相关联的执行数据,进而得到基于本次运行的调用树的完整层次化数据;S404, obtain the entire call tree when the program is executed, and generate execution data associated with the parent node and the adjacent node for each node on the tree, and then obtain the complete hierarchical data of the call tree based on this operation;
S405,基于Web或本地工具集的定制窗口配置交互环境,加载并展示可交互的层次化内容;S405, configure the interactive environment based on the customized window of the Web or the local toolset, and load and display the interactive hierarchical content;
S406,用户可以整体性地缩放任意的执行区间,并查看对应的执行流程,调用关系,及对应的性能状况。S406 , the user can scale any execution interval as a whole, and view the corresponding execution flow, the calling relationship, and the corresponding performance status.
以上所述,只是本发明的较佳实施例而已,本发明并不局限于上述实施方式,只要其以相同的手段达到本发明的技术效果,都应属于本发明的保护范围。在本发明的保护范围内其技术方案和/或实施方式可以有各种不同的修改和变化。The above descriptions are only preferred embodiments of the present invention, and the present invention is not limited to the above-mentioned embodiments, as long as the technical effects of the present invention are achieved by the same means, they should all belong to the protection scope of the present invention. Various modifications and changes can be made to its technical solutions and/or implementations within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611217936.5A CN106815017B (en) | 2016-12-26 | 2016-12-26 | A 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 | A 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 | A dynamic language performance analysis and display method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106815017B (en) |
Families Citing this family (1)
| 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)
| 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 |
-
2016
- 2016-12-26 CN CN201611217936.5A patent/CN106815017B/en active Active
Patent Citations (3)
| 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 |
|---|---|---|
| US7472397B2 (en) | Method and system to correlate and consolidate a plurality of events | |
| US9093841B2 (en) | Power distribution network event correlation and analysis | |
| US20150046512A1 (en) | Dynamic collection analysis and reporting of telemetry data | |
| CN113811854B (en) | Microapp feature recommendations leveraging activity correlation across apps | |
| CN109861844A (en) | A fine-grained intelligent source tracing method for cloud service problems based on logs | |
| CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
| CN105677469A (en) | Timing task executing method and device | |
| CN111414619B (en) | Data security detection method, device, equipment and readable storage medium | |
| US10528456B2 (en) | Determining idle testing periods | |
| CN113515715A (en) | Generating method, processing method and related equipment of buried point event code | |
| CN115061895A (en) | Business process arranging method and device, electronic equipment and storage medium | |
| CN104809063A (en) | Test method and device of distributed system | |
| CN113238796B (en) | Code reconstruction method, device, equipment and storage medium | |
| CN106815017B (en) | A dynamic language performance analysis and display method and system | |
| Drebes et al. | Interactive visualization of cross-layer performance anomalies in dynamic task-parallel applications and systems | |
| US20140123126A1 (en) | Automatic topology extraction and plotting with correlation to real time analytic data | |
| CN115344501B (en) | Model testing methods, model testing devices, electronic equipment and storage media | |
| Liang et al. | Evaluating R-based big data analytic frameworks | |
| US20230018965A1 (en) | Smart Change Evaluator for Robotics Automation | |
| Falai et al. | Quantitative evaluation of distributed algorithms using the neko framework: The nekostat extension | |
| CN114490330A (en) | Method and device for generating test case | |
| Borse et al. | URCD: unsupervised root cause detection in microservices architecture with HGAN | |
| Huang et al. | An application deployment approach based on hybrid cloud | |
| Hallström et al. | Data cleaning extension on IoT gateway: An extended thingsboard gateway | |
| CN107589938A (en) | A kind of power information integrated technology Standard Service generation method and device |
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 ONLINE GAME TECHNOLOGY Co.,Ltd. Patentee before: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250429 Address after: 519080 Room 105, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province -39999 (centralized office area) Patentee after: Zhuhai Xishan Jushiyou Technology Co.,Ltd. Country or region after: China Address before: No.329 Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province Patentee before: Zhuhai Jianxin Interactive Entertainment Co.,Ltd. Country or region before: China |