Performance Instrumentation and Measurement for Terascale Systems