dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.58k stars 4.55k forks source link

Expose contention data through the Profiling APIs #6848

Open lt72 opened 7 years ago

lt72 commented 7 years ago

Currently not exposed.

noahfalk commented 7 years ago

contention data for what thing? : ) Understanding the scenario motivating this request would be very useful.

lt72 commented 7 years ago

This refers to exposing contention data as ETW does: https://msdn.microsoft.com/en-us/library/ff356157%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

@mjsabby: please confirm

mjsabby commented 7 years ago

yup that's the one. This is to be able to get this data without using ETW.

lt72 commented 6 years ago

Please let us know if this is still a concern and what the time frame is that you care about.

gleocadie commented 5 years ago

Hi, this is the kind of thing we would like to have. Lately, we add a contention issue on Linux. I added the contention support in the Profiling API and with a custom build, we were able to get stack traces and find our contention issue. There might be other (better?) solution, but at that time, I was not aware (still don't) and this was the easiest way for us.

I have the code ready, will you be interested in a PR?