Profiler.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# for BP to attach
if ($PSVersionTable.PSVersion.Major -ge 7) {
    [Reflection.Assembly]::LoadFrom("$PSScriptRoot/bin/netstandard2.0/Profiler.dll")
}
elseif ($PSVersionTable.PSVersion.Major -ge 5) {
    [Reflection.Assembly]::LoadFrom("$PSScriptRoot/bin/net452/Profiler.dll")
}
else {
    [Reflection.Assembly]::LoadFrom("$PSScriptRoot/bin/net451/Profiler.dll")
}

. "$PSScriptRoot/Assert-PowerShellVersion.ps1"
. "$PSScriptRoot/Invoke-Script.ps1"
. "$PSScriptRoot/Trace-ScriptInternal.ps1"
. "$PSScriptRoot/Trace-Script.ps1"

Export-ModuleMember -Function 'Invoke-Script', 'Trace-Script', 'Get-LatestTrace', 'Show-ScriptExecution'