Font Size: a A A

A Java Source Instrumentation Language And Supporting Tool

Posted on:2013-08-05Degree:MasterType:Thesis
Country:ChinaCandidate:Y J TaoFull Text:PDF
GTID:2248330371487903Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Instrumentation plays an important role in software testing and program dynamic analy-sis.However, current instrumentation implementations require programmers to write differ-ent instrumentation modules for different programs.These modules are complex, and hard to maintain and reuse.We divide the task of instrumentation into two steps:firstly, the source points are queried, into which code fragments should be planted; secondly, the code fragments including con-textual information are generated and planted into source code through the queried points. According to this idea, we present a new method named JIns,based on declarative code queries, which makes it easier to specify instrumentations using contextual information col-lected from expressive code queries.This paper has addressed the follow issues:· How to provide a general way to locating the instrumentation points?The JIns is based on code query technology. It has provided a new query language which based on first-order predicate logic.It supports to specify information about five kinds of program elements:classes,interfaces,methods,statements and objects.The command of locating the instrumentation points is like a SQL query command, which easy to learn and use.· How to construct different instrumentation statements according different instrumen-tation points? The JIns has provided an instrumentation template with parameters which can finish the context-sensitive instrumentation.The parameters in templates will be replaced by the information which can be got from locating process.· How to find which instrumentation is the most time costly? This paper has provid-ed a series of instrumentation templates for JIns which can record run time of each instrumentations.Users can find which instrumentation cost the most time.
Keywords/Search Tags:Instrumetations, Testing, Program Dynamic Analysis
PDF Full Text Request
Related items