diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-06-21 17:30:44 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-06-21 17:30:44 +0000 |
commit | 8d1a245e484cdac468d84fb823ba5b4cec3c27ba (patch) | |
tree | 86c5483b049cecac7b02395fde2a35991eb99515 /src/lib/Options.py | |
parent | da539a752053757bec3d4740269300d8d2b2c74e (diff) | |
download | bcfg2-8d1a245e484cdac468d84fb823ba5b4cec3c27ba.tar.gz bcfg2-8d1a245e484cdac468d84fb823ba5b4cec3c27ba.tar.bz2 bcfg2-8d1a245e484cdac468d84fb823ba5b4cec3c27ba.zip |
bcfg2-info: add complete profiling support
Build uniform profiling support for both core startup and individual commands.
Also ensure that single shot commands (from argv) work properly. Core profiling (for
startup) can be enabled with -p, and individual commands can be profiled by prefixing
the profile command, a la:
> profile build ubik3 /tmp/ubik3.xml
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5290 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Options.py')
-rw-r--r-- | src/lib/Options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py index c916b96fe..a18661637 100644 --- a/src/lib/Options.py +++ b/src/lib/Options.py @@ -242,7 +242,7 @@ CLIENT_EXTRA_DISPLAY = Option('enable extra entry output', default=False, cmd='-e', ) CLIENT_PARANOID = Option('make automatic backups of config files', default=False, cmd='-P', ) -CORE_PROFILE = Option('profile server core', odesc='<profile trace path>', +CORE_PROFILE = Option('profile', default=False, cmd='-p', ) CLIENT_DRIVERS = Option('Specify tool driver set', cmd='-D', cf=('client', 'drivers'), |