zoukankan      html  css  js  c++  java
  • arthas命令trace追踪方法链路

    1.curl -O https://arthas.aliyun.com/arthas-boot.jar

    2.java -jar   arthas-boot.jar

    3.分析代码中的方法 - trace - 方法内部调用路径,并输出方法路径上的每个节点上耗时

    trace cn.com.do1.summit.cms.core.service.schedules.impl.ScheduleServiceImpl infoOther -v -n 5 --skipJDKMethod false '1==1'
    
    
    trace cn.com.do1.summit.cms.core.service.guest.impl.GuestServiceImpl listByIds -v -n 5 --skipJDKMethod false '1==1'
    
    
    watch cn.com.do1.summit.cms.core.service.guest.impl.GuestServiceImpl listByIds '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'
    
    
    trace cn.com.do1.qiqiao.component.redis.RedisUtil setEx -v -n 5 --skipJDKMethod false '1==1'
    
    
    watch cn.com.do1.qiqiao.component.redis.RedisUtil setEx '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'
    
    
    watch cn.com.do1.qiqiao.webhook.client.GeneralFormClient getFormDocumentsByModelCodeAndIds '{params,returnObj,throwExp}' -v -n 5 -x 3 '1==1'
    
    
    trace cn.com.do1.summit.cms.core.service.schedules.impl.ScheduleServiceImpl infoOther -v -n 5 --skipJDKMethod false '1==1'
    
    
    trace cn.com.do1.summit.cms.core.service.schedules.impl.ScheduleTypeServiceImpl infoCache -v -n 5 --skipJDKMethod false '1==1'
  • 相关阅读:
    POJ 1306.Combinations
    HDU 5640.King's Cake
    HDU 1072.Nightmare
    HDU 2717.Catch That Cow
    HDU 1372.Knight Moves
    HDU 1548.A strange lift
    AOJ 802.运输宝物
    AOJ 794.西瓜理发记(二)
    AOJ 793.西瓜理发记(一)
    AOJ 789.买酒
  • 原文地址:https://www.cnblogs.com/hixiaowei/p/14123847.html
Copyright © 2011-2022 走看看