Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Runtime/Dynamic pointcuts
Runtime/Dynamic pointcuts [message #597038] Wed, 25 June 2008 13:14
Paul is currently offline PaulFriend
Messages: 55
Registered: July 2009
Member
We've noticed a performance drop in one of our applications when using
code woven with aspects (using aspectj 1.5 or 1.6) and resolved it down to
the cflow point cut.

We need the trace generated so can't really remove cuts but one thing I
was looking to do was see if there is a way for a pointcut to make a java
call instead i.e. if trace is off then there's no point in running any of
the other point cuts i.e.
Before :
pointcut publicMethods (execution (public * com.ab.b.d.*.*(..));
before() : cflowbelow(publicMethods()) {
// Do some tracing....
}
after() returning : cflowbelow(publicMethods()) {
// Do some trace.....
}

After
pointcut publicMethods (execution (public * com.ab.b.d.*.*(..));
pointcut isTracingOn (.........);
before() : isTracingOn(...) && cflowbelow(publicMethods()) {
// Do some tracing....
}

The end result would be that isTracingOn() would resolve to false and
other pointcuts are not checked/executed thus cflowbelow doesn't run....

OR is there a way to dynamically turn off aspects in woven code i.e. they
never get evaluated, so there should be zero performance difference
between running unwoven code and code woven but the aspects turned off.
Previous Topic:When will pde support be added?
Next Topic:Why is not AJDT looking in the plugin dependencies ?
Goto Forum:
  


Current Time: Thu Apr 18 13:44:30 GMT 2024

Powered by FUDForum. Page generated in 0.01775 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top