I'd like to measure how much time my app spends in the database.
I've added the CPU Profiler to Intellij's Settings / Build / Java Profiler, but by default it shows the code with most CPU cycles, which is useless for me since the JDBC driver basically sleeps while the response is received.
Sounds like Wall-clock profiling is the way to go, however I don't know how to enable that in Intellij's CPU Profiler configuration window. The README says -e wall
, while Intellij's Agent Options look totally different: threads,interval=1ms,framebuf=15000000
. How can I configure Intellij's Async Profiler to use Wall-clock please?