Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Enhancement
What this PR does / why we need it?
A pre-filter mechanism has been added.
(1) First, before starting the application in the production environment, let the host application mount sermant-agent in the test environment or pre-production environment and run it once and turn on the pre-filter switch. This will generate a txt file containing the class names that do not need to be matched and enhanced in the host application.
(2) When the production environment is officially running, sermant-agent will obtain the class name file in step 1 and ignore them in the matching filter of bytecode enhancement to save startup time.
Since the classes that need to be enhanced only occupy a very small part, this method can filter out most of the classes and save a lot of matching time.
modify some log print logic and optimize some process logic of loading agent
Which issue(s) this PR fixes?
Fixes #1541
Does this PR introduce a user-facing change?
No
Checklist