From a658c34d0290d2905e4867fdd92fa0dc80925823 Mon Sep 17 00:00:00 2001 From: roadscape Date: Wed, 16 Jan 2019 10:23:15 -0600 Subject: [PATCH] example profiling code --- hive/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hive/cli.py b/hive/cli.py index b0164849f..18f5101ee 100755 --- a/hive/cli.py +++ b/hive/cli.py @@ -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)