A
A
Andrey Titov2019-06-20 10:57:18
Programming
Andrey Titov, 2019-06-20 10:57:18

How to visually see the process of garbage collection in the program?

How to trace the mechanism of automatic garbage collection during development?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
ApeCoder, 2019-06-20
@titov_andrei

Find a profiler for your platform. Visual Studio, for example, has Diagnostic Tools that show when garbage collection occurs in .NET applications. You can also use perfmon (this is a utility built into Windows - you need to add counters like % of the time given in the GC), dottrace from JetBrains and so on.
It should be the same for your platform. Keywords to search for garbage collector diagnostics [your platform name]

S
Sergey Gornostaev, 2019-06-20
@sergey-gornostaev

For the JVM, you can use Java Mission Control or VisualVM with the Visual GC plugin installed.

X
xmoonlight, 2019-09-29
@xmoonlight

To see something, you need to understand what you expect to see.
To do this, you need to familiarize yourself with how the whole process takes place.
For .NET, start with the official documentation.
For PHP: of. documentation
, etc.
Google search (template): garbage collection нужныйязыкпрограммирования
Memory profilers (software): here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question