Let $G$ be a reductive group. In many instances of the trace formula, elliptic terms corresponding to the $G(k)$-conjugacy class of $\gamma \in G(k)$ are weighted by the following volumes $$v_\gamma = \mathrm{vol}(G_\gamma(k) \backslash G_\gamma(\mathbb{A}))$$
I am interested in knowing how to handle $v_\gamma$ in practice. In very few cases I am able to explicitly compute the quotient (namely, $GL(2)$ or $SL(2)$) for diagonal element, what is possible up to conjugation by semisimplicity).
Is there any general method to compute these volumes, or results concerning their values or bounds (for instance depending on the eigenvalues of $\gamma$, on its determinant, and on quantities attached to $k$)?
I am interested in inner forms of general linear groups, unitary groups and symplectic $GSp(4)$.