Raster histogram within feature boundary
I need to query raster statistics within a feature boundary. Is there a way to select a feature then generate a histogram of values within the bounded area located within a larger raster extent? I do not want to have to use the feature boundary to export a raster (using the boundary as a crop to selected features), then reimport the cropped area and check - metadata - histogram that way. I want to compare the change in values and distribution between two separate rasters within the same boundary.