dshgdhdfcas30210 2019-04-24 00:23
浏览 287
已采纳

golang pprof堆计数的含义

Description

I try to use pprof to profile my programme, and i am using

import _ net/http/pprof to add /debug/pprof endpoints in my service.

access in browser:

http://ip:port/debug/pprof/

then i will have the following page:

debug-pprof-heap

Everytime when i try to refresh this page, the number in the boxes keep increase!!

When i follow the link: http://ip:port/debug/pprof/heap?debug=1

i will see the following:

debug-pprof-heap-detail

the 4 numbers here :

2508: 273338776 [4733405: 12257136096]

means inuse_objects: inuse_space [all_objects: alloc_space], am i right?

Question

What do this two numbers in boxes actually mean?

Does the "heap count" has any relation with the inuse_objects ?

  • 写回答

1条回答 默认 最新

  • dsqa6272 2019-04-24 00:39
    关注

    Inspecting the template for the index page shows that the count is produced by pprof.Profile.Count:

    Count returns the number of execution stacks currently in the profile.

    In other words, the index page shows the number of samples that have been collected for each type of profile so far. They are not related to any particular metric, such as inuse_objects or inuse_space.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥30 vue3使用@imgly/background-removal给图片去除背景
  • ¥60 一组二维图片转化成三维坐标,图片为种子虫道切片希望能三维重构提现虫道并且完成的那个虫道距离计算
  • ¥15 从mysql导入数据到hive
  • ¥15 海康视频线上无法正常播放
  • ¥15 MATLAB程序问题
  • ¥15 Finbert中文模型
  • ¥15 python爬虫 国际社交媒体平台数据获取
  • ¥15 win7下的“兼容性文件”功能实现
  • ¥15 FreeNAS 部署SAN架构存储
  • ¥15 CUDA_ERROR_NOT_PERMITTED请问这个报错是什么问题,哭了