A way to filter out sleeping time
ThrowerWay opened this issue ยท 1 comments
Description
Hello, it would be nice to see how much actual cpu active time is spent by each thread, as in, not sleeping, a way to filter out wait/sleep calls would be nice, for example:
java.lang.Object.wait()
jdk.internal.misc.Unsafe.park()
java.util.concurrent.TimeUnit.sleep()
libpthread-2.31.so.__pthread_cond_timedwait()
java.util.concurrent.locks.LockSupport.park()
java.util.concurrent.locks.Condition.await()
etc.
Proposed Behaviour
A button in the spark web GUI to filter out certain methods from the tree, like the search bar but in reverse
Extra Details
No response
I believe this is also relevant for MCMT mod where ticks are run in parallel causing a lot of CPU time waiting on locks. I wonder if there is a way to filter out things like java.util.concurrent.Phaser.arriveAndAwaitAdvance()
, java.util.concurrent.ThreadPoolExecutor.getTask()
etc which is basically waiting for other threads.