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?

Thanks!