Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom progress categories #33

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Support custom progress categories #33

merged 2 commits into from
Sep 4, 2024

Conversation

encounter
Copy link
Owner

Example:

config.progress_categories = [
    ProgressCategory("game", "Game Code"),
    ProgressCategory("sdk", "SDK Code"),
]

config.libs = [
    {
        "lib": "LibraryA",
        "progress_category": "sdk", # For a whole library
        "objects": [
            # Override a specific object
            Object(NonMatching, "file.c", progress_category=["sdk", "game"]),
        ],
    },
]

Progress output:

[1/2] PROGRESS
Progress:
  All: 1.18% code, 0.66% data (10 / 4874 files)
    Code: 41992 / 3558032 bytes
    Data: 30573 / 4636761 bytes
  DOL: 1.33% code, 1.08% data (10 / 4864 files)
    Code: 41992 / 3147956 bytes
    Data: 30573 / 2829573 bytes
  Modules: 0.00% code, 0.00% data (0 / 10 files)
    Code: 0 / 410076 bytes
    Data: 0 / 1807188 bytes
  Game Code: 1.33% code, 1.08% data (10 / 4864 files)
    Code: 41992 / 3147956 bytes
    Data: 30573 / 2829573 bytes
  SDK Code: 0.00% code, 0.00% data (0 / 10 files)
    Code: 0 / 410076 bytes
    Data: 0 / 1807188 bytes

Progress categories will be automatically included in the objdiff report as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant