#1
|
|||
|
|||
StepDone fires early on subroutine calls
I have a StepStarting and StepDone handler that I use to time a source control action.
Recently I moved the source control action into a subroutine so I could do several things and call it from multiple places. However this breaks my timing scripts, as the StepDone fires immediately that the subroutine starts This seems counter intuitive to me - the step hasn't finished - it's waiting on all the subroutine steps. I've attached a simple sample. which outputs: Code:
vbld_StepStarting vbld_StepDone Wibble subroutine Code:
vbld_StepStarting Wibble subroutine vbld_StepDone |
#2
|
|||
|
|||
You could use project-level script events:
Code:
Sub vbld_StepStartingProject() If Step.Action = "SourceSafe" Then ' replace with source control action being used ' record step starting time End If End Sub Sub vbld_StepDoneProject() If Step.Action = "SourceSafe" Then ' log elapsed time, etc. End If End Sub |
|
|