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
{{ message }}
Repository navigation
Tracking: Diagnostic Server and EventPipe C++ to C backport #36820
Once #41872 is merged, we will have the original C++ CoreCLR EventPipe + Diagnostic Server implementation, as well as the C shared (currently MonoVM) EventPipe Diagnostic Server code. They should not functionally diverge.
This issue is meant to track changes that land in the CoreCLR version that should be ported over to the shared version.
No the complete end to end is WIP, working on diagnostic server port at the moment, once that is in place we should be able to start use tools like dotnet-counters. The complete EventPipe story on Mono is a bigger work item so before we have full perf view profiling in place there are some other work items to implement as well, but once we reached first "milestone" getting dotnet-coutners and several of the tests suites running, we will lay out work items to complete the perf view story.
Has there been a consideration to deduplicate the effort, by drawing out some abstraction? CoreCLR, as is, is building and linking C components (libunwind sources, libSystem.Globalization sources, version.c etc.), so the parts of EventPipe code that is impartial to OOP can be moved to .c files; without too much change in syntax -- if it helps the abstraction and DRY'ing.
The ported library will be shared by both runtimes and once all is done there will only be one version that can be shared between both CoreClr and Mono (the C version of the library). There is also a shim abstracting all runtime specific details into a small set of files implemented by each runtime adapting the library.
Looked over all changes to EventPipe/DiagnosticServer C++ library since last checkpoint (5:th of November), found and added #38225#44068#45672 to the list that needs to be evaluated for backport into C library.
Backported all PR detected so far into C library. @josalem are you aware of any PR's currently missing from the list that needs to be backported into C library? I have looked through changes since last checkpoint but couldn't detect any additional PR's than the once already added to the list.
No, since changes will now be done in the shared code, we won't need this. We still might need a way to communicate changes done in runtime specific shim implementation that might make sense to the other runtimes, but that can probably be notified per PR.
Activity
lambdageek commentedon May 27, 2020
@lateralusX I think you mentioned that you took the native code changes from #36242 (adding array types) already as part of #34600? Is that accurate?
lateralusX commentedon May 28, 2020
Just double checked and the changes are applied but in upcoming PR, so not yet merged.
lateralusX commentedon Aug 18, 2020
Updated table with new PR's affecting EventPipe code that needs to be ported over to Mono.
Port EventPipe CoreCLR changes to Mono.
Port EventPipe CoreCLR changes to Mono. (#20278)
srxqds commentedon Aug 25, 2020
could EventPipe work in mono runtime right now, it can use perf view for profiling ?
lateralusX commentedon Aug 25, 2020
No the complete end to end is WIP, working on diagnostic server port at the moment, once that is in place we should be able to start use tools like dotnet-counters. The complete EventPipe story on Mono is a bigger work item so before we have full perf view profiling in place there are some other work items to implement as well, but once we reached first "milestone" getting dotnet-coutners and several of the tests suites running, we will lay out work items to complete the perf view story.
lateralusX commentedon Sep 30, 2020
Updated table with new PR, #42307, affecting EventPipe/DiagnosticServer code that needs to be ported over to Mono.
lateralusX commentedon Nov 5, 2020
Added #43711 to list of tracked PR's.
am11 commentedon Nov 11, 2020
Has there been a consideration to deduplicate the effort, by drawing out some abstraction? CoreCLR, as is, is building and linking C components (libunwind sources, libSystem.Globalization sources, version.c etc.), so the parts of EventPipe code that is impartial to OOP can be moved to
.cfiles; without too much change in syntax -- if it helps the abstraction and DRY'ing.lateralusX commentedon Nov 11, 2020
The ported library will be shared by both runtimes and once all is done there will only be one version that can be shared between both CoreClr and Mono (the C version of the library). There is also a shim abstracting all runtime specific details into a small set of files implemented by each runtime adapting the library.
lateralusX commentedon Dec 18, 2020
Looked over all changes to EventPipe/DiagnosticServer C++ library since last checkpoint (5:th of November), found and added #38225 #44068 #45672 to the list that needs to be evaluated for backport into C library.
lateralusX commentedon Dec 18, 2020
Backported all PR detected so far into C library. @josalem are you aware of any PR's currently missing from the list that needs to be backported into C library? I have looked through changes since last checkpoint but couldn't detect any additional PR's than the once already added to the list.
josalem commentedon Jan 4, 2021
I have a couple brewing, but since we've merged the C version, I can put them in directly. I can't think of any that you haven't already handled.
josalem commentedon Feb 1, 2021
@lateralusX now that we've switched to the C implementation by default, do we need this issue anymore?
lateralusX commentedon Feb 2, 2021
No, since changes will now be done in the shared code, we won't need this. We still might need a way to communicate changes done in runtime specific shim implementation that might make sense to the other runtimes, but that can probably be notified per PR.