摘要 |
The invention discloses a method, a device and a system for acquiring program performance consumption information. The method includes: receiving an analysis command carrying to-be-analyzed target information, and determining a to-be-analyzed method according to the to-be-analyzed target information; searching byte codes of the to-be-analyzed method from loaded classes of a to-be-analyzed process, and performing byte code enhancement on the to-be-analyzed method through a byte code manipulation frame; according to information recorded at a specific location, computing a performance consumption analysis result of each to-be-analyzed method related in each calling process. By the method, device and system, the operation process that users insert the codes manually can be avoided, the range of byte code enhancement can be controlled, and influence on actual business program run is lowered. |