GithubHelp home page GithubHelp logo

Comments (2)

brianrob avatar brianrob commented on June 2, 2024

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.

ocoanet avatar ocoanet commented on June 2, 2024

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:

  1. Either move all CLR-profiler-related options to a specific section, or add a "Profiler" prefix to the options labels.
  2. Add a CLR profiler documentation entry to explain its role, usage and activation.
  3. Add an option to automatically enable the profiler in the "Run" collection.
  4. Rename "ETW .NET Alloc" to "CLR SampAlloc".
  5. Add an option "CLR Alloc" (related to GCAllObjectAllocation).

I can probably help on these tasks if needed.

from perfview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.