FAQ
Is it possible to have the pprof tool analyze functions in terms of time
spent in them rather than hits/calls?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Dmitry Vyukov at Sep 24, 2014 at 3:26 am
    no

    On Tue, Sep 23, 2014 at 8:20 PM, Joshua Liebow-Feeser
    wrote:
    Is it possible to have the pprof tool analyze functions in terms of time
    spent in them rather than hits/calls?

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dmitry Vyukov at Sep 24, 2014 at 3:26 am
    but these must be proportional
    the longer function executes the more samples it receives

    On Tue, Sep 23, 2014 at 8:25 PM, Dmitry Vyukov wrote:
    no

    On Tue, Sep 23, 2014 at 8:20 PM, Joshua Liebow-Feeser
    wrote:
    Is it possible to have the pprof tool analyze functions in terms of time
    spent in them rather than hits/calls?

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Joshua Liebow-Feeser at Sep 24, 2014 at 3:29 am
    Yes, but samples != calls? As far as I can tell, it's measuring the number
    of times a given function is called. This isn't the same as the number of
    samples.
    On Tue, Sep 23, 2014 at 11:26 PM, Dmitry Vyukov wrote:

    but these must be proportional
    the longer function executes the more samples it receives

    On Tue, Sep 23, 2014 at 8:25 PM, Dmitry Vyukov wrote:
    no

    On Tue, Sep 23, 2014 at 8:20 PM, Joshua Liebow-Feeser
    wrote:
    Is it possible to have the pprof tool analyze functions in terms of time
    spent in them rather than hits/calls?

    --
    You received this message because you are subscribed to the Google
    Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dmitry Vyukov at Sep 24, 2014 at 3:37 am
    It does not measure number of times a functions is called. It measures
    number of profiling signals that the function has received. Since the
    signals arrive (presumably) with constant frequency, number of samples
    is proportional to execution time.


    On Tue, Sep 23, 2014 at 8:28 PM, Joshua Liebow-Feeser
    wrote:
    Yes, but samples != calls? As far as I can tell, it's measuring the number
    of times a given function is called. This isn't the same as the number of
    samples.
    On Tue, Sep 23, 2014 at 11:26 PM, Dmitry Vyukov wrote:

    but these must be proportional
    the longer function executes the more samples it receives

    On Tue, Sep 23, 2014 at 8:25 PM, Dmitry Vyukov wrote:
    no

    On Tue, Sep 23, 2014 at 8:20 PM, Joshua Liebow-Feeser
    wrote:
    Is it possible to have the pprof tool analyze functions in terms of
    time
    spent in them rather than hits/calls?

    --
    You received this message because you are subscribed to the Google
    Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Joshua Liebow-Feeser at Sep 24, 2014 at 3:46 am
    Ah, that makes more sense. Thanks!
    On Tue, Sep 23, 2014 at 11:36 PM, Dmitry Vyukov wrote:

    It does not measure number of times a functions is called. It measures
    number of profiling signals that the function has received. Since the
    signals arrive (presumably) with constant frequency, number of samples
    is proportional to execution time.


    On Tue, Sep 23, 2014 at 8:28 PM, Joshua Liebow-Feeser
    wrote:
    Yes, but samples != calls? As far as I can tell, it's measuring the number
    of times a given function is called. This isn't the same as the number of
    samples.
    On Tue, Sep 23, 2014 at 11:26 PM, Dmitry Vyukov wrote:

    but these must be proportional
    the longer function executes the more samples it receives

    On Tue, Sep 23, 2014 at 8:25 PM, Dmitry Vyukov wrote:
    no

    On Tue, Sep 23, 2014 at 8:20 PM, Joshua Liebow-Feeser
    wrote:
    Is it possible to have the pprof tool analyze functions in terms of
    time
    spent in them rather than hits/calls?

    --
    You received this message because you are subscribed to the Google
    Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it,
    send
    an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 24, '14 at 3:21a
activeSep 24, '14 at 3:46a
posts6
users2
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase