I'm profiling application with btrace and faced with limitation. I try to get a name of current java.lang.Thread
. Normaly you can call getName()
but it's forbidden in btrace-scripts (any calls exception BTraceUtils
).
Is there any idea how to get String from char[]
?
The original task is check if name of thread contains sub-string and only then log out tracing info (reducing output).