Just found the answer to my own question; you can use MiniProfiler.Current.Ignore()
to stop profiling of certain sections of code:
using (MiniProfiler.Current.Ignore()) {
// ...
}
This pretty much does what I want; the only slight annoyance is that it stops profiling altogether. I'd rather it kept listing the SQL queries but didn't label them as duplicates, but oh well.