jiffyclub / snakeviz

An in-browser Python profile viewer
https://jiffyclub.github.io/snakeviz/
Other
2.36k stars 139 forks source link

should add a run param to limit directory access #130

Open Bryant-Yang opened 5 years ago

Bryant-Yang commented 5 years ago

Snakeviz is helpful for my web apis profile, I run snakeviz as a web server so that developers can check their Flask api profile remotely. But by now there is no way to deny directory access. I can even explore '/' by navigator in web page or by url path.

There should be some params to limit the access permission, such as 'snakeviz -s --access-path '. It should only show the profile files which user want to expose.