Skip to content

Add running times to .json files #2506

Closed

Description

@oharboe

Description

Based on my current best understanding, I would like to see the following added to the .json files:

  • Add running time for .json file that the step corresponds to

Once running time is in the .json file, the make elapsed could be modified to use .json file information to reduce code duplication.

Suggested Solution

Add running time to .json file

Additional Context

No response

Activity

  1. oharboe commented on Oct 24, 2024

    @oharboe
    CollaboratorAuthor
  2. maliberty commented on Oct 24, 2024

    @maliberty
    Member

    Runtimes are fine to add (though I wouldn't set any metric limit on them).

    Just because you have small skew/crpr on the worst path doesn't really tell you a lot. You might have terrible values on the second-worst path. What decision will you make based on these metrics?

  3. oharboe commented on Oct 28, 2024

    @oharboe
    CollaboratorAuthor

    @maliberty Add running times for now and close this issue?

    As you say, skew/CRPR is more of an in depth investigation than a simple metric issue.

  4. maliberty commented on Oct 28, 2024

    @maliberty
    Member

    Add running times for now and close this issue?

    Yes. Are you planning to make a PR or requesting PII do it?

  5. oharboe commented on Oct 28, 2024

    @oharboe
    CollaboratorAuthor

    Add running times for now and close this issue?

    Yes. Are you planning to make a PR or requesting PII do it?

    It is a feature request to the community. It is not urgent. You asked why I'm not using the .json files in megaboom and I filed a few github issues w.r.t. issues with using the .json files.

  6. oharboe commented on Oct 28, 2024

    @oharboe
    CollaboratorAuthor

    make elapsed could be rolled into .json if generation of .json files works SKIP_REPORT_METRICS=0

  7. changed the title [-]Add running times and skew to .json files[/-] [+]Add running times to .json files[/+] on Oct 31, 2024
  8. harsh-kumar-patwa commented on Mar 2, 2026

    @harsh-kumar-patwa
    Contributor

    Hi, I'd like to work on this!

    Currently genMetrics.py extracts elapsed times from log files but stores them as strings (e.g., "0:04.26") in the metrics JSON. This makes it hard to use them for analysis or plotting - consumers have to parse the time format manually.

    I'll add numeric elapsed_seconds fields alongside the existing string fields in the generated metadata.json, so runtimes are directly usable as numbers. The existing string fields will be kept for backwards compatibility. I'll also add a numeric total_elapsed_seconds summing all stages.

  9. added a commit that references this issue on Mar 2, 2026
    44e169e
  10. harsh-kumar-patwa commented on Mar 2, 2026

    @harsh-kumar-patwa
    Contributor

    Raised a PR for this : #3943

    Added numeric elapsed_seconds fields alongside the existing string runtime__total fields in the metrics JSON. Each stage gets a <stage>__elapsed_seconds (float in seconds), and there's a total_elapsed_seconds for the sum. Existing fields are unchanged for backwards compatibility.

    Let me know if anything needs adjusting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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