Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala Profiler?

There's a question from ~2 years back about a profiler for Scala, but after trying to use Java's VisualVM myself for a while, I find its compatibility with the Scala v2.9.0 bytecode lacking (particularly, the CPU profiling functionality). There's a huge flurry of error messages having to do with anonymous classes, so instead of trying to fight it I was wondering if there were any other profilers ready for Scala 2.9?

like image 243
duckworthd Avatar asked Aug 30 '11 08:08

duckworthd


People also ask

What is JVM Profiler?

A Java Profiler is a tool that monitors Java bytecode constructs and operations at the JVM level. These code constructs and operations include object creation, iterative executions (including recursive calls), method executions, thread executions, and garbage collections.

What is async profiler?

Async-profiler is a program that enables continuous monitoring and profiling of Java applications. Once switched on, it monitors several performance metrics of a Java app and saves them to a file. The data can be conveniently viewed in the form of a flame graph (Fig. 1).

What is JProfiler tutorial?

JProfiler is a full-featured Java profiling tool (profiler) dedicated to analyzing J2SE and J2EE applications. JProfiler's intuitive GUI helps you find performance bottlenecks, pin down memory leaks and resolve threading issues. JProfiler provides many IDE integration and application server consolidation.


1 Answers

There's a huge flurry of error messages having to do with anonymous classes, so instead of trying to fight it

AFAIK, Scala uses exceptions for flow control: see this. Moreover, in that theme Yourkit recommended for Scala profiling. (Personally, I've used it only with Java code and Yourkit was quite nice).

UPDATE

Now there is also HeapAudit developed with respect to scala.

like image 107
om-nom-nom Avatar answered Oct 15 '22 10:10

om-nom-nom