This patch depends on http://reviews.llvm.org/D4596.
As a continuation of the previous patch that adds a MemoryHistory plugin and implementation for ASan-provided malloc/free stack traces, this patch exposes this into the SB API. In short, these two new methods are added into SBValue:
- uint32_t SBValue::GetNumMemoryHistoryThreads ();
- SBThread SBValue::GetMemoryHistoryThreadAtIndex (uint32_t idx);
This corresponds to how we provide objects for which we don't have containers (SBFrame and GetNumFrames + GetFrameAtIndex). Note that exposing ThreadList into a generic SBThreadList container would not be straightforward, because currently ThreadList is not a generic container of threads, but instead holds functionality tied to a process and can currently only be used to hold all threads in a process.