Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follow-up for dotnet-trace #304

Merged
merged 1 commit into from
Nov 7, 2023
Merged

follow-up for dotnet-trace #304

merged 1 commit into from
Nov 7, 2023

Conversation

nicrowe00
Copy link
Contributor

@nicrowe00 nicrowe00 commented Oct 2, 2023

Rewriting a portion of the test for dotnet-trace, specifically dealing with the 'report' command. Instead of verifying that the report log file exists, the test now checks the output of the command to verify that a specific method is on the callstack.

@nicrowe00
Copy link
Contributor Author

@omajid @tmds PTAL

dotnet-trace/test.sh Outdated Show resolved Hide resolved
dotnet-trace/test.sh Outdated Show resolved Hide resolved
dotnet-trace/test.json Outdated Show resolved Hide resolved
dotnet-trace/test.sh Outdated Show resolved Hide resolved
@tmds
Copy link
Member

tmds commented Oct 3, 2023

@nicrowe00 fyi, the trace files generated by the tool can be read using https://www.nuget.org/packages/Microsoft.Diagnostics.Tracing.TraceEvent/. There's an example in this blog post that shows how to use the library for reading a trace file: https://developers.redhat.com/blog/2019/12/23/tracing-net-core-applications.

I'm ok with validating the output of the topN because that will read the trace to create a summary.

Copy link
Member

@omajid omajid left a comment

Choose a reason for hiding this comment

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

LGTM!

Rewriting a portion of the test for dotnet-trace, specifically dealing with the 'report' command.
Instead of verifying that the report log file exists, the test now checks the output of the command
to verify that a specific method is on the callstack.

Signed-off-by: Niall Crowe <nicrowe@redhat.com>
@tmds tmds merged commit 7ce8844 into redhat-developer:main Nov 7, 2023
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants