GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Filter native frames in allocation profile · Issue #993 · async-profiler/async-profiler

Filter native frames in allocation profile #993

New issue
Copy link
New issue
Copy link
Closed
Closed
Filter native frames in allocation profile#993
Copy link
Labels
enhancement

Description

@apangin
apangin
opened on Sep 13, 2024
Issue body actions

Describe the feature

Just like CPU profile, allocation profile should have native frames visible by default.
However, we should avoid littering flame graphs with meaningless frames of the profiler itself along with JVM internal frames repeated in every single stack trace.

Use Case

Objects are not always allocated in Java code; sometimes they are allocated inside the JVM runtime. It will be useful to see such stacks on a flame graph.

Today, if we add cstack option, allocation stack traces will include native frames, however, flame graph will become too noisy:
alloc-old
All these yellow frames on the above picture make no sense. We should only include native frames when they are really needed to distinguish JVM allocations from Java allocations:
alloc-new

Proposed Solution

  1. Enable native stack traces in allocation profiles by default.
  2. Remove all native frames belonging to the common allocation path in the JVM and to async-profiler itself.
  3. Do not show native stack traces for contended lock events.

Example:
alloc-good

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change
Reacted by Long Yang

Activity

  1. apangin
    added
    enhancement
    on Sep 13, 2024
  2. apangin
    added 2 commits that reference this issue on Sep 13, 2024

    #993: Filter native frames in allocation profile

    69e0479

    #993: Filter native frames in allocation profile: OpenJ9 and stripped…

    c299592
  3. apangin
    closed this as completedon Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.