nvdv / vprof

Visual profiler for Python
BSD 2-Clause "Simplified" License
3.95k stars 154 forks source link

more human readable run count in heatmap #90

Open matkoniecz opened 5 years ago

matkoniecz commented 5 years ago
Description

Large numbers are not too human readable. For example 90000000 is not clear, it is not immediately visible is it 9 million, 90 million, or 900 million. Alternatives like "90 000 000", "90M" would be far more readable.

How to reproduce

vprof -c h python-script.py

Actual results

Popup window has Run count: 90000000

Expected results

Popup window has Run count: 90 000 000

Version and platform
mateusz@grisznak:~$ pip list | grep vprof
vprof                              0.37.6

Current pre-release according to https://github.com/nvdv/vprof/releases

mateusz@grisznak:~$ uname -a
Linux grisznak 4.15.0-51-generic #55~16.04.1-Ubuntu SMP Thu May 16 09:24:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Firefox 67.0.1 (64-bit)
mateusz@grisznak:~$ p --version
Python 3.5.2

Other similar

76 - requesting human readable formatting of run time