How to retrieve TU memory usage in clang 2.9

I know there's CXTUResourceUsage and related API in clang. 3.0, but is there
a way to get TU (entire AST) memory usage with clang 2.9?

You should use clang 3.1 - 2.9 and 3.0 are obsolete.

Don't ask why. I know... :slight_smile:
I was just wondering if this is somehow possible with 2.9 too.