F
F
floppa3222021-01-01 01:16:34
C++ / C#
floppa322, 2021-01-01 01:16:34

Does such a code analyzer exist?

Is there such a tool for analyzing C ++ code that could build a graph (preferably in the UI in the picture), which would show how the allocated memory "travels" along the call stack and from object to object, where the root of this graph was would be the place of its selection (that is, some method / function), and the sheet is the method / function after which it can no longer be accessed.
It would be very convenient to find leaks : Valgrind shows where the memory that leaks is allocated, we build a graph relative to that root (place of allocation) and find a leak.

I know it probably won't, but it's worth a try.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor T2, 2021-01-01
@Lite_stream

There are Flamegraphs
https://www.brendangregg.com/FlameGraphs/memoryfla...
https://github.com/brendangregg/FlameGraph

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question