Answer the question
In order to leave comments, you need to log in
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
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]
For the JVM, you can use Java Mission Control or VisualVM with the Visual GC plugin installed.
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 questionAsk a Question
731 491 924 answers to any question