rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.6k stars 256 forks source link

don't print source lines without timing (docstrings, comments) #159

Open azrdev opened 5 years ago

azrdev commented 5 years ago

This is the simplest possible fix for #156

Closes #156

Nodd commented 5 years ago

Does that mean that code that isn't run is not displayed ? The ouput would be very misleading if a block of code is hidden because of this.

azrdev commented 5 years ago

@Nodd I'd think so, I wrote "simplest possible fix" because I expected a more elaborate one, i.e. only filtering non-code and leaving code that is not run