Bug 1142197 - manage ProfilerBacktrace with UniquePtr; r=mstange

Smart pointers are better than raw pointers.
This commit is contained in:
Nathan Froyd
2017-01-06 09:21:01 -05:00
parent a49908beb8
commit 1163f53bac
14 changed files with 68 additions and 62 deletions

View File

@@ -172,12 +172,8 @@ MainThreadIOLoggerImpl::IOThreadFunc()
(i->mObservation.Start() - mLogStartTime).ToMilliseconds(),
i->mObservation.ObservedOperationString(), durationMs,
i->mObservation.Reference(), nativeFilename.get()) > 0) {
ProfilerBacktrace* stack = i->mStack;
if (stack) {
// TODO: Write out the callstack
// (This will be added in a later bug)
profiler_free_backtrace(stack);
}
// TODO: Write out the callstack
i->mStack = nullptr;
}
}
}