You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tweak log message template to separate path from line num with ':'
This is probably a legal path char on Linux but on Windows it isn't.
Also, Pester uses a similar format: <path>: line <num>
Update PSES log analyzer to parse template.
Add some more analysis commands.
Copy file name to clipboardExpand all lines: tools/PsesLogAnalyzer/Parse-PsesLog.ps1
+42-33
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
2
2
$peekBuf=$null
3
-
$currentLineNum=1
3
+
$currentLineNum=0
4
4
$logEntryIndex=0
5
5
6
6
functionParse-PsesLog {
@@ -44,7 +44,7 @@ function Parse-PsesLog {
44
44
$script:logEntryIndex=0
45
45
46
46
if ($OldLogFormat) {
47
-
# Example old log entry start
47
+
# Example old log entry start:
48
48
# 2018-11-15 19:49:06.979 [NORMAL] C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: In method 'StartLogging', line 160:
49
49
$logEntryRegex=
50
50
[regex]::new(
@@ -53,10 +53,10 @@ function Parse-PsesLog {
53
53
}
54
54
else {
55
55
# Example new log entry start:
56
-
# 2018-11-24 12:26:58.302 [DIAGNOSTIC] tid:28 in 'ReadMessage' C:\Users\Keith\GitHub\rkeithhill\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs:114:
56
+
# 2018-11-24 12:26:58.302 [DIAGNOSTIC] tid:28 in 'ReadMessage' C:\Users\Keith\GitHub\rkeithhill\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 114
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72
72
FunctionsToExport=@(
73
73
'Parse-PsesLog',
74
-
'Get-PsesRpcMessageResponseTime'
74
+
'Get-PsesRpcMessageResponseTime',
75
+
'Get-PsesRpcNotificationMessage',
76
+
'Get-PsesScriptAnalysisCompletionTime',
77
+
'Get-PsesIntelliSenseCompletionTime'
75
78
)
76
79
77
80
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
0 commit comments