The application discloses a service capability tracking method based on compiling period
bytecode analysis, belongs to the technical field of API calling management, and is used for solving the problem of insufficient
perception of API calling conditions of a
client by a
server. The method comprises the following steps: a
bytecode acquisition module acquires
bytecode files in compiling products in a compiling process of a user-side application program and delivers the bytecode files to a bytecode analysis module; the bytecode analysis module performs
iterative analysis on the bytecode files, identifies classes, methods and method calling instructions, analyzes calling behaviors of the
client on API capabilities of the
server from the bytecode level, extracts API service capability calling information, and delivers the API service capability calling information to a service capability recording module; and the service capability recording module arranges the API service capability calling information, and generates
tracking data files used for representing corresponding relationships between the
client and API service capabilities. Effects: the
server can acquire calling information of various API capabilities of the client, and thus effective
perception and management of API using conditions can be realized.