Skip to content

Instantly share code, notes, and snippets.

@flatcap
Created May 31, 2021 00:24
Show Gist options
  • Select an option

  • Save flatcap/393f6e222f29209026fd048dec1dfb41 to your computer and use it in GitHub Desktop.

Select an option

Save flatcap/393f6e222f29209026fd048dec1dfb41 to your computer and use it in GitHub Desktop.
notmuch functions that use the progress bar
digraph callgraph {
graph [
rankdir="LR"
nodesep="0.2"
ranksep="0.5"
compound="true"
]
node [
shape="Mrecord"
fontsize="12"
fillcolor="#ffffff"
style="filled"
height="0.2"
penwidth="1.5"
color="black"
]
edge [
penwidth="1.0"
arrowsize="0.5"
]
node [ color="#ff0000" ]
append_message
nm_mbox_check
nm_mbox_open
nm_read_entire_thread
{ rank=same nm_mbox_check nm_mbox_open nm_read_entire_thread }
node [ color="#000000" ]
append_replies -> append_message
append_thread -> append_message
append_thread -> append_replies
nm_mbox_check -> append_message
nm_mbox_open -> read_mesgs_query
nm_mbox_open -> read_threads_query
nm_read_entire_thread -> read_threads_query
read_mesgs_query -> append_message
read_threads_query -> append_thread
}
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.0 (0)
-->
<!-- Title: callgraph Pages: 1 -->
<svg width="800pt" height="124pt"
viewBox="0.00 0.00 800.00 124.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 120)">
<title>callgraph</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-120 796,-120 796,4 -4,4"/>
<!-- append_message -->
<g id="node1" class="node">
<title>append_message</title>
<path fill="#ffffff" stroke="#ff0000" stroke-width="1.5" d="M677,-48.5C677,-48.5 785,-48.5 785,-48.5 788.5,-48.5 792,-52 792,-55.5 792,-55.5 792,-62.5 792,-62.5 792,-66 788.5,-69.5 785,-69.5 785,-69.5 677,-69.5 677,-69.5 673.5,-69.5 670,-66 670,-62.5 670,-62.5 670,-55.5 670,-55.5 670,-52 673.5,-48.5 677,-48.5"/>
<text text-anchor="middle" x="731" y="-55.9" font-family="Times-Roman" font-size="12.00">append_message</text>
</g>
<!-- nm_mbox_check -->
<g id="node2" class="node">
<title>nm_mbox_check</title>
<path fill="#ffffff" stroke="#ff0000" stroke-width="1.5" d="M26.5,-94.5C26.5,-94.5 128.5,-94.5 128.5,-94.5 132,-94.5 135.5,-98 135.5,-101.5 135.5,-101.5 135.5,-108.5 135.5,-108.5 135.5,-112 132,-115.5 128.5,-115.5 128.5,-115.5 26.5,-115.5 26.5,-115.5 23,-115.5 19.5,-112 19.5,-108.5 19.5,-108.5 19.5,-101.5 19.5,-101.5 19.5,-98 23,-94.5 26.5,-94.5"/>
<text text-anchor="middle" x="77.5" y="-101.9" font-family="Times-Roman" font-size="12.00">nm_mbox_check</text>
</g>
<!-- nm_mbox_check&#45;&gt;append_message -->
<g id="edge4" class="edge">
<title>nm_mbox_check&#45;&gt;append_message</title>
<path fill="none" stroke="black" d="M135.55,-104.82C236.5,-103.87 453.03,-98.91 634,-75 644.22,-73.65 655.02,-72.03 665.55,-70.36"/>
<polygon fill="black" stroke="black" points="666.03,-72.05 670.69,-69.53 665.48,-68.6 666.03,-72.05"/>
</g>
<!-- nm_mbox_open -->
<g id="node3" class="node">
<title>nm_mbox_open</title>
<path fill="#ffffff" stroke="#ff0000" stroke-width="1.5" d="M29,-58.5C29,-58.5 126,-58.5 126,-58.5 129.5,-58.5 133,-62 133,-65.5 133,-65.5 133,-72.5 133,-72.5 133,-76 129.5,-79.5 126,-79.5 126,-79.5 29,-79.5 29,-79.5 25.5,-79.5 22,-76 22,-72.5 22,-72.5 22,-65.5 22,-65.5 22,-62 25.5,-58.5 29,-58.5"/>
<text text-anchor="middle" x="77.5" y="-65.9" font-family="Times-Roman" font-size="12.00">nm_mbox_open</text>
</g>
<!-- read_mesgs_query -->
<g id="node7" class="node">
<title>read_mesgs_query</title>
<path fill="#ffffff" stroke="#000000" stroke-width="1.5" d="M369,-60.5C369,-60.5 484,-60.5 484,-60.5 487.5,-60.5 491,-64 491,-67.5 491,-67.5 491,-74.5 491,-74.5 491,-78 487.5,-81.5 484,-81.5 484,-81.5 369,-81.5 369,-81.5 365.5,-81.5 362,-78 362,-74.5 362,-74.5 362,-67.5 362,-67.5 362,-64 365.5,-60.5 369,-60.5"/>
<text text-anchor="middle" x="426.5" y="-67.9" font-family="Times-Roman" font-size="12.00">read_mesgs_query</text>
</g>
<!-- nm_mbox_open&#45;&gt;read_mesgs_query -->
<g id="edge5" class="edge">
<title>nm_mbox_open&#45;&gt;read_mesgs_query</title>
<path fill="none" stroke="black" d="M133.1,-69.31C193.55,-69.66 291.12,-70.23 356.74,-70.6"/>
<polygon fill="black" stroke="black" points="356.79,-72.35 361.8,-70.63 356.81,-68.85 356.79,-72.35"/>
</g>
<!-- read_threads_query -->
<g id="node8" class="node">
<title>read_threads_query</title>
<path fill="#ffffff" stroke="#000000" stroke-width="1.5" d="M198,-23.5C198,-23.5 319,-23.5 319,-23.5 322.5,-23.5 326,-27 326,-30.5 326,-30.5 326,-37.5 326,-37.5 326,-41 322.5,-44.5 319,-44.5 319,-44.5 198,-44.5 198,-44.5 194.5,-44.5 191,-41 191,-37.5 191,-37.5 191,-30.5 191,-30.5 191,-27 194.5,-23.5 198,-23.5"/>
<text text-anchor="middle" x="258.5" y="-30.9" font-family="Times-Roman" font-size="12.00">read_threads_query</text>
</g>
<!-- nm_mbox_open&#45;&gt;read_threads_query -->
<g id="edge6" class="edge">
<title>nm_mbox_open&#45;&gt;read_threads_query</title>
<path fill="none" stroke="black" d="M132.21,-58.5C153.08,-54.42 177.07,-49.73 198.44,-45.55"/>
<polygon fill="black" stroke="black" points="198.95,-47.23 203.52,-44.55 198.28,-43.8 198.95,-47.23"/>
</g>
<!-- nm_read_entire_thread -->
<g id="node4" class="node">
<title>nm_read_entire_thread</title>
<path fill="#ffffff" stroke="#ff0000" stroke-width="1.5" d="M7,-22.5C7,-22.5 148,-22.5 148,-22.5 151.5,-22.5 155,-26 155,-29.5 155,-29.5 155,-36.5 155,-36.5 155,-40 151.5,-43.5 148,-43.5 148,-43.5 7,-43.5 7,-43.5 3.5,-43.5 0,-40 0,-36.5 0,-36.5 0,-29.5 0,-29.5 0,-26 3.5,-22.5 7,-22.5"/>
<text text-anchor="middle" x="77.5" y="-29.9" font-family="Times-Roman" font-size="12.00">nm_read_entire_thread</text>
</g>
<!-- nm_read_entire_thread&#45;&gt;read_threads_query -->
<g id="edge7" class="edge">
<title>nm_read_entire_thread&#45;&gt;read_threads_query</title>
<path fill="none" stroke="black" d="M155.19,-33.43C165.29,-33.48 175.61,-33.54 185.63,-33.6"/>
<polygon fill="black" stroke="black" points="185.83,-35.35 190.84,-33.63 185.85,-31.85 185.83,-35.35"/>
</g>
<!-- append_replies -->
<g id="node5" class="node">
<title>append_replies</title>
<path fill="#ffffff" stroke="#000000" stroke-width="1.5" d="M534,-0.5C534,-0.5 627,-0.5 627,-0.5 630.5,-0.5 634,-4 634,-7.5 634,-7.5 634,-14.5 634,-14.5 634,-18 630.5,-21.5 627,-21.5 627,-21.5 534,-21.5 534,-21.5 530.5,-21.5 527,-18 527,-14.5 527,-14.5 527,-7.5 527,-7.5 527,-4 530.5,-0.5 534,-0.5"/>
<text text-anchor="middle" x="580.5" y="-7.9" font-family="Times-Roman" font-size="12.00">append_replies</text>
</g>
<!-- append_replies&#45;&gt;append_message -->
<g id="edge1" class="edge">
<title>append_replies&#45;&gt;append_message</title>
<path fill="none" stroke="black" d="M614.09,-21.53C637.2,-29.01 668.28,-39.05 692.44,-46.86"/>
<polygon fill="black" stroke="black" points="692.19,-48.62 697.49,-48.49 693.27,-45.29 692.19,-48.62"/>
</g>
<!-- append_thread -->
<g id="node6" class="node">
<title>append_thread</title>
<path fill="#ffffff" stroke="#000000" stroke-width="1.5" d="M380,-23.5C380,-23.5 473,-23.5 473,-23.5 476.5,-23.5 480,-27 480,-30.5 480,-30.5 480,-37.5 480,-37.5 480,-41 476.5,-44.5 473,-44.5 473,-44.5 380,-44.5 380,-44.5 376.5,-44.5 373,-41 373,-37.5 373,-37.5 373,-30.5 373,-30.5 373,-27 376.5,-23.5 380,-23.5"/>
<text text-anchor="middle" x="426.5" y="-30.9" font-family="Times-Roman" font-size="12.00">append_thread</text>
</g>
<!-- append_thread&#45;&gt;append_message -->
<g id="edge2" class="edge">
<title>append_thread&#45;&gt;append_message</title>
<path fill="none" stroke="black" d="M480.19,-38.35C531.44,-42.59 609.42,-49.03 664.6,-53.6"/>
<polygon fill="black" stroke="black" points="664.74,-55.36 669.87,-54.03 665.03,-51.87 664.74,-55.36"/>
</g>
<!-- append_thread&#45;&gt;append_replies -->
<g id="edge3" class="edge">
<title>append_thread&#45;&gt;append_replies</title>
<path fill="none" stroke="black" d="M480.24,-26.02C493.68,-23.99 508.19,-21.79 521.86,-19.72"/>
<polygon fill="black" stroke="black" points="522.18,-21.44 526.86,-18.97 521.65,-17.98 522.18,-21.44"/>
</g>
<!-- read_mesgs_query&#45;&gt;append_message -->
<g id="edge8" class="edge">
<title>read_mesgs_query&#45;&gt;append_message</title>
<path fill="none" stroke="black" d="M491.28,-68.47C542.23,-66.45 613.35,-63.63 664.69,-61.59"/>
<polygon fill="black" stroke="black" points="664.98,-63.33 669.91,-61.38 664.84,-59.83 664.98,-63.33"/>
</g>
<!-- read_threads_query&#45;&gt;append_thread -->
<g id="edge9" class="edge">
<title>read_threads_query&#45;&gt;append_thread</title>
<path fill="none" stroke="black" d="M326.06,-34C339.84,-34 354.24,-34 367.68,-34"/>
<polygon fill="black" stroke="black" points="367.97,-35.75 372.97,-34 367.97,-32.25 367.97,-35.75"/>
</g>
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment