-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconst.go
More file actions
31 lines (29 loc) · 1.12 KB
/
const.go
File metadata and controls
31 lines (29 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package jthreadparser
const (
// LockedState ...
LockedState SynchronizerState = 0
// ParkingToWaitForState ...
ParkingToWaitForState SynchronizerState = 1
// WaitingOnState ...
WaitingOnState SynchronizerState = 2
// WaitingToLockState ...
WaitingToLockState SynchronizerState = 3
)
const (
threadInformationBegins = "\""
threadHeaderInfoRgx = `^\"(.*).*tid=(\w*) nid=(\w*)\s\w*`
threadNameRgx = `^"(.*)".*\stid=(\w*) nid=(\w*)\s\w*`
threadNameWithPriorityRgx = `^"(.*)".*\sprio=(\d+).*\stid=(\w*) nid=(\w*)\s\w*`
stateRgx = `\s*java.lang.Thread.State: (.*)`
runnableStateRgx = `runnable\s{1,2}$`
// SMRInfoRgx ...
SMRInfoRgx = `^Threads class SMR info:$`
waitingOnStateRgx = `waiting on condition\s{1,2}$`
synchronizerRgx = `\s*\- (waiting on|parking to wait for|locked|waiting to lock)\s*<(.*)>\s*\(a\s(.*)\)`
stackTraceRgx = `^\s+(at|\-\s).*\)$`
stackTraceRgxMethodName = `at\s+(.*)$`
threadNameRgxGroupIndex = 1
threadPriorityRgxGroupIndex = 2
threadIDRgxGroupIndex = 3
threadNativeIDRgxGroupIndex = 4
)