Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7574119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:21:23+00:00 2026-05-30T16:21:23+00:00

I am trying to time the performance of code in package com.company.somemodule (has class

  • 0

I am trying to time the performance of code in package “com.company.somemodule” (has class R1, R2,..), as well as code in the subpackages,

  • com.company.somemodule.subPackageA (has classes A1, A2,..)
  • com.company.somemodule.subPackageB

I wrote the pointcut similar to the following. I am able to view the running time for classes A1, A2, but I am unable to view the running time for classes R1, R2, etc.

<bean id="timingAdvice"
      class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor" />
<aop:config>
    <aop:advisor
    pointcut="execution(* com.company.somemodule..*.*(..)) OR 
              execution(* com.company.somemodule.*.*(..))"
    advice-ref="timingAdvice" />
</aop:config>

Please could anyone help? Thanks in advance.

P.S.: I have already tried following the suggestions posted here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:21:24+00:00Added an answer on May 30, 2026 at 4:21 pm

    I don’t see any error in your pointcut at first glance, but I think what you need is easier done with a combination of the “within” pointcut expression and the “execution” expression.

    Try something like this:

    pointcut="within(com.company.somemodule..*) AND 
                  execution(* *(..))"
    

    This is a pointcut for method execution for all methods in the package com.company.somemodule.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to time the performance of my program by using System.currentTimeMillis() (or alternatively
I am trying to improve the performance of the threaded application with real-time deadlines.
I'm just trying to time a piece of code. The pseudocode looks like: start
I am trying to performance test some code. I am using a stopwatch. When
I am trying to figure out the performance of my code, but I do
I have a class that is a core component of a performance sensitive code
I'm rewriting some code to improve tableview performance. I'm trying to implement the dequeueReusableCellWithIdentifier
First time trying to deal with users logging in with ASP.net and haven't had
I spent some time trying to figure out why this query isn't pulling the
I've had a hard time trying to find good examples of how to manage

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.