summaryrefslogtreecommitdiff
path: root/tools/heapdot.py
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-08-10 18:50:41 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2021-05-05 16:36:54 -0700
commit0047f62fe8086c0007f66c5c33ed08daf7fd8eb7 (patch)
tree04906a4e83a0d7708ea61a69c68bb0d75694bbd7 /tools/heapdot.py
parent1b763b17a1a041e009e02dda2881464414dae6d8 (diff)
downloadgjs-0047f62fe8086c0007f66c5c33ed08daf7fd8eb7.tar.gz
heapgraph: Add special formatting for Proxy nodes
Proxies will play a large role in GJS, after the taking-out-the-garbage patches are merged, so they should be formatted specially in heapgraph output. See GNOME/gjs#217.
Diffstat (limited to 'tools/heapdot.py')
-rw-r--r--tools/heapdot.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/heapdot.py b/tools/heapdot.py
index c580669a..f47fdae7 100644
--- a/tools/heapdot.py
+++ b/tools/heapdot.py
@@ -119,6 +119,10 @@ def output_dot_file(args, graph, targs, fname):
elif label.startswith('WeakMap'):
label = 'WeakMap'
style = 'dashed'
+ # A Proxy
+ elif label.startswith('Proxy'):
+ shape = 'doublecircle'
+ color = 'goldenrod2'
# Mostly uninteresting objects
elif label in ['base_shape', 'object_group', 'type_object']:
style = 'dotted'