PTS reads the (radeon) gpu load from fences, so I'd wager you can download the PTS source and see how it does it.