Skip to content

Instantly share code, notes, and snippets.

View elmehalawi's full-sized avatar

Hassan El-Mehalawi elmehalawi

  • Houston
View GitHub Profile
elmehalawi /
Last active April 15, 2021 08:31 — forked from mskrajnowski/
Flamegraph django middleware
Django middleware for generating request flame graphs.
Requires the perl script:
1. Create a directory for flame graphs
2. Copy the script to it
3. Add the FLAMES_DIR django setting
4. Add the flames.FlamesMiddleware to MIDDLEWARE_CLASSES
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Collapsible Tree Example</title>
.node circle {