def hotspots(self):
rooted_leaf_samples, _ = self.live_data_copy()<EOL>line_samples = {}<EOL>for _, counts in rooted_leaf_samples.items():<EOL><INDENT>for key, count in counts.items():<EOL><INDENT>line_samples.setdefault(key, <NUM_LIT:0>)<EOL>line_samples[key] += count<EOL><DEDENT><DEDENT>return sorted(<EOL>line_samples.items(), key=lambda v: v[<NUM_LIT:1>], reverse=True)<EOL>
Get lines sampled accross all threads, in order
from most to least sampled.