PIX added this api recently to record memory allocation events, we should integrate it into the library for better debugging.