-
Type: Improvement
-
Resolution: Done
-
Priority: 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.
- is related to
-
SERVER-7084 Switch all platforms to TCMalloc
- Closed
-
SERVER-45227 Remove support for gperftools cpu profiler
- Closed