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

  • SEARCH
  • Home
  • 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 6732757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:41:17+00:00 2026-05-26T10:41:17+00:00

I’ve recently found that a program I’ve written is surprisingly slow, and in an

  • 0

I’ve recently found that a program I’ve written is surprisingly slow, and in an attempt to fix it I would like to profile it. My tools of choice so far have been Yourkit and hprof, yet I haven’t been able to find the functionality I seek in either.

Ideally, I would like a MATLAB Profiler style heat-map for all my source files, with stronger colors indicating more time was spent in that line. I realize this is a lot to ask, so if it doesn’t exist I won’t be surprised.

If the above isn’t possible, what I would like is to be able to perform hprof cpu=samples style profiling, but instead of spitting out a list of ALL methods of all classes executed in the project, I would like to be able to exclude namespaces (eg: java., scala.collection.) and have any time attributed to those methods to be reattributed to the lowest level in the stack where a method was called NOT in the excluded namespace. For example, if I have something like the following

def sillyMethod: Unit = {
   0.until(1000000).map{ i => 
      (0 until 1000).toSeq + 1) ==  ( 0 until 1000).toSeq + 2 )
   }
}

I would much rather know that all my time is spent in sillyMethod, not in Seq.equals. Is this possible with any available profiler?

EDIT: I am currently using sbt to execute my commands and IntelliJ IDEA for actual editing.

  • 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-26T10:41:17+00:00Added an answer on May 26, 2026 at 10:41 am

    I haven’t looked at yourkit in a very long time, but I would be surprised if its profiler wasn’t able to exclude packages or restrict profiled packages. The JVM actually ships with a profiler that isn’t so bad. visualvm is included with the jdk. Notice the second screenshot on the profiling page has a section at the bottom for “profile only classes” so if you put only your package in there you won’t profile anything else, or you can go deeper to only profile specific packages or classes.

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

Sidebar

Related Questions

I would like to count the length of a string with PHP. The string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a

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.