| 1 |
Thu Apr 17 08:00:45 MDT 2008 zooko@zooko.com |
|---|
| 2 |
* send header showing elapsed time after slave/commands.py ShellCommand completes |
|---|
| 3 |
|
|---|
| 4 |
New patches: |
|---|
| 5 |
|
|---|
| 6 |
[send header showing elapsed time after slave/commands.py ShellCommand completes |
|---|
| 7 |
zooko@zooko.com**20080417140045] { |
|---|
| 8 |
hunk ./buildbot/slave/commands.py 227 |
|---|
| 9 |
+ # For sending elapsed time: |
|---|
| 10 |
+ startTime = None |
|---|
| 11 |
+ elapsedTime = None |
|---|
| 12 |
+ # I wish we had easy access to CLOCK_MONOTONIC in Python: |
|---|
| 13 |
+ # http://www.opengroup.org/onlinepubs/000095399/functions/clock_getres.html |
|---|
| 14 |
+ # Then changes to the system clock during a run wouldn't effect the "elapsed |
|---|
| 15 |
+ # time" results. |
|---|
| 16 |
+ |
|---|
| 17 |
hunk ./buildbot/slave/commands.py 420 |
|---|
| 18 |
+ self.startTime = time.time() |
|---|
| 19 |
hunk ./buildbot/slave/commands.py 474 |
|---|
| 20 |
- log.msg("command finished with signal %s, exit code %s" % (sig,rc)) |
|---|
| 21 |
+ self.elapsedTime = time.time() - self.startTime |
|---|
| 22 |
+ log.msg("command finished with signal %s, exit code %s, elapsedTime: %0.6f" % (sig,rc,self.elapsedTime)) |
|---|
| 23 |
hunk ./buildbot/slave/commands.py 486 |
|---|
| 24 |
+ self.sendStatus({'header': "elapsedTime=%0.6f\n" % self.elapsedTime}) |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
Context: |
|---|
| 28 |
|
|---|
| 29 |
[bump version to 0.7.7+ while between releases |
|---|
| 30 |
warner@lothar.com**20080415203010] |
|---|
| 31 |
[TAG buildbot-0.7.7 |
|---|
| 32 |
warner@lothar.com**20080330025903] |
|---|
| 33 |
Patch bundle hash: |
|---|
| 34 |
6e01d46d61153f0c85c75b80782fd6171e6d328d |
|---|