发明名称 System and method for instrumenting application class files
摘要 <p>The present invention is directed to a system and method for modifying a class file for the purpose of instrumenting without requiring separate files to correlate the instrumentation. A class file is instrumented with hooks. Each hook is injected in a method at a critical point in the code for tracking path flow, such as where the method will be entered or exited. Each hook includes an identifier to identify for the method in which it is injected. Rather than using the method's name, hooks use unique major and minor codes to identify the method. Static initializers are declared for the class to output other hooks identifying the methods being instrumented. When a class is loaded, the static initializers are executed and hooks identifying the method name and the major and minor codes for each instrumented method are output to, for instance, a trace record. Then, when a method is entered or exited, the hooks identifying the entry or exit are also outputted to a trace record. When postprocessing the trace records, class and instrumentation correlation information is available for merging from trace records in the trace stream. </p>
申请公布号 EP1174796(A3) 申请公布日期 2007.11.07
申请号 EP20010000210 申请日期 2001.06.13
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 BERRY, ROBERT FRANCIS;GU, WEIMING;HUSSAIN, RIAZ Y;LEVINE, FRANK ELIOT;WONG, WAI YEE PETER
分类号 G06F11/34;G06F9/44;G06F11/36 主分类号 G06F11/34
代理机构 代理人
主权项
地址