Skip to content

Instantly share code, notes, and snippets.

View puliyadivinod's full-sized avatar
🎯
Focusing

Vinod Puliyadi puliyadivinod

🎯
Focusing
View GitHub Profile
@puliyadivinod
puliyadivinod / track_celery.py
Created August 9, 2019 15:58 — forked from hanneshapke/track_celery.py
Decorator for Celery functions to measure the execution time and memory usage
import time
from memory_profiler import memory_usage
import logging
celery_logger = logging.getLogger('celery')
def track_celery(method):
"""