diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-12-12 20:30:42 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-12-12 20:30:42 +0000 |
commit | 96323c824cb6f9a6f09ae58883300e64fb432eb6 (patch) | |
tree | dc1cd21a19c954f8d0a8f967d18ff947f6830792 /debian | |
parent | 7d3d1473510b07962ec04b6449fe18b8ace77c40 (diff) | |
download | sos-96323c824cb6f9a6f09ae58883300e64fb432eb6.tar.gz |
Add profiling to command and file substitution methods
Add profiling calls around the regex substitution methods.
Shows that substitution costs are considerable compared to copy:
copied: /root/anaconda-ks.cfg time: 0.002293
copied: /var/log/anaconda/anaconda.log time: 0.002204
copied: /var/log/anaconda/syslog time: 0.002709
copied: /var/log/anaconda/anaconda.packaging.log time: 0.002658
copied: /var/log/anaconda/ks-script-YGuewK.log time: 0.002483
copied: /var/log/anaconda/anaconda.program.log time: 0.002416
copied: /var/log/anaconda/anaconda.storage.log time: 0.002263
copied: /var/log/anaconda/anaconda.xlog time: 0.002299
copied: /var/log/anaconda/anaconda.ifcfg.log time: 0.002461
copied: /var/log/anaconda/ks-script-kdAaa4.log time: 0.002558
subst : /root/anaconda-ks.cfg time: 0.021056
I.e. subsituting one file is on average eight times more costly
than simple collection.
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions