A method for controlling a byte code transformer on detection of completion of an asynchronous command

    公开(公告)号:GB2530527A

    公开(公告)日:2016-03-30

    申请号:GB201416892

    申请日:2014-09-25

    Applicant: IBM

    Abstract: A byte code transformer 205 typically for instrumentation of Java (RTM) bytecode is modified on completion of an asynchronous command, e.g. an instruction to start an application. The command is received, by an asynchronous command manager 202, from a test framework 235. The manager issues the command to an application 225 (310, fig. 3B). A byte code transformer 205 is loaded (315, fig. 3B), for transforming byte code associated with the application, in order to output (to log or to trace) one or more method names and associated timestamps for the method entry and exit points (fig. 6B). A checking routine (320, fig. 3B) checks whether an expected result has been generated by the application, e.g. a port has been opened or a log entry generated. If an expected result has been generated then a time period associated with the generation is compared with the timestamps in order to determine matching timestamps and associated matching method names. The transformer is modified in accordance with the matching method names such that subsequent iterations of the transformation execute on byte code associated only with matching method names: normally a subset of method names from the previous iteration.

Patent Agency Ranking