Statistics of a boolean value of a process node

Hi, I want to create an extra statistics graph of a boolean value that is set “true” and “false” in a process node. I want to know what percentage of the time the boolean is set “true”, but there is no standard statistics option for the percentage “true” of a boolean. Is there a way to get this?