Querying Path Profile Data

Hi,

I'm trying to get a feel for what the LLVM community wants to get out of path profiles. Ball Larus path profiles contain counters for path numbers, but this raw information is not too useful. Some potential queries follow:
- Given a path number, and function give a basic block iterator over the path.
- Given a function give path numbers ordered by counts.
- Given a basic block give path numbers such that the basic block is in each path ordered by counts.
Which queries would you like to have?

Thanks