Mercurial > hg
comparison mercurial/statprof.py @ 40384:fc4c598dd4a0
statprof: fix indent level of fp.write() (issue6004)
It was changed at 9d3034348c4f by mistake.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 20 Oct 2018 20:15:48 +0900 |
parents | 4613f9274fc0 |
children | cc4586749c8c |
comparison
equal
deleted
inserted
replaced
40383:a9e303dcd1e1 | 40384:fc4c598dd4a0 |
---|---|
702 if node.count - childrensamples > (0.1 * root.count): | 702 if node.count - childrensamples > (0.1 * root.count): |
703 finalstring = '\033[91m' + finalstring + '\033[0m' | 703 finalstring = '\033[91m' + finalstring + '\033[0m' |
704 # Make frames that didn't actually perform work dark grey | 704 # Make frames that didn't actually perform work dark grey |
705 elif node.count - childrensamples == 0: | 705 elif node.count - childrensamples == 0: |
706 finalstring = '\033[90m' + finalstring + '\033[0m' | 706 finalstring = '\033[90m' + finalstring + '\033[0m' |
707 fp.write(finalstring + b'\n') | 707 fp.write(finalstring + b'\n') |
708 | 708 |
709 newdepth = depth | 709 newdepth = depth |
710 if len(visiblechildren) > 1 or multiple_siblings: | 710 if len(visiblechildren) > 1 or multiple_siblings: |
711 newdepth += 1 | 711 newdepth += 1 |
712 | 712 |