Investigating application latency