lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] How to trace a memory leak in my application using LTTng
@ 2021-05-05 10:36 bhanu kiran chaluvadi via lttng-dev
  2021-05-07 10:30 ` Milian Wolff via lttng-dev
  0 siblings, 1 reply; 2+ messages in thread
From: bhanu kiran chaluvadi via lttng-dev @ 2021-05-05 10:36 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 612 bytes --]

Hi,

I have a memory leak some where in my c++ application.  Since it was
written in c++98 there are lot of pointer passed back and forth and there
is no clear ownership of the pointers. I was  wondering if it's possible to
check for memory leak and give a value sections to probe for the leak using
LTTng ?  Since i am new, Can you also point me to some sample example to
track memory leak, in case if they are available or can you provide some
instructions to use LTTng in order to trace the leak.

Thank you,
Bhanu Kiran . Chaluvadi ,
Mechanical Engineering ,
National Institute of Technology,Warangal,
India

[-- Attachment #1.2: Type: text/html, Size: 803 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [lttng-dev] How to trace a memory leak in my application using LTTng
  2021-05-05 10:36 [lttng-dev] How to trace a memory leak in my application using LTTng bhanu kiran chaluvadi via lttng-dev
@ 2021-05-07 10:30 ` Milian Wolff via lttng-dev
  0 siblings, 0 replies; 2+ messages in thread
From: Milian Wolff via lttng-dev @ 2021-05-07 10:30 UTC (permalink / raw)
  To: lttng-dev; +Cc: bhanu kiran chaluvadi


[-- Attachment #1.1: Type: text/plain, Size: 997 bytes --]

On Mittwoch, 5. Mai 2021 12:36:06 CEST bhanu kiran chaluvadi via lttng-dev 
wrote:
> Hi,
> 
> I have a memory leak some where in my c++ application.  Since it was
> written in c++98 there are lot of pointer passed back and forth and there
> is no clear ownership of the pointers. I was  wondering if it's possible to
> check for memory leak and give a value sections to probe for the leak using
> LTTng ?  Since i am new, Can you also point me to some sample example to
> track memory leak, in case if they are available or can you provide some
> instructions to use LTTng in order to trace the leak.

While it's probably possible to leverage LTTng for this purpose, I don't think 
it's worthwhile to do so. Better start off with a ready-made tool for this 
purpose, such as heaptrack, LSAN or valgrind's memcheck.

Cheers

-- 
Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5272 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-07 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 10:36 [lttng-dev] How to trace a memory leak in my application using LTTng bhanu kiran chaluvadi via lttng-dev
2021-05-07 10:30 ` Milian Wolff via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).