Skip to content

Instantly share code, notes, and snippets.

@hanneshapke
hanneshapke / track_celery.py
Created July 22, 2016 03:41
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):
"""
@mbostock
mbostock / .block
Last active August 27, 2017 21:09 — forked from dustin/index.html
Text Along a Path
license: gpl-3.0