Performance analysis has always been an afterthought during the application development process, focusing on application correctness first. The learning curve of the existing static and dynamic analysis tools are steep, which requires understanding low-level details to interpret the findings for actionable optimizations. Additionally, application performance is a function of an infinite number of unknowns stemming from the application-, runtime-, and interactions between the OS and underlying hardware, making it difficult, if not impossible, to model using any deep learning technique, especially without a large labeled dataset. In this paper, we address both of these problems by presenting a large corpus of a labeled dataset for the community and take a comparative analysis approach to mitigate all unknowns except their source code differences between different correct implementations of the same problem. We put the power of deep learning to the test for automatically extracting information from the hierarchical structure of abstract syntax trees to represent source code. This paper aims to assess the feasibility of using purely static information (e.g., abstract syntax tree or AST) of applications to predict performance change based on the change in code structure. This research will enable performance-aware application development since every version of the application will continue to contribute to the corpora, which will enhance the performance of the model. Our evaluations of several deep embedding learning methods demonstrate that tree-based Long Short-Term Memory (LSTM) models can leverage the hierarchical structure of source-code to discover latent representations and achieve up to 84% (individual problem) and 73% (combined dataset with multiple of problems) accuracy in predicting the change in performance.
翻译:在应用开发过程中,绩效分析总是事后思考,首先侧重于应用的正确性。现有静态和动态分析工具的学习曲线非常陡峭,需要理解低层次细节才能解释可操作优化的结果。此外,应用程序性能是应用-运行时间和操作系统与基本硬件互动产生的无限数量未知的函数,使得使用任何深层学习技术进行模型化很困难,甚至甚至不可能,特别是没有大标记的数据集。在本文中,我们通过为社区提供大量标签数据集来解决这两个问题,并采用比较分析方法来减少除源代码差异以外的所有未知数据,以解释可操作优化。此外,我们把深层学习的力量放在测试中,从抽象合成词树的等级结构中自动提取信息,以代表源代码。本文旨在评估使用纯静信息(例如,抽象合成树或AST)的可行性,以根据代码结构的变化预测绩效变化。这一研究将使得业绩-认知的多层代码差异化应用能够加强每个版本的运行周期性数据结构。我们每个版本的运行周期性平底级模型将显示我们的学习方法。