| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
8年前发布

查看Go程序运行分析数据的可视化界面:gom

gom

gom - 一个查看Go程序运行分析数据的可视化界面。

gom screenshot

Installation

go get github.com/rakyll/gom/cmd/gom

The program you're willing to profile should import the github.com/rakyll/gom/http package. The http package will register several handlers to provide information about your program during runtime.

import _ "github.com/rakyll/gom/http"    // If your application is not already running an http server, you need to start one.  log.Println(http.ListenAndServe("localhost:6060", nil))

Now, you are ready to launch gom.

$ gom
  • :c loads the CPU profile.
  • :h loads the heap profile (default profile on launch).
  • :r refreshes the current profile.
  • :s toggles the cumulative sort and resorts the items.
  • ← and → to paginate.
  • :f=<regex> filters the profile with the provided regex.

Goals

  • Building a lightweight tool that works well with runtime profiles is a necessity. Over the time, I recognized that a lot of people around me delayed to use the existing pprof tools because it's a tedious experience.
  • gom has no ambition to provide the features at the granularity of the features of the command line tools. Users should feel free to fallback to go tool pprof if they need more sophisticated features.
  • Allow users to filter, hide and ignore by symbol names.
  • Increase the awareness around profiling tools and packages in Go.
  • Provide additional lightweight stats where possible.

Minor Goals

  • gom should provide interfaces to let the users to export their profile data and continue to work with the go tool.
  • Allow users to work with their custom user profiles.
  • Make it easier to generate pprof graphical output.

项目地址: https://github.com/rakyll/gom

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1451981421605.html
gom Google Go/Golang开发