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

Allow flushing of CPU profiler stats during long-running operation

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Performance
    • None
    • Environment:
      Linux / Debian / x86_64

      When gperftools CPU profiling is enabled for a specifically bracketed operation, using ProfilerStart() and ProfilerStop(), and the operation is a very long-running one, it can be useful for the client to flush the statistics during the operation: output can be examined while the operation is running to see what is going on, some stats are available in the event of an abort, etc. It's precisely the long-running operations that benefit most from not losing the stats at the end if something goes wrong.

      The attached patch allows calling ProfileFlush in a way similar to start/stop.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            hin John Hinsdale
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: