Comments (2)
I don't believe that the registry is supported for configuring the profiler API for .NET Core. @davmason can you please confirm.
At the same time, you should be able to capture the unsampled allocation events directly in PerfView without using the profiler API at all. This is done by specifying /ClrEvents:Default+GCAllObjectAllocation
.
from perfview.
I did a few experiments with GCAllObjectAllocation
and it seems to generate unsampled Microsoft-Windows-DotNETRuntime/GC/SampledObjectAllocation
events. So, indeed, it is a good option to capture allocations for .NET (Core) programs.
But my main issue is that many collection UI options are linked to the CLR profiler. This fact is not clearly documented and these options have no effect on .NET (Core) programs unless the profiler is manually enabled.
I think that both the collection UI and the documentation (PerfView Help) should be improved to make more explicit the behaviors. Also, it would be nice to have an option to enable GCAllObjectAllocation
.
I clearly lake experience on the subject to describe a complete solution. I can only make a few suggestions:
- Either move all CLR-profiler-related options to a specific section, or add a "Profiler" prefix to the options labels.
- Add a CLR profiler documentation entry to explain its role, usage and activation.
- Add an option to automatically enable the profiler in the "Run" collection.
- Rename "ETW .NET Alloc" to "CLR SampAlloc".
- Add an option "CLR Alloc" (related to
GCAllObjectAllocation
).
I can probably help on these tasks if needed.
from perfview.
Related Issues (20)
- Update SDK usage in pipelines to 8.0
- CVE-2023-45853 HOT 1
- Update our xUnit usage to fix warnings HOT 1
- Update msdia into new LTS
- Update PerfViewCollect to .NET 8
- Microsoft.Diagnostics.Tracing.TraceEvent has an undeclared dependency on System.Collections.Immutable HOT 1
- A bug in Histogram?
- Trying to get stack of event in real-time of the own (.net) process HOT 2
- Missing TraceEventParser for EventSource "Microsoft-Diagnostics-DiagnosticSource" HOT 4
- GenFragmentationPercent(Gen) sometimes throws a null ref exception
- Microsoft-Windows-DotNETRuntimeRundown events don't appear in Event List HOT 2
- .nuspec dependencies HOT 2
- First PerfView collect hang entire pc for several minutes HOT 11
- Why isn't PerfViewCollect available?
- MonitorPerfCounter for all instances?
- fix the places where we are still using Gens.GenLargeObj incorrectly
- .Nettrace traces lack some capabilities out of the box that the converted etlx files have
- Vulnerability in the dependency tree HOT 3
- Support New Cloud-Based Symbol Server HOT 3
- Microsoft.Diagnostics.Tracing.TraceEvent NuGet not compatible with single file apps? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perfview.