Clang c-api total memory usage

287 Views Asked by At

How to get total memory usage of clang c-api for a given translation unit?

There is clang_getCXTUResourceUsage but it returns memory usage broken into entries where each entry describes certain category.

UPDATE1:
Documentation states the units of CXTUResourceUsageEntry::amount depends on CXTUResourceUsageEntry::kind and doesn't say how. So it isn't clear how to sum it up.

0

There are 0 best solutions below