Text this: Detecting and quantifying resource contention in concurrent programs