As pointed out by Emil, and I think maybe the OP already knew based on the last sentence of the OQ, there isn't actually a uniform distribution on a countable set.
However, Jack Lutz developed the notion of "resource-bounded measure", whereby one can meaningfully talk about, e.g. the "P-measure of $\mathsf{P}$ (or $\mathsf{NP}$, etc.) inside $\mathsf{EXP}$". This started with https://doi.org/10.1137/0219076, and many things were worked on in this area since. For a while (maybe, 10-15 years) John Hitchcock maintained a bibliography of papers in the area. Elvira Mayordomo is another researcher with a significant amount of work on this area. If you look at papers by any one of these three, together with papers they cite and that cite them, that should get most of the papers on the topic.
Off the top of my head, I don't remember if anyone worked on measure within PSPACE, but the definition of resource-bounded measure is based on a characterization of (ordinary) measure in terms of martingales (which I believe originated with Lutz's paper, even though it is a purely "classical measure theory" result!), and then you get resource-bounded versions by restricting the complexity of the martingales. Presumably if one restricted their complexity to be something like logspace it could give a reasonable notion of resource-bounded measure within PSPACE (there is an exponential blow-up thing happening, just as P-measure gives a good notion inside EXP).