Skip to content

Commit

Permalink
example profiling code
Browse files Browse the repository at this point in the history
  • Loading branch information
roadscape committed Jan 16, 2019
1 parent 48d62fe commit a658c34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hive/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ def run():
from hive.db.db_state import DbState
print(DbState.status())

#elif mode == 'sync-profile':
# from hive.indexer.sync import Sync
# from hive.utils.profiler import Profiler
# with Profiler():
# Sync(conf=conf).run()

else:
raise Exception("unknown run mode %s" % mode)

Expand Down

0 comments on commit a658c34

Please sign in to comment.