Fully implemented debug profiling subsystem.