Skip to content

Commit

Permalink
comment out debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jhazentia committed Feb 9, 2024
1 parent c054376 commit ea2eefe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scos_actions/actions/acquire_stepped_freq_tdomain_iq.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int):
self._sensor = sensor
self.test_required_components()
saved_samples = 0
last_snapshot = None
tracemalloc.start()
#last_snapshot = None
#tracemalloc.start()

for recording_id, measurement_params in enumerate(
self.iterable_params, start=1
Expand Down Expand Up @@ -141,13 +141,13 @@ def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int):

logger.debug("Creating metadata for measurement result")
self.create_metadata(measurement_result, recording_id)
snapshot = tracemalloc.take_snapshot()
if last_snapshot:
stats = snapshot.compare_to(last_snapshot, 'lineno')
logger.debug("memory snapshot comparison")
for stat in stats[:10]:
logger.debug(stat)
last_snapshot = snapshot
# snapshot = tracemalloc.take_snapshot()
# if last_snapshot:
# stats = snapshot.compare_to(last_snapshot, 'lineno')
# logger.debug("memory snapshot comparison")
# for stat in stats[:10]:
# logger.debug(stat)
# last_snapshot = snapshot
logger.debug("sending measurement result to handler")
measurement_action_completed.send(
sender=self.__class__,
Expand Down

0 comments on commit ea2eefe

Please sign in to comment.