A Scalable Cross-Platform Infrastructure for Application Performance Tuning Using Hardware Counters