Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6628

enable google perftools, e.g. heap profiler, cpu profiler, to work

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Incomplete
    • 2.2.0-rc0
    • None
    • Internal Code

    Description

      After we changed all the exit()'s to _exit()'s, this broke the way google perf tools work, since they register an exit handler to write out the profiler data. This would be easy to fix; just add conditional compilation to call ::exit instead of ::_exit when using --use-cpu-profiler SCons flag. Unfortunately, it means that we can't easily ask users to turn on heap profiling just via environment variables, like we could with 2.0.7.

      I'm not sure if calling ProfilerStop() explicitly writes out the profile right then or if it waits until process exit.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            milkie@mongodb.com Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: