Skip to content

Can't trace all GC allocations with ETW #101748

@vvuk

Description

@vvuk

While working on coreclr ETW events integration with the samply profiler, I realized that there's no per-object allocation event. GCAllocationTick only fires when the threshhold goes over, which is a const set at 100kb. However, the CORProfiler interface does have this -- COR_PRF_MONITOR/ENABLE_OBJECT_ALLOCATED and friends. These trigger a callback via the profiler interface.

Is there interest in adding this? It would be expensive, so only if a specific new provider was enabled, similar to the rundown provider? (Or does this already exist and I'm missing it?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions