KEMBAR78
Show targets of vtable/itable calls · Issue #736 · async-profiler/async-profiler · GitHub
Skip to content

Show targets of vtable/itable calls #736

@apangin

Description

@apangin

In some applications, a signiticant amount of CPU time is spent on dispatching megamorphic virtual/interface calls. This appears in the profile as vtable stub or itable stub. However, this does not give any clue on why the particular call site is megamorphic and how to optimize it.

I propose adding a pseudo-frame on top of v/itable stub with the actual type of an object the virtual method is called on. This should make clear the propotion of different receivers for the particular call site:

vtable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions