Skip to content

[Profiler] Do not export empty profiles#2701

Merged
gleocadie merged 1 commit into
masterfrom
gleocadie/do-not-send-empty-profiles
Apr 19, 2022
Merged

[Profiler] Do not export empty profiles#2701
gleocadie merged 1 commit into
masterfrom
gleocadie/do-not-send-empty-profiles

Conversation

@gleocadie

Copy link
Copy Markdown
Collaborator

Summary of changes

Reason for change

When running on IIS, we can end up in a situation where no thread is running in an AppDomain, so no callstack will be collected for this AppDomain/Application.
But still, every minute we send one profile per application to the back-end and we have empty profiles in the dashboard.

Implementation details

Keep the count of samples added to each profile. Check that count to decide if the profile has to be sent or not.

Test coverage

Adding unit test.

Other details

This is a simple implementation. A refactoring is needed and will be done after the 2nd beta release.

@gleocadie
gleocadie requested a review from a team as a code owner April 19, 2022 14:00
@github-actions github-actions Bot added the area:profiler Issues related to the continous-profiler label Apr 19, 2022

@chrisnas chrisnas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gleocadie
gleocadie merged commit 374e14e into master Apr 19, 2022
@gleocadie
gleocadie deleted the gleocadie/do-not-send-empty-profiles branch April 19, 2022 17:41
@github-actions github-actions Bot added this to the vNext milestone Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:profiler Issues related to the continous-profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants