Added config-driven buffer profiling stats (added more diagnostics)