I'm new about Scala and large dataset programming. I need to use a profiler in a local environment, in order to inspect which operation/function is too slow in my Scala code, I tried a Spark UI both in local node and in a cluster environment, but it's not sufficient. The problem is that my code is a Scala "script", or better it is only a sequence of code lines executed directly in a spark-shell.
All common profilers require well structured Scala code in order to generate a jar file and run the jar file to attach the profiler agent. I don't know where to search. Any ideas? Is it possible or not?