Open ldorigo opened 3 years ago
After some more investigations, it looks like it's because of the file being sent to stdin. For some reason, it seems to work when I run with vprof -m
, but not with vprof -h
- something does get sent to stdin, but not the contents of the file, and the IndexError is actually caused by my own code (as it's getting some unexpected input in stdin). Not sure how to fix this?
Description
I'm not really sure where it's coming from, but I'm getting the following error when I run the profiler in heatmap mode (with the -h flag).
How to reproduce
Haven't been able to find out exactly what causes it yet. I just ran my script as
vprof -c h "/path/to/script.py --some_param" < input_file.txt
Actual results
Fails with
Expected results
Makes a line heatmap :)
Version and platform
Python 3.9.1 on linux, vprof 0.38