Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Profiling Public Interface of an API

    Hi,

     I have 1 very big Java EJB library lib1 and a
consumer Web library lib2 which consumes lib1 through
public interface of lib1. lib1 can be built/compiled
without lib2. What I want is to profile/trace with
AspectJ all the calls from lib2 through lib1(the
public interface of lib1). Until now I concentrated(I
compiled) myself just on lib1 writting all kind of
pointcut trying to get all calls to public interface
of lib1 but without many succes(because sometimes lib1
makes calls also to lib1 and I am not intersted in
that ones). Just today I realised that the best
aproach is to compile with aspectj lib2 and to catch
there call to lib1(because finally this is what I am
intersted to profile the public interface of lib1). Is
that true? The problem is that I already wrote the
profiling code in lib1 and it could be not so easy to
move it to lib2?
Can I compile somehow with aspectj also lib1 & lib2
and 
to continue to keep the pointcuts code in lib1 and
from there to say that I am intersted of call from
lib2 to lib1? Is this possible with AspectJ?

Thanks in advance,
Virgil 
  

--- aspectj-users-request@xxxxxxxxxxx wrote:

> Send aspectj-users mailing list submissions to
> 	aspectj-users@xxxxxxxxxxx
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
> 
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> or, via email, send a message with subject or body
> 'help' to
> 	aspectj-users-request@xxxxxxxxxxx
> 
> You can reach the person managing the list at
> 	aspectj-users-owner@xxxxxxxxxxx
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of aspectj-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: aspectj-users Digest, Vol 13, Issue 50
> (mg@xxxxxx)
>    2. Re: Re: AspectJ profiling (Mohan
> Radhakrishnan)
>    3. Re: load-time weaving issue (Matthew Webster)
>    4. test (Oliveira, Nuno (ext))
>    5. Re: load-time weaving issue (Brian Ericson)
>    6. cflowid generation and use (eight ball)
> 
> 
>
----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 17 Mar 2006 10:38:21 +0100
> From: mg@xxxxxx
> Subject: [aspectj-users] Re: aspectj-users Digest,
> Vol 13, Issue 50
> To: aspectj-users@xxxxxxxxxxx
> Message-ID: <43E4B69600E3D940@xxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-15
> 
>   -----  The following is an automated response
>   -----  to your message generated on behalf of
> mg@xxxxxx
> 
> 
> Morten Grum is out of office until 30. November
> 2005.
> 
> www.phc.dk
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 17 Mar 2006 15:38:28 +0530
> From: "Mohan Radhakrishnan"
> <radhakrishnan.mohan@xxxxxxxxx>
> Subject: Re: [aspectj-users] Re: AspectJ profiling
> To: aspectj-users@xxxxxxxxxxx
> Message-ID:
> 
>
<ed614fc80603170208k789f4bexeb8d68d709ba652b@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> The latest issue of IBM developerworks newsletter
> has an article on this.
>
http://www-128.ibm.com/developerworks/java/library/j-jip/?ca=dnw-709
> 
> Mohan
> 
> 
> On 3/14/06, Raphael Paiva
> <raphamonticello@xxxxxxxxxxxx> wrote:
> >
> > Thanks to Kamal and Ramnivas,
> > With examples I build my profiling implementation
> :)
> >
> >
> >
> > Kamal Govindraj escreveu:
> >
> >  Someone have a simple Profiling implemented with
> AspectJ?
> >
> >
> >
> > You can take a look at InfraRED
> (http://infrared.sourceforge.net) which uses
> > AspectJ (or aspectwerkz) to implement a Profiling
> tool for J2EE
> > applications.
> >
> > Regards,
> > Kamal
> > _______________________________________________
> > aspectj-users mailing
>
listaspectj-users@eclipse.orghttps://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> >
>
_______________________________________________________
> Yahoo! Acesso
> > Gr�tis - Internet r�pida e gr�tis. Instale o
> discador agora!
> > http://br.acesso.yahoo.com
> >
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> >
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://eclipse.org/pipermail/aspectj-users/attachments/20060317/c1cebde7/attachment.html
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 17 Mar 2006 10:57:17 +0000
> From: Matthew Webster <matthew_webster@xxxxxxxxxx>
> Subject: Re: [aspectj-users] load-time weaving issue
> To: aspectj-users@xxxxxxxxxxx
> Message-ID:
> 
>
<OF1F0AC105.09FDEBAC-ON80257134.0039650D-80257134.003C291F@xxxxxxxxxx>
> Content-Type: text/plain; charset="us-ascii"
> 
> Brian,
> 
> - Have you used Runtime retention 
>
(http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-pointcuts-and-advice.html#runtime-type-matching-and-context-exposure)?
> - Could you use -verbose and/or -showWeaveInfor and
> post the results
> - It might be helpful to include some source code
> rather than just a 
> description
> 
> Cheers
> 
> Matthew Webster
> AOSD Project
> Java Technology Centre, MP146
> IBM Hursley Park, Winchester,  SO21 2JN, England
> Telephone: +44 196 2816139 (external) 246139
> (internal) 
> Email: Matthew Webster/UK/IBM @ IBMGB,
> matthew_webster@xxxxxxxxxx
> http://w3.hursley.ibm.com/~websterm/
> Please respond to aspectj-users@xxxxxxxxxxx 
> Sent by:        aspectj-users-bounces@xxxxxxxxxxx
> To:     aspectj-users@xxxxxxxxxxx
> cc:      
> Subject:        [aspectj-users] load-time weaving
> issue
> 
> 
> While I sleep on this, I'm wondering if anyone has
> seen an issue where 
> AspectJ is incompletely weaving classes when using
> load-time weaving...
> 
> I have three annotations @A, @B, and @C.  I have
> three @Aspects 
> (AAspect, BAspect, and CAspect) that each utilize
> @DeclareParents to add 
> interfaces/implementations to annotated classes. 
> Here's what happens 
> when I annotate the same class as follows:
> 
> @A --> gets ifc/impl from AAspect, as expected
> @B @C -> gets ifcs/impls from BAspect, CAspect, as
> expected
> @A @B -> gets only ifc/impl from BAspect (what
> happened to @A?!)
> @A @C -> gets only ifc/impl from CAspect (again,
> what happened to @A?)
> 
> Also, is it expected that, regardless of the
> combinations I use, 
> MyClass.class.getAnnotations() returns nothing (that
> is, an empty array)?
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://eclipse.org/pipermail/aspectj-users/attachments/20060317/db38e3c8/attachment.html
> 
> ------------------------------
> 
> Message: 4
> 
=== message truncated ===



Back to the top