Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8908

Add -fno-omit-frame-pointer to improve debugging and profiling.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • build, libprocess, stout
    • None

    Description

      Currently, we build without -fno-omit-frame-pointer which is needed to get reliable stack traces. Without this, obtaining perf profiles from users is not reliable:

      http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html#C

      Apparently, the performance win from frame pointer omission is very minor and many projects opt to disable the optimization given the benefits to debugging and profiling.

      I tried the --call-graph dwarf "workaround" for perf but still experienced [unknown] stack frames and what looked to be missing frames:

      http://www.brendangregg.com/perf.html#StackTraces (see dwarf section)

      Attachments

        Issue Links

          Activity

            People

              bbannier Benjamin Bannier
              bmahler Benjamin Mahler
              Benjamin Mahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: