This adds a --profile (or inst.profile) command that uses the
cProfile
module to gather information about Anaconda at runtime. Thread profiles
are dumped in /tmp/thread-*.prof with a unique filename using the thread
id and a counter for duplicates. The id can be matched to the id in
anaconda.log (note that the id can be reused, so count the number of
ThreadDone entries).
Sending a USR2 will include a profile dump in /tmp/anaconda.prof
I think this, the coverage patch, and the existing instperf code need to
get together and decide on a common command line argument and location
to dump their data files.
- Chris