Initial work to enable EventPipe in Linux#86226
Conversation
|
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsCI check
|
davidwrighton
left a comment
There was a problem hiding this comment.
I've not reviewed the build system changes, as I'm not familiar with the details of how the nativeaot build system works.
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
| EventPipeThreadHolder *thread_holder = pthread_getThreadHolder (); | ||
| #else | ||
| EventPipeThreadHolder *thread_holder = EventPipeAotThreadHolderTLS::getThreadHolder (); | ||
| #endif |
There was a problem hiding this comment.
Is the platform difference something that could be encapsulated in EventPipeAotThreadHolderTLS? The name of that class makes me think it is intended to hide away implementation like that, so it seems odd to me that the caller has to do the split.
There was a problem hiding this comment.
EventPipeAotThreadHolderTLS class seems windows specific with ability to use of thread_local and the class destructor doing the cleanup.
Co-authored-by: Elinor Fung <elfung@microsoft.com>
Support to enable
EventPipein Unix. The new additions include:pthreadfor thread local storagePalGetCurrentThreadIdForLoggingto get the thread idgmtimeandgettimeofday(for milliseconds) to get system timedisambiguation_key