How to use the snakeviz.cli.main function in snakeviz

To help you get started, we’ve selected a few snakeviz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jiffyclub / snakeviz / snakeviz / __main__.py View on Github external
import sys
from .cli import main

if __name__ == "__main__":
    # __main__.py is ugly and confusing, monkey patch executable to say snakeviz
    sys.argv[0] = "snakeviz"
    sys.exit(main())