Raw Histogram, or Display Histogram

It’s simple: generate an image with each color space/gamma combination, then extract the profiles with exiftool.

That is probably the approach I’ll use in the interim.