Depending on what you mean by the heap state.
There is an experimental __sanitizer_print_memory_profile (only in asan,
not in standalone lsan)
which will print a simple heap profile. Not much else.

  // Prints stack traces for all live heap allocations ordered by total
  // allocation size until `top_percent` of total live heap is shown.
  // `top_percent` should be between 1 and 100.
  // At most `max_number_of_contexts` contexts (stack traces) is printed.
  // Experimental feature currently available only with asan on
Linux/x86_64.
  void __sanitizer_print_memory_profile(size_t top_percent,
                                        size_t max_number_of_contexts);


On Fri, Mar 24, 2017 at 4:26 AM, Roger James <[email protected]>
wrote:

> Is there any way to trigger LeakSanitizer programmatically to dump the
> current heap state. I am trying to debug a transient heap allocation spike.
>
> Roger
>
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to