summaryrefslogtreecommitdiff
path: root/indra/llcommon/llallocator_heap_profile.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-02-15 15:11:35 -0500
committerNat Goodspeed <nat@lindenlab.com>2023-02-15 15:11:35 -0500
commitaec39a0f9f7f16a7970e96bad552ca684af57e3f (patch)
tree742bfd7fee6d2cf98a9a93b5fc3d17ff2ca6557c /indra/llcommon/llallocator_heap_profile.cpp
parent6ef3df54b3ff0dcfed3000819209a7633e53a32b (diff)
parent23a3da37a91ea80311b5820c48a12d56b989f69d (diff)
SL-18330: Merge branch 'contribute' into sl-18330-merge
Diffstat (limited to 'indra/llcommon/llallocator_heap_profile.cpp')
-rw-r--r--indra/llcommon/llallocator_heap_profile.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/llcommon/llallocator_heap_profile.cpp b/indra/llcommon/llallocator_heap_profile.cpp
index b2eafde1aa..c6d9542b42 100644
--- a/indra/llcommon/llallocator_heap_profile.cpp
+++ b/indra/llcommon/llallocator_heap_profile.cpp
@@ -130,15 +130,13 @@ void LLAllocatorHeapProfile::parse(std::string const & prof_text)
void LLAllocatorHeapProfile::dump(std::ostream & out) const
{
- lines_t::const_iterator i;
- for(i = mLines.begin(); i != mLines.end(); ++i)
+ for (const LLAllocatorHeapProfile::line& line : mLines)
{
- out << i->mLiveCount << ": " << i->mLiveSize << '[' << i->mTotalCount << ": " << i->mTotalSize << "] @";
+ out << line.mLiveCount << ": " << line.mLiveSize << '[' << line.mTotalCount << ": " << line.mTotalSize << "] @";
- stack_trace::const_iterator j;
- for(j = i->mTrace.begin(); j != i->mTrace.end(); ++j)
+ for (const stack_marker marker : line.mTrace)
{
- out << ' ' << *j;
+ out << ' ' << marker;
}
out << '\n';
}