Utility/script for parsing nvprof GPU trace

Suppose I’ve run

nvprof --print-gpu-trace my_app --csv > trace.csv

and my_app runs various kernels and memory transfers on multiple streams. I’m looking some utility/script somewhere which processes this trace and produces a sequence of time intervals during which no change occurs - i.e. no transfer starts/ends and no computation starts/end - and what kind of activity occurs during that interval - i.e. none, I/O, Compute or both; or perhaps just a copy of all of the overlapping entries from the original CSV.

I could write my own but I’d rather not re-invent the wheel. Has someone wrote something like this?

Obviously, nvvp sort of does this, visually, if your eyes scan the timeline, but I need it as another CSV file.