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

Ability to run filprofiler as a module #82

Closed
eyaltrabelsi opened this issue Oct 3, 2020 · 2 comments · Fixed by #84
Closed

Ability to run filprofiler as a module #82

eyaltrabelsi opened this issue Oct 3, 2020 · 2 comments · Fixed by #84
Labels
enhancement New feature or request

Comments

@eyaltrabelsi
Copy link

I would love to be able to run filprofiler as a module in a similar manner to memory_profiler and cprofiler.
python -m filprofiler example.py

@itamarst
Copy link
Collaborator

itamarst commented Oct 3, 2020

Should be doable, yeah. What's the motivation for running it that way, if I can ask?

@itamarst itamarst added the enhancement New feature or request label Oct 3, 2020
@eyaltrabelsi
Copy link
Author

@itamarst there are a few reasons:

  • The most important one is that most profilers are used this one so switching from
    python -m memory_profiler foo.py to filprofiler will be easier python -m filprofiler foo.py
  • Another thing if u don't work with virtualenvs its harder to pick which python version to choose (similar to pip)
  • Lastly, the way imports works is a bit different but not sure if it's problematic or not

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

Successfully merging a pull request may close this issue.

2 participants