dshgdhdfcas30210 2019-04-24 08: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 08: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.

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

报告相同问题?

悬赏问题

  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥20 java在应用程序里获取不到扬声器设备