[profile] Eliminate dynamic memory allocation for buffered writer

With this change, dynamic memory allocation is only used
for testing purpose. This change is one of the many steps to
make instrument profiler dynamic allocation free.

llvm-svn: 269453
4 files changed