@@ -3,6 +3,8 @@ class ScriptProfiler {
|
|||||||
static [System.Collections.Queue] $Queue
|
static [System.Collections.Queue] $Queue
|
||||||
static [System.Diagnostics.Stopwatch] $Timer
|
static [System.Diagnostics.Stopwatch] $Timer
|
||||||
|
|
||||||
|
static $LastNode = $null
|
||||||
|
|
||||||
static [void] Start()
|
static [void] Start()
|
||||||
{
|
{
|
||||||
[ScriptProfiler]::Queue = New-Object System.Collections.Queue
|
[ScriptProfiler]::Queue = New-Object System.Collections.Queue
|
||||||
@@ -15,5 +17,7 @@ class ScriptProfiler {
|
|||||||
Breakpoint = $InputObject
|
Breakpoint = $InputObject
|
||||||
Elapsed = [ScriptProfiler]::Timer.Elapsed
|
Elapsed = [ScriptProfiler]::Timer.Elapsed
|
||||||
})
|
})
|
||||||
|
|
||||||
|
[ScriptProfiler]::LastNode = $InputObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user