This is leaning towards a stylistic preference somewhat, but adding a stroke to all of the rectangles in a flamegraph should serve as a great way to separate the boxes from each other, especially when they are touching together. Today colour sets include multiple colours and one of the reasons for this I think to differentiate these frames that are touching together.
A stroke would also enable colour sets that are flatter, where colours are used to mark different types of frames, like proposed in #203.
Here's an example of what it might end up looking like. Note especially the rustix::io::mmap::mprotect and frames around it:
