llvm.org GIT mirror llvm / 94e8fbe
Display relative hotness with two decimal digits after the decimal point I've seen cases where tiny inlined functions have such a high execution count that most everything would show up with a relative of hotness of 0%. Since the inlined functions effectively disappear you need to tune in the lower range, thus we need more precision. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314537 91177308-0d34-0410-b5e6-96231b3b80d8 Adam Nemet 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
178178 @property
179179 def RelativeHotness(self):
180180 if self.max_hotness:
181 return "{}%".format(int(round(self.Hotness * 100 / self.max_hotness)))
181 return "{0:.2f}%".format(self.Hotness * 100. / self.max_hotness)
182182 else:
183183 return ''