What is profiling and how can I profile my Java program?

I heard a lot about profiling. What is it all about? As far as I understand, this is some kind of performance measurement, but someone can clarify this more clearly so that a beginner can understand this idea. In addition, I am using the Eclipse IDE for my Java program. Can I profile my program using the Eclipse IDE? What factors should be considered when profiling (I mean best practices)?

+5
source share
4 answers

Profiling basically shows you how often a given line of code is executed and how much time was spent on it (compared to other lines). This makes it easy to determine the location where your code spends most of its time.

It also allows you to find places where your code spends a lot of time without doing anything: this is a typical cache miss sign and you should activate here.

(, 90%) . , . . , , : , , 10%, 10% ( !). , , , 90% , .

, , .

Eclipse , , , , - .

+6

, , .

+1

YourKit - Java Eclipse. , , Java.

0
source

From the little research I did to profile Java with Eclipse, you can use JProfiler . I never got much more than installing it, and despite this, I quickly grabbed my nose.

-1
source

All Articles