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 — Binary launcher · Issue #724 · async-profiler/async-profiler

Binary launcher #724

New issue
Copy link
New issue
Copy link
Closed
Closed
Binary launcher#724
Copy link
Labels
enhancement

Description

@apangin
apangin
opened on Mar 12, 2023
Issue body actions

Background

async-profiler currently includes the following components:

  • libasyncProfiler.so - profiler engine that works in the context of Java process;
  • jattach - utility to inject the profiler engine into the target JVM;
  • fdtransfer - helper for profiling containerized applications;
  • profiler.sh - profiler command-line interface written in shell script.

The package has non-standard structure: with binaries in the build folder and CLI together with the documentation in the root folder.

Proposal

  1. Reshape the package to a more conventional structure:
    • /bin directory with the profiler launcher;
    • /lib with libasyncProfiler.so.
  2. Make the launcher a binary executable asprof instead of profiler.sh.
  3. Incorporate the functionality of jattach and fdtransfer in the launcher, so the package contains no other executables besides asprof.

Motivation

  1. Intuitive usage.
  2. Simpler deployment / integration.
  3. Less typing.
  4. Preparation for building packages in commonly used formats: RPM, DEB, etc.
  5. More flexibility, e.g., the binary launcher may in future switch between host and container namespaces to provide seamless user experience: automatically copy the profiler library into the container and get the output from the container.
  6. The same statically linked executable may work both with glibc and musl.

Non-goals

  1. There is no intention to change existing command line syntax, except for minor nuances.

Target release

async-profiler 3.x

Reacted by Yonatan Goldschmidt, Drew Hammond, Denis M. Gabaydulin and Ismael Juma
Reacted by Kemal Akkoyun and Ismael Juma

Activity

  1. apangin
    added
    enhancement
    on Mar 12, 2023
  2. apangin
    added a commit that references this issue on Mar 12, 2023

    #724: Binary launcher

    4a7ce8c
  3. apangin
    added a commit that references this issue on Mar 24, 2023

    #724: No more profiler.sh

    7f4b653
  4. v-thakkar commented on Mar 27, 2023

    @v-thakkar
    v-thakkar
    on Mar 27, 2023
    More actions

    Hi @apangin ! This seems like a nice initiative. I am wondering if you plan to have any changes in the libasyncprofiler.so as part of this issue? Asking because we're currently in the process of embedding async-profiler in parca-agent and our plan is to have our own profiler launcher (replacement for profiler.sh) that hooks into arguments.h via shared object. We don't plan to use fdtransfer but we do plan to use jattach. So, I just wanted to have more details about this work than the one that has been already merged, just so we can plan our architecture accordingly. Thanks for your work on async-profiler. We're very excited to use it. 🎉

  5. apangin commented on Mar 28, 2023

    @apangin
    apangin
    on Mar 28, 2023
    CollaboratorAuthor
    More actions

    @v-thakkar The proposed change does not affect the API of the agent library. libasyncProfiler.so should remain intact.

    jattach will not be bundled with async-profiler anymore, however, it will be still possible to load libasyncProfiler.so using a separate jattach binary.

    Reacted by Vaishali Thakkar and Kemal Akkoyun
    Reacted by Brice Dutheil
  6. apangin commented on Mar 30, 2023

    @apangin
    apangin
    on Mar 30, 2023
    CollaboratorAuthor
    More actions

    Binary launcher has been integrated; directory structure has been changed; profiler.sh, jattach and fdtransfer are no longer bundled with async-profiler.
    Futher work (e.g. packaging and better container support) will be done in separate issues.

    Reacted by Vaishali Thakkar
  7. apangin
    closed this as completedon Mar 30, 2023
  8. kabunchi
    added a commit that references this issue on May 29, 2023

    async-profiler#724: Fix readme following removal of profiler.sh

    a6273cd
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.