Include frame-pointer to improve epoll flamegraph tracing
Motivation: When attempting to flamegraph netty w/ epoll it was noticed the stacks are lost going from java to epoll lib. Modifications: added the -fno-omit-framepointer flag to compiler flags to ensure the fp is kept intact Result: Flamegraphs will now show native code in the same stack as java code using perf-java-flames
This commit is contained in:
parent
002c99e751
commit
8d664fa0fd
@ -199,7 +199,7 @@
|
|||||||
<value>${linux.sendmmsg.support}${glibc.sendmmsg.support}</value>
|
<value>${linux.sendmmsg.support}${glibc.sendmmsg.support}</value>
|
||||||
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
||||||
<regex>.*IO_NETTY_SENDMSSG_NOT_FOUND.*</regex>
|
<regex>.*IO_NETTY_SENDMSSG_NOT_FOUND.*</regex>
|
||||||
<replacement>CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror</replacement>
|
<replacement>CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror -fno-omit-frame-pointer</replacement>
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
<failIfNoMatch>false</failIfNoMatch>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
@ -215,7 +215,7 @@
|
|||||||
<value>${jni.compiler.args.cflags}</value>
|
<value>${jni.compiler.args.cflags}</value>
|
||||||
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
<!-- If glibc and linux kernel are both not sufficient...then define the CFLAGS -->
|
||||||
<regex>^((?!CFLAGS=).)*$</regex>
|
<regex>^((?!CFLAGS=).)*$</regex>
|
||||||
<replacement>CFLAGS=-O3 -Werror</replacement>
|
<replacement>CFLAGS=-O3 -Werror -fno-omit-frame-pointer</replacement>
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
<failIfNoMatch>false</failIfNoMatch>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
Loading…
Reference in New Issue
Block a user