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.