[cfe-dev] Brainstorming: ASAN snapshots

Kostya Serebryany via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 11 11:17:16 PDT 2016


On Mon, Oct 10, 2016 at 10:42 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:

> On Tue, Oct 11, 2016 at 1:34 AM, Kostya Serebryany <kcc at google.com> wrote:
> >
> > On Mon, Oct 10, 2016 at 6:45 AM, Kim Gräsman via cfe-dev
> > <cfe-dev at lists.llvm.org> wrote:
> >>
> >> Is this at all feasible?
> >
> >
> > Yes. Take a look at lib/asan/asan_memory_profile.cc and
> > test/asan/TestCases/Linux/print_memory_profile_test.cc
> > It's a toy memory profiler which prints the current allocated memory
> chunks.
> > Very close to what you are describing (if not exactly that)
> >
> > I used this functionality myself in a situation similar to yours and it
> > helped.
>
> Cool, thanks. I'll see if I can connect the dots locally.
>
> >> Are patches welcome?
> >
> > It depends. I am currently  not ready to review large refactoring in this
> > code because I hope to make one myself (maybe...)
> > Small incremental improvements -- yes.
>
> Realistically, I probably won't have time to work on this enough to
> build something useful outside of my office, but it's nice to know
> there's mechanics for this sort of thing.
>

Please let us know if you've found this useful and/or if you needed some
improvements.
Currently, this functionality exists mostly because I needed it myself.
It would great to make it more generally useful.

--kcc


>
> Thanks,
> - Kim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161011/ce42a010/attachment.html>


More information about the cfe-dev mailing list