Skip to content

Tracking: Diagnostic Server and EventPipe C++ to C backport #36820

Closed

Description

@lambdageek

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.

So far these are:

CoreCLR PR CoreCLR PR Status Shared PR Notes
#36242 Merged - #37756
#36720 Merged - #41152
#36733 Merged - Ported as part of implementing CoreClr EventPipe shim.
#37035 Merged - #37756
#37002 Merged - #41152
#38967 Merged - #41152
#40191 Merged - #41152
#40332 Merged - Ported as part of implementing CoreClr EventPipe shim.
#40499 Merged - #41152
#40918 Merged - Not affecting shared library.
#41052 Merged - Ported as part of implementing CoreClr EventPipe shim.
#41194 Merged - Not affecting shared library. CoreClr EventPipe shim includes change.
#42307 Merged - Fixed in C library when initially detected and reported.
#43711 Merged - #46214
#38225 Merged - #46219
#44068 Merged - C library already handle this scenario.
#45672 Merged - #46220

Activity

  1. added
    runtime-mono
    tracking
    on May 21, 2020
  2. added
    untriaged
    on May 21, 2020
  3. removed
    untriaged
    on May 21, 2020
  4. lambdageek commented on May 27, 2020

    @lambdageek
    MemberAuthor

    @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?

  5. lateralusX commented on May 28, 2020

    @lateralusX
    Member

    Just double checked and the changes are applied but in upcoming PR, so not yet merged.

  6. added this to the 6.0.0 milestone on Jun 16, 2020
  7. lateralusX commented on Aug 18, 2020

    @lateralusX
    Member

    Updated table with new PR's affecting EventPipe code that needs to be ported over to Mono.

  8. srxqds commented on Aug 25, 2020

    @srxqds
    Contributor

    could EventPipe work in mono runtime right now, it can use perf view for profiling ?

  9. lateralusX commented on Aug 25, 2020

    @lateralusX
    Member

    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.

  10. lateralusX commented on Sep 30, 2020

    @lateralusX
    Member

    Updated table with new PR, #42307, affecting EventPipe/DiagnosticServer code that needs to be ported over to Mono.

  11. lateralusX commented on Nov 5, 2020

    @lateralusX
    Member

    Added #43711 to list of tracked PR's.

  12. added
    enhancement
    on Nov 6, 2020
  13. am11 commented on Nov 11, 2020

    @am11
    Member

    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.

  14. lateralusX commented on Nov 11, 2020

    @lateralusX
    Member

    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.

  15. lateralusX commented on Dec 18, 2020

    @lateralusX
    Member

    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.

  16. lateralusX commented on Dec 18, 2020

    @lateralusX
    Member

    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.

  17. josalem commented on Jan 4, 2021

    @josalem
    Contributor

    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.

  18. josalem commented on Feb 1, 2021

    @josalem
    Contributor

    @lateralusX now that we've switched to the C implementation by default, do we need this issue anymore?

  19. lateralusX commented on Feb 2, 2021

    @lateralusX
    Member

    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.

  20. ghost locked as resolved and limited conversation to collaborators on Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EventPipearea-Diagnostics-coreclrenhancementruntime-monotracking

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions