-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LTW verbose to print summary #142
Comments
It is hard to know the end of LTW as we don't know when you have finished loading classes. But there is something you can use that periodically can print matching info: It doesn't quite print number of classes but does present time spent matching point cuts against join points - messages could be extended with types woven in addition to join point match counts. I haven't used it in a long time but I don't see why it wouldn't still be working. |
Can I access stats from user code? org.aspectj.Stats.getTotalCount() org.aspectj.Stats.getTotalTime() ? |
I do not know those AJC options or the code dealing with them, but actually the question is interesting enough to look into it. You cannot easily access the stats, because they are stored in the private static inner class Right above that inner class, you see two public methods recording the stats: In method For the message handler, there are public getter and setter methods in So, assuming that you can get hold of a If all you wanted is a weaver which is not silent for 2 minutes and see some progress, because that makes you feel better, you can just use the logging option out of the box and maybe lower the logging frequency, if you think the log messages should appear more frequently. |
@abelom, 4 months have passed. Did you try anything along the ideas I sketched here? |
We are using LTW on a large codebase and even with verbose output we get about two minutes of silence on start-up between last aspectj info message and start of our user space output
It would be nice for AspectJ agent to print some message with timestamp at the end of LTW. Maybe total number of classes weaved and total time spend?
The text was updated successfully, but these errors were encountered: