yanqi27 / core_analyzer

A power tool to debug memory-related issues
376 stars 72 forks source link

Object search #55

Closed yanqi27 closed 2 years ago

yanqi27 commented 2 years ago

I started the branch trying to add a function for object search or profiling. I tried to show the statistics of objects and maybe their hierarchical relationship. I was distracted to refactor some old code. To make incremental enhancement, I will merge some changes first and attempt another PR for complete object search. This one contains mainly the following:

Celthi commented 2 years ago

The dependency chain I can see is

CoreAnalyzer -> CoreAnalyzerHeapInterface --> pt_malloc 2.31    
                                         \                 \
                                           pt_malloc 2.27   --> pt_malloc common functions.

If it is compile-time polymorphism, we use templates, if it is runtime polymorphism, we use virtual functions.