[cfe-dev] Brainstorming: ASAN snapshots
Kim Gräsman via cfe-dev
cfe-dev at lists.llvm.org
Mon Oct 10 22:42:42 PDT 2016
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.
Thanks,
- Kim
More information about the cfe-dev
mailing list