[SERVER-7283] Switch to libtcmalloc_and_profiler instead of libtcmalloc_minimal Created: 05/Oct/12  Updated: 28/Jan/20  Resolved: 28/Jan/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ben Becker Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-7080 On Solaris, link to backtrace() at ru... Closed
is related to SERVER-45227 Remove support for gperftools cpu pro... Closed
Participants:

 Description   

This task involves:

  • Build with the CPU Profiler bindings, unless building with --allocator=system.
  • Add libunwind as a dependency if necessary, and if --allocator=system is not specified.
    • Unify stack trace code to use libunwind (if required by tcmalloc).
  • Link against libtcmalloc_and_profiler.


 Comments   
Comment by Andrew Morrow (Inactive) [ 28/Jan/20 ]

Closing, since SERVER-45227 as removed the tcmalloc based profiler.

Comment by Ben Becker [ 06/Nov/12 ]

One additional feature we should think about is adding a call to ProfilerStop() or ProfilerFlush() before each ::_exit() (assuming tcmalloc_and_profiler is built). Might want to exclude calls where flushing profiler data to disk (e.g. disk full?) may be undesirable.

Comment by Andy Schwerin [ 05/Oct/12 ]

On systems where we use libunwind for backtracing in tcmalloc, we might want to use it for backtracing in the stacktrace collection code, too. Maybe.

Generated at Thu Feb 08 03:14:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.