-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new version of the ContentionStart event #72627
Changes from 5 commits
1988694
5fb79fd
d6d6398
d214618
4550dc5
1559e3d
ba3cca1
292656e
4d529a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -211,6 +211,7 @@ | |||||
value="8" eventGUID="{561410f5-a138-4ab3-945e-516483cddfbc}" | ||||||
message="$(string.RuntimePublisher.ContentionTaskMessage)"> | ||||||
<opcodes> | ||||||
<opcode name="AwareLockCreated" message="$(string.RuntimePublisher.AwareLockCreatedOpcodeMessage)" symbol="CLR_AWARELOCK_CREATED_OPCODE" value="10"> </opcode> | ||||||
</opcodes> | ||||||
</task> | ||||||
|
||||||
|
@@ -1742,6 +1743,21 @@ | |||||
</UserData> | ||||||
</template> | ||||||
|
||||||
<template tid="ContentionStart_V2"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if putting the LockId and OwnerId wouldn't be better on the Stop event, WDYT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it makes more sense on the start event, since you want to know what was holding it that triggered the contention |
||||||
<data name="ContentionFlags" inType="win:UInt8" map="ContentionFlagsMap" /> | ||||||
<data name="ClrInstanceID" inType="win:UInt16" /> | ||||||
<data name="LockID" inType="win:Pointer" /> | ||||||
<data name="LockOwnerThreadID" inType="win:UInt64" /> | ||||||
<UserData> | ||||||
<Contention xmlns="myNs"> | ||||||
<ContentionFlags> %1 </ContentionFlags> | ||||||
<ClrInstanceID> %2 </ClrInstanceID> | ||||||
<LockID> %3 </LockID> | ||||||
<LockOwnerThreadID> %4 </LockOwnerThreadID> | ||||||
</Contention> | ||||||
</UserData> | ||||||
</template> | ||||||
|
||||||
<template tid="ContentionStop_V1"> | ||||||
<data name="ContentionFlags" inType="win:UInt8" map="ContentionFlagsMap" /> | ||||||
<data name="ClrInstanceID" inType="win:UInt16" /> | ||||||
|
@@ -3094,6 +3110,18 @@ | |||||
</Settings> | ||||||
</UserData> | ||||||
</template> | ||||||
|
||||||
<template tid="AwareLockCreated"> | ||||||
<data name="LockID" inType="win:Pointer" /> | ||||||
<data name="ClrInstanceID" inType="win:UInt16" /> | ||||||
<UserData> | ||||||
<AwareLockCreated xmlns="myNs"> | ||||||
<LockID> %1 </LockID> | ||||||
<ClrInstanceID> %2 </ClrInstanceID> | ||||||
</AwareLockCreated> | ||||||
</UserData> | ||||||
</template> | ||||||
|
||||||
</templates> | ||||||
|
||||||
<events> | ||||||
|
@@ -3642,6 +3670,11 @@ | |||||
task="Contention" | ||||||
symbol="ContentionStart_V1" message="$(string.RuntimePublisher.ContentionStart_V1EventMessage)"/> | ||||||
|
||||||
<event value="81" version="2" level="win:Informational" template="ContentionStart_V2" | ||||||
keywords ="ContentionKeyword" opcode="win:Start" | ||||||
task="Contention" | ||||||
symbol="ContentionStart_V2" message="$(string.RuntimePublisher.ContentionStart_V2EventMessage)"/> | ||||||
|
||||||
<event value="91" version="0" level="win:Informational" template="Contention" | ||||||
keywords ="ContentionKeyword" opcode="win:Stop" | ||||||
task="Contention" | ||||||
|
@@ -3652,6 +3685,12 @@ | |||||
task="Contention" | ||||||
symbol="ContentionStop_V1" message="$(string.RuntimePublisher.ContentionStop_V1EventMessage)"/> | ||||||
|
||||||
<event value="414" version="0" level="win:Informational" template="AwareLockCreated" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like event ID
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The name There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, this is a good idea. |
||||||
keywords ="ContentionKeyword" opcode="AwareLockCreated" | ||||||
task="Contention" | ||||||
symbol="AwareLockCreated" message="$(string.RuntimePublisher.AwareLockEventMessage)"/> | ||||||
|
||||||
|
||||||
<!-- CLR Stack events --> | ||||||
<event value="82" version="0" level="win:LogAlways" template="ClrStackWalk" | ||||||
keywords ="StackKeyword" opcode="CLRStackWalk" | ||||||
|
@@ -8432,8 +8471,10 @@ | |||||
<string id="RuntimePublisher.ExceptionExceptionHandlingNoneEventMessage" value="NONE" /> | ||||||
<string id="RuntimePublisher.ContentionStartEventMessage" value="NONE" /> | ||||||
<string id="RuntimePublisher.ContentionStart_V1EventMessage" value="ContentionFlags=%1;%nClrInstanceID=%2"/> | ||||||
<string id="RuntimePublisher.ContentionStart_V2EventMessage" value="ContentionFlags=%1;%nClrInstanceID=%2;%LockID=%3;%LockOwnerThreadID=%4"/> | ||||||
<string id="RuntimePublisher.ContentionStopEventMessage" value="ContentionFlags=%1;%nClrInstanceID=%2"/> | ||||||
<string id="RuntimePublisher.ContentionStop_V1EventMessage" value="ContentionFlags=%1;%nClrInstanceID=%2;DurationNs=%3"/> | ||||||
<string id="RuntimePublisher.AwareLockEventMessage" value="LockID=%1;%nClrInstanceID=%2"/> | ||||||
<string id="RuntimePublisher.DCStartCompleteEventMessage" value="NONE" /> | ||||||
<string id="RuntimePublisher.DCEndCompleteEventMessage" value="NONE" /> | ||||||
<string id="RuntimePublisher.MethodDCStartEventMessage" value="MethodID=%1;%nModuleID=%2;%nMethodStartAddress=%3;%nMethodSize=%4;%nMethodToken=%5;%nMethodFlags=%6" /> | ||||||
|
@@ -9211,6 +9252,8 @@ | |||||
<string id="RundownPublisher.TieredCompilationSettingsDCStartOpcodeMessage" value="SettingsDCStart" /> | ||||||
<string id="RundownPublisher.ExecutionCheckpointDCEndOpcodeMessage" value="ExecutionCheckpointDCEnd" /> | ||||||
|
||||||
<string id="RundownPublisher.AwareLockCreatedOpcodeMessage" value="AwareLockCreated" /> | ||||||
|
||||||
<string id="PrivatePublisher.FailFastOpcodeMessage" value="FailFast" /> | ||||||
|
||||||
<string id="PrivatePublisher.GCDecisionOpcodeMessage" value="Decision" /> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a new opcode is not necessary, the
win:Start
opcode can be used insteadThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think win:Info is a good choice here since we are not starting an action, and there won't be a corresponding stop.