diff --git a/src/qseek/search.py b/src/qseek/search.py index d01b0e15..c1d0d9d4 100644 --- a/src/qseek/search.py +++ b/src/qseek/search.py @@ -3,7 +3,8 @@ import asyncio import logging from collections import deque -from cProfile import Profile + +# from cProfile import Profile from datetime import datetime, timedelta, timezone from itertools import chain from pathlib import Path @@ -56,7 +57,7 @@ logger = logging.getLogger(__name__) SamplingRate = Literal[10, 20, 25, 50, 100, 200] -p = Profile() +# p = Profile() class SearchStats(Stats): @@ -720,7 +721,7 @@ async def search( tuple[list[EventDetection], Trace]: The event detections and the semblance traces used for the search. """ - p.enable() + # p.enable() parent = self.parent sampling_rate = parent.semblance_sampling_rate @@ -885,6 +886,6 @@ async def search( detections.append(detection) - p.disable() - p.dump_stats("search.prof") + # p.disable() + # p.dump_stats("search.prof") return detections, semblance.get_trace()