When I see the % chance of gathering an HQ item if I'm doing botany (for example), is the percentage taken out of all items gathered, or out of all gathering attempts made?

If it's the former, then overall gathering rate is important, but if it's the latter, I just need to focus on the HQ chances..