美文网首页troubleshooting整理
btrace线上定位问题

btrace线上定位问题

作者: andersonoy | 来源:发表于2017-07-01 14:00 被阅读0次

    开发环境可以local debug,测试环境可以remote debug,线上环境只能看看log了, debug肯定不行,如果日志打印的不好或没有打印堆栈把堆栈吃了,此时btrace可以提供帮助了;

    • github地址
    • 用法
      • btrace <pid> <btrace_script>
    • 简单例子
      • 每次执行完f1后,打印 “Hello BTrace”
      • remote示例
      • btrace脚本
    • btrace目录结构

    http://www.iteye.com/topic/1005918
    http://blog.csdn.net/conquer0715/article/details/51781206
    http://blog.csdn.net/moneyshi/article/details/60880642
    http://blog.csdn.net/qyongkang/article/details/6090497
    http://agapple.iteye.com/blog/962119?spm=5176.100239.blogcont14664.8.FFwSxn

    相关文章

      网友评论

        本文标题:btrace线上定位问题

        本文链接:https://www.haomeiwen.com/subject/evnwcxtx.html