Skip to content

Commit

Permalink
Remove profiling code in favor of -m cProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gwax committed May 28, 2017
1 parent 70eec25 commit 23d80ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 43 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ Changelog
master
------

- Remove profiling code. If we care, we can invoke profiling with:

.. code:: sh
python -m cProfile -o mtg_ssm.prof mtg_ssm/ssm.py create collection.xlsx
- Fix wheel generation to only build py3 wheels.

1.3.4
Expand Down
37 changes: 0 additions & 37 deletions mtg_ssm/profiling.py

This file was deleted.

7 changes: 1 addition & 6 deletions mtg_ssm/ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import mtg_ssm

from mtg_ssm import mtgjson
from mtg_ssm import profiling
import mtg_ssm.serialization.interface as ser_interface
from mtg_ssm.mtg import card_db
from mtg_ssm.mtg import counts
Expand Down Expand Up @@ -45,9 +44,6 @@ def get_args(args=None):
parser.add_argument(
'--include-online-only', default=False, action='store_true',
help='Include online only sets (e.g. Masters sets)')
parser.add_argument(
'--profile-stats', default=False, action='store_true',
help='Output profiling statistics (for debugging)')

parser.add_argument(
'-d', '--dialect', nargs=2, metavar=('EXTENSION', 'DIALECT'),
Expand Down Expand Up @@ -197,8 +193,7 @@ def diff_cmd(args):
def main():
"""Get args and run the appropriate command."""
args = get_args()
with profiling.profiled(enabled=args.profile_stats):
args.func(args)
args.func(args)


if __name__ == '__main__':
Expand Down

0 comments on commit 23d80ad

Please sign in to comment.