This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expose OSThreadId and TimeStamp on EventWrittenEventArgs #19002
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7d5e8c2
Add EventWrittenEventArgs public properties OSThreadId and TimeStamp …
brianrob 55b5fd7
Plumb ActivityId and RelatedActivityId to EventListener.
brianrob 79ca1e6
Expose SessionID on EventPipe Enable/Disable APIs.
brianrob ec265ed
Fix contract violation in SimpleComCallableWrapper::BuildRefCountLogM…
brianrob 5425b73
Plumb EventPipeSession information into managed code and populate Eve…
brianrob 5f6e8fd
Rename reflection vars used to fetch OSThreadId.
brianrob 08cd1f7
Add TimeStamp fetch and comparison to RuntimeEventSourceTest.
brianrob 4a2a5fa
Default timestamp to DateTime.UtcNow.
brianrob c1e1026
Add missing comment.
brianrob 1570ff4
Specify in the comments that the timestamp is a UTC timestamp.
brianrob f076ba2
Expand the OSThread ID to be a 64-bit value.
brianrob 43aea7a
Switch to using FILETIME instead of SYSTEMTIME for the session start …
brianrob 8250cd9
Replace Debug.Assert with test-local Assert.
brianrob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Plumb EventPipeSession information into managed code and populate Eve…
…ntWrittenEventArgs.TimeStamp.
- Loading branch information
commit 5425b73e2ca285d16cafd0d7be43f6fb133e1ad3
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
PLease don't use SystemTime. It is inconvinient and unnecessary.
Note that you might not want to even use QueryPerfCounter stufff either. DateTime.UtcNow now uses the Window GetSystemTimePreciseAsFileTime function (or Linux equivalent), so you can probably just use DateTime everywhere (FileTime and DateTime are almost the same (they are both 100ns granularity, and only differ in an offset (See DateTIme.FromFileTimeUtc). This gets rid of a bunch of ugly unit conversions. Just use DateTime everywhere for timestamps, and use the same PAL call we use for DateTime.UtcNow, and all this gets very simple.