Programmatically get operator information from profiler

I’d like to extract all the operator tracing info from a training job, such as operator name, shape, dtype, etc. Profiler can generate files like ip-xxx-xx-xx-xx.xplane.pb, and can be consumed by tensorboard to analyze through GUI. Is there an easy way to programmatically extract the info from these files?