dotnet / dotnet/diagnostics

EventCounter allocates temp objects

Open
#621 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 5h
Merged PRs (30d)
35

Description

First of all, thank you for EventCounter now I don't have to do it myself.
As I imagine, diagnostic/counters infrastructure should be as little intrusive as possible. After some tests, I found out that EventCounters allocate. I created 1000 polling counters (counters number from current production system) and DotTrace showed that my application allocates at rate 200kb/1sec when I listen for counters
Dottrace after 2 minutes
![image](https://user-images.githubusercontent.com/7288803/68941279-77964300-07b6-11ea-9d3b-c83a8155a1b5.png)

Are there any plans for future optimizations? We can't afford so many allocations for counters.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.