I would like to profile my scala spark applications to identify the parts of the code that I need to optimize. I included -Xprof in --driver-java-options, but that doesnβt help me much since it gives a lot of detailed details. I'm just curious to know how long it takes to call each function in my application. Like other stackoverflow related questions, many people have suggested YourKit, but it's not inexpensive. Therefore, I would like to use something that is not expensive, actually free.
Are there any better ways to solve this problem?
source share