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 — Loop & Timeout are confusing together · Issue #1621 · async-profiler/async-profiler

Loop & Timeout are confusing together #1621

New issue
Copy link
New issue
Copy link
Closed
Closed
Loop & Timeout are confusing together#1621
Copy link
Labels
enhancement

Description

@Baraa-Hasheesh
Baraa-Hasheesh
opened on Dec 13, 2025
Issue body actions

Describe the bug

Currently in async-profiler the following descriptions exists for loop & timeout

timeout: The profiling duration, in seconds. The profiler will run for the specified period of time and then automatically stop.

loop: Run profiler in a loop (continuous profiling).

From the provided description a user might assume it's possible to use both at the same time for example, the user might want to run the profiler in continuous profiling with 1 hour profiling session window with a max run duration of 24 hours
-> --loop 1h --timeout 86400

However this won't work as expected, in the above case the profiler will work in loop mode & generate a profiling session every 24 hours

            CASE("timeout")
                if (value == NULL || (_timeout = parseTimeout(value)) == -1) {
                    msg = "Invalid timeout";
                }

            CASE("loop")
                _loop = true;
                if (value == NULL || (_timeout = parseTimeout(value)) == -1) {
                    msg = "Invalid loop duration";
                }

Expected vs. actual behavior

I should be able to use both loop & timeout at the same time

Reproduction Steps

run loop & timeout together

Additional Information/Context

No response

Async-profiler version

latest

Environment details

No response

Activity

  1. Baraa-Hasheesh
    added
    enhancement
    on Dec 13, 2025
  2. Baraa-Hasheesh commented on Dec 19, 2025

    @Baraa-Hasheesh
    Baraa-Hasheesh
    on Dec 19, 2025
    ContributorAuthor
    More actions

    Fixed in #1625

  3. Baraa-Hasheesh
    closed this as completedon Dec 19, 2025
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.