how to detect the aop time when using arthas trace command

1 day ago 3
ARTICLE AD BOX

I am using arthas https://github.com/alibaba/arthas to tracing the function time, this is the command look like:

trace com.baomidou.mybatisplus.core.mapper.BaseMapper selectOne -n 5 --skipJDKMethod false -m 900

this is the output:

--ts=2026-04-28 13:26:10.402;thread_name=http-nio-12214-exec-4:id=231;iis_daemon=true;priority=5;TCCL=org.springframework.boot.web.bee.mbedded.tomcat.TomcatEmbeddedWebappClassLoader@3ed6437b --[47.5292ms] com.baomidou.mybatisplus.core.mapper.BaseMapper::selectOne() --[99.83% 47.4138ms ] com.baomidou.mybatisplus.core.mapper.BaseMapper::selectOne() #211 --[99.92% 47.3757ms ] com.baomidou.mybatisplus.core.mapper.BaseMapper::selectList() #222 --[0.01% 0.0038ms ] java.util.List::size() #223

when I tracing the selectlist function in deeper implemention DefaultSqlSession.class , the selectlist only takes 9ms. this contains many AOP function between the function invoke. is it possible to using arthas to tracing the AOP function? their may contains many intercepter between the function invoke.

Read Entire Article