Metadata-Guided Adaptable Frequency Scaling across Heterogeneous Applications and Devices