Skip to content

Remove internal EventPipe API and redundant tests #48053

Merged
sywhang merged 3 commits intodotnet:masterfrom
sywhang:dev/suwhang/remove-eventpipe-root-type
Feb 10, 2021
Merged

Remove internal EventPipe API and redundant tests #48053
sywhang merged 3 commits intodotnet:masterfrom
sywhang:dev/suwhang/remove-eventpipe-root-type

Conversation

@sywhang
Copy link
Contributor

@sywhang sywhang commented Feb 9, 2021

This removes the internal EventPipe type which was being used to turn on EventPipe session by an internal profiler team via reflection. They no longer depend on this as they've moved onto using the diagnostics client library.

Also this removes a few redundant tests that are using this internal API via reflection to enable tracing tests. I went and checked all of these tests and verified that they are either:

  • Testing the same scenario as the tests in tracing/eventpipe are testing
  • Testing the same scenario as the BCL EventSource tests are testing
  • Testing the internal reflection scenarios

The only test that is not already being tested by another tracing test is JittingStarted test which checks for whether a JittingStarted event is correctly received. I will file a separate issue to track adding this test under tracing/eventpipe.

cc @LakshanF After this PR, you should be able to safely remove the System.Diagnostics.Tracing.EventPipe type from rooted types for the ILTrim.

@josalem
Copy link
Contributor

josalem commented Feb 9, 2021

CC @lateralusX

Glad to see these are no longer needed!

Copy link
Contributor

@LakshanF LakshanF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trimming HelloWorld app works with this change.

Copy link
Contributor

@josalem josalem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The libraries test failure doesn't seem related to this patch. LGTM 🚀

{
public static class TraceValidationInducedGC
{
private static int InducedGCIterations = 10;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we have an equivalent test for the moder infrastructure. We may want to add one, but that's not part of this PR.

@sywhang sywhang merged commit 998084d into dotnet:master Feb 10, 2021
@sywhang sywhang deleted the dev/suwhang/remove-eventpipe-root-type branch February 10, 2021 02:41
@ghost ghost locked as resolved and limited conversation to collaborators Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants