2. The method according to claim 1 , wherein identifying the plugin position in the target code further comprises: analyzing syntax of the target code block and generating the first AST reflecting the structure of the target code block based on the analysis; scanning the first AST and identifying a plugin position on the first AST that corresponds to a function entry and exit position in the target code block; and identifying the plugin position in the target code block based on the plugin position identified on the first AST.
2. The method according to claim 1 , wherein identifying the plugin position in the target code further comprises: analyzing syntax of the target code block and generating the first AST reflecting the structure of the target code block based on the analysis; scanning the first AST and identifying a plugin position on the first AST that corresponds to a function entry and exit position in the target code block; and identifying the plugin position in the target code block based on the plugin position identified on the first AST. 3. The method according to claim 2 , wherein inserting a plugin code into the first AST based on the plugin position and generating a second AST reflecting the target code block after the plugin code has been inserted further comprises: acquiring a preconfigured plugin code; inserting the preconfigured plugin code into the first AST based on the plugin position on the first AST that corresponds to the function entry and exit position in the target code block; and generating the second AST reflecting the structure of the target coded after the plugin code has been inserted.