zoukankan      html  css  js  c++  java
  • netflix flamescope 方便的不同时间范围的火焰图查看工具

    flamescope 是netflix 开源的方便的火焰图查看工具,我们可以选择不同时间范围的数据,方便分析调用链

    环境准备

    使用docker-compose运行,基于官方的dockerfile 创建构建了一个docker 镜像 dalongrong/flamescope

    • docker-compose 文件
    version: "3"
    services: 
      flamescope:
         image: dalongrong/flamescope
         ports: 
         - "5000:5000"
         volumes: 
         - "./profiles:/profiles"
    • 简单说明
      profiles 文件存放了,需要分析的调用链文件

    启动&&使用

    • 生成简单的测试文件
    perf record -F 49 -a -g -- sleep 120
    perf script --header > stacks.myproductionapp.2018-03-30_01

    文件放profiles 目录

    • 说明
      为了测试,我已经放了官方的几个测试文件
    • 启动
    docker-compose up -d
    • 访问效果

    打开 http://localhost:5000


    选择要分析的文件


    选择开始位置以及结束位置,查看火焰图

    说明

    flamescope 工具很方便,提供了便捷的火焰图web 端查看分析

    参考资料

    https://github.com/rongfengliang/flamescope-docker-compose-running
    https://github.com/Netflix/flamescope

  • 相关阅读:
    测光
    闪光灯
    快门
    光圈
    白加黑减
    曝光补偿
    取景雷区
    着眼点
    Web中的无状态含义
    图计算模型[转]
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/11350847.html
Copyright © 2011-2022 走看看