/usr/bin/pycallgraph is in python-pycallgraph 1.0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #! /usr/bin/python
"""
pycallgraph
This script is the command line interface to the pycallgraph Python library.
See http://pycallgraph.slowchop.com/ for more information.
"""
import sys
import os
import pycallgraph as __pycallgraph
# Inject the current working directory so modules can be imported.
sys.path.insert(0, os.getcwd())
__config = __pycallgraph.Config()
__config.parse_args()
__config.strip_argv()
globals()['__file__'] = __config.command
__file_content = open(__config.command).read()
with __pycallgraph.PyCallGraph(config=__config):
exec(__file_content)
|