Skip to content

PYINSTRUMENT_SHOW_CALLBACK should not be ignored if PYINSTRUMENT_PROFILE_DIR is defined #342

@maingoh

Description

@maingoh

I defined PYINSTRUMENT_PROFILE_DIR to record multiple requests, but I also would like to ignore some of them to avoid having too much reports being generated. So I would to be able to set PYINSTRUMENT_PROFILE_DIR and also PYINSTRUMENT_SHOW_CALLBACK. But according the the code, when PYINSTRUMENT_PROFILE_DIR is defined, all requests are recorded and PYINSTRUMENT_SHOW_CALLBACK is ignored.

Thus I think we could remove the or condition here

) or profile_dir:
as by default PYINSTRUMENT_SHOW_CALLBACK = True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions