Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ggoretkin-bdai/37397cbdb9c2f7282ef8dba00e1fa2c7 to your computer and use it in GitHub Desktop.
Save ggoretkin-bdai/37397cbdb9c2f7282ef8dba00e1fa2c7 to your computer and use it in GitHub Desktop.
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg version="1.1" width="1200" height="346" onload="init(evt)" viewBox="0 0 1200 346" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fg="http://github.com/jonhoo/inferno"><!--Flame graph stack visualization. See https://github.com/brendangregg/FlameGraph for latest version, and http://www.brendangregg.com/flamegraphs.html for examples.--><!--NOTES: --><defs><linearGradient id="background" y1="0" y2="1" x1="0" x2="0"><stop stop-color="#eeeeee" offset="5%"/><stop stop-color="#eeeeb0" offset="95%"/></linearGradient></defs><style type="text/css">
text { font-family:"Verdana"; font-size:12px; fill:rgb(0,0,0); }
#title { text-anchor:middle; font-size:17px; }
#matched { text-anchor:end; }
#search { text-anchor:end; opacity:0.1; cursor:pointer; }
#search:hover, #search.show { opacity:1; }
#subtitle { text-anchor:middle; font-color:rgb(160,160,160); }
#unzoom { cursor:pointer; }
#frames > *:hover { stroke:black; stroke-width:0.5; cursor:pointer; }
.hide { display:none; }
.parent { opacity:0.5; }
</style><script type="text/ecmascript"><![CDATA[
var nametype = 'Function:';
var fontsize = 12;
var fontwidth = 0.59;
var xpad = 10;
var inverted = true;
var searchcolor = 'rgb(230,0,230)';
var fluiddrawing = true;
var truncate_text_right = false;
]]><![CDATA["use strict";
var details, searchbtn, unzoombtn, matchedtxt, svg, searching, frames;
function init(evt) {
details = document.getElementById("details").firstChild;
searchbtn = document.getElementById("search");
unzoombtn = document.getElementById("unzoom");
matchedtxt = document.getElementById("matched");
svg = document.getElementsByTagName("svg")[0];
frames = document.getElementById("frames");
total_samples = parseInt(frames.attributes.total_samples.value);
searching = 0;
// Use GET parameters to restore a flamegraph's state.
var restore_state = function() {
var params = get_params();
if (params.x && params.y)
zoom(find_group(document.querySelector('[*|x="' + params.x + '"][y="' + params.y + '"]')));
if (params.s)
search(params.s);
};
if (fluiddrawing) {
// Make width dynamic so the SVG fits its parent's width.
svg.removeAttribute("width");
// Edge requires us to have a viewBox that gets updated with size changes.
var isEdge = /Edge\/\d./i.test(navigator.userAgent);
var update_for_width_change = function() {
if (isEdge) {
svg.attributes.viewBox.value = "0 0 " + svg.width.baseVal.value + " " + svg.height.baseVal.value;
}
// Keep consistent padding on left and right of frames container.
frames.attributes.width.value = svg.width.baseVal.value - xpad * 2;
// Text truncation needs to be adjusted for the current width.
var el = frames.children;
for(var i = 0; i < el.length; i++) {
update_text(el[i]);
}
// Keep search elements at a fixed distance from right edge.
var svgWidth = svg.width.baseVal.value;
searchbtn.attributes.x.value = svgWidth - xpad;
matchedtxt.attributes.x.value = svgWidth - xpad;
};
window.addEventListener('resize', function() {
update_for_width_change();
});
// This needs to be done asynchronously for Safari to work.
setTimeout(function() {
unzoom();
update_for_width_change();
restore_state();
if (!isEdge) {
svg.removeAttribute("viewBox");
}
}, 0);
} else {
restore_state();
}
}
// event listeners
window.addEventListener("click", function(e) {
var target = find_group(e.target);
if (target) {
if (target.nodeName == "a") {
if (e.ctrlKey === false) return;
e.preventDefault();
}
if (target.classList.contains("parent")) unzoom();
zoom(target);
// set parameters for zoom state
var el = target.querySelector("rect");
if (el && el.attributes && el.attributes.y && el.attributes["fg:x"]) {
var params = get_params()
params.x = el.attributes["fg:x"].value;
params.y = el.attributes.y.value;
history.replaceState(null, null, parse_params(params));
}
}
else if (e.target.id == "unzoom") {
unzoom();
// remove zoom state
var params = get_params();
if (params.x) delete params.x;
if (params.y) delete params.y;
history.replaceState(null, null, parse_params(params));
}
else if (e.target.id == "search") search_prompt();
}, false)
// mouse-over for info
// show
window.addEventListener("mouseover", function(e) {
var target = find_group(e.target);
if (target) details.nodeValue = nametype + " " + g_to_text(target);
}, false)
// clear
window.addEventListener("mouseout", function(e) {
var target = find_group(e.target);
if (target) details.nodeValue = ' ';
}, false)
// ctrl-F for search
window.addEventListener("keydown",function (e) {
if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) {
e.preventDefault();
search_prompt();
}
}, false)
// functions
function get_params() {
var params = {};
var paramsarr = window.location.search.substr(1).split('&');
for (var i = 0; i < paramsarr.length; ++i) {
var tmp = paramsarr[i].split("=");
if (!tmp[0] || !tmp[1]) continue;
params[tmp[0]] = decodeURIComponent(tmp[1]);
}
return params;
}
function parse_params(params) {
var uri = "?";
for (var key in params) {
uri += key + '=' + encodeURIComponent(params[key]) + '&';
}
if (uri.slice(-1) == "&")
uri = uri.substring(0, uri.length - 1);
if (uri == '?')
uri = window.location.href.split('?')[0];
return uri;
}
function find_child(node, selector) {
var children = node.querySelectorAll(selector);
if (children.length) return children[0];
return;
}
function find_group(node) {
var parent = node.parentElement;
if (!parent) return;
if (parent.id == "frames") return node;
return find_group(parent);
}
function orig_save(e, attr, val) {
if (e.attributes["fg:orig_" + attr] != undefined) return;
if (e.attributes[attr] == undefined) return;
if (val == undefined) val = e.attributes[attr].value;
e.setAttribute("fg:orig_" + attr, val);
}
function orig_load(e, attr) {
if (e.attributes["fg:orig_"+attr] == undefined) return;
e.attributes[attr].value = e.attributes["fg:orig_" + attr].value;
e.removeAttribute("fg:orig_" + attr);
}
function g_to_text(e) {
var text = find_child(e, "title").firstChild.nodeValue;
return (text)
}
function g_to_func(e) {
var func = g_to_text(e);
// if there's any manipulation we want to do to the function
// name before it's searched, do it here before returning.
return (func);
}
function update_text(e) {
var r = find_child(e, "rect");
var t = find_child(e, "text");
var w = parseFloat(r.attributes.width.value) * frames.attributes.width.value / 100 - 3;
var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,"");
t.attributes.x.value = format_percent((parseFloat(r.attributes.x.value) + (100 * 3 / frames.attributes.width.value)));
// Smaller than this size won't fit anything
if (w < 2 * fontsize * fontwidth) {
t.textContent = "";
return;
}
t.textContent = txt;
// Fit in full text width
if (/^ *\$/.test(txt) || t.getComputedTextLength() < w)
return;
if (truncate_text_right) {
// Truncate the right side of the text.
for (var x = txt.length - 2; x > 0; x--) {
if (t.getSubStringLength(0, x + 2) <= w) {
t.textContent = txt.substring(0, x) + "..";
return;
}
}
} else {
// Truncate the left side of the text.
for (var x = 2; x < txt.length; x++) {
if (t.getSubStringLength(x - 2, txt.length) <= w) {
t.textContent = ".." + txt.substring(x, txt.length);
return;
}
}
}
t.textContent = "";
}
// zoom
function zoom_reset(e) {
if (e.tagName == "rect") {
e.attributes.x.value = format_percent(100 * parseInt(e.attributes["fg:x"].value) / total_samples);
e.attributes.width.value = format_percent(100 * parseInt(e.attributes["fg:w"].value) / total_samples);
}
if (e.childNodes == undefined) return;
for(var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_reset(c[i]);
}
}
function zoom_child(e, x, zoomed_width_samples) {
if (e.tagName == "text") {
var parent_x = parseFloat(find_child(e.parentNode, "rect[x]").attributes.x.value);
e.attributes.x.value = format_percent(parent_x + (100 * 3 / frames.attributes.width.value));
} else if (e.tagName == "rect") {
e.attributes.x.value = format_percent(100 * (parseInt(e.attributes["fg:x"].value) - x) / zoomed_width_samples);
e.attributes.width.value = format_percent(100 * parseInt(e.attributes["fg:w"].value) / zoomed_width_samples);
}
if (e.childNodes == undefined) return;
for(var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_child(c[i], x, zoomed_width_samples);
}
}
function zoom_parent(e) {
if (e.attributes) {
if (e.attributes.x != undefined) {
e.attributes.x.value = "0.0%";
}
if (e.attributes.width != undefined) {
e.attributes.width.value = "100.0%";
}
}
if (e.childNodes == undefined) return;
for(var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_parent(c[i]);
}
}
function zoom(node) {
var attr = find_child(node, "rect").attributes;
var width = parseInt(attr["fg:w"].value);
var xmin = parseInt(attr["fg:x"].value);
var xmax = xmin + width;
var ymin = parseFloat(attr.y.value);
unzoombtn.classList.remove("hide");
var el = frames.children;
for (var i = 0; i < el.length; i++) {
var e = el[i];
var a = find_child(e, "rect").attributes;
var ex = parseInt(a["fg:x"].value);
var ew = parseInt(a["fg:w"].value);
// Is it an ancestor
if (!inverted) {
var upstack = parseFloat(a.y.value) > ymin;
} else {
var upstack = parseFloat(a.y.value) < ymin;
}
if (upstack) {
// Direct ancestor
if (ex <= xmin && (ex+ew) >= xmax) {
e.classList.add("parent");
zoom_parent(e);
update_text(e);
}
// not in current path
else
e.classList.add("hide");
}
// Children maybe
else {
// no common path
if (ex < xmin || ex >= xmax) {
e.classList.add("hide");
}
else {
zoom_child(e, xmin, width);
update_text(e);
}
}
}
}
function unzoom() {
unzoombtn.classList.add("hide");
var el = frames.children;
for(var i = 0; i < el.length; i++) {
el[i].classList.remove("parent");
el[i].classList.remove("hide");
zoom_reset(el[i]);
update_text(el[i]);
}
}
// search
function reset_search() {
var el = document.querySelectorAll("#frames rect");
for (var i = 0; i < el.length; i++) {
orig_load(el[i], "fill")
}
var params = get_params();
delete params.s;
history.replaceState(null, null, parse_params(params));
}
function search_prompt() {
if (!searching) {
var term = prompt("Enter a search term (regexp " +
"allowed, eg: ^ext4_)", "");
if (term != null) {
search(term)
}
} else {
reset_search();
searching = 0;
searchbtn.classList.remove("show");
searchbtn.firstChild.nodeValue = "Search"
matchedtxt.classList.add("hide");
matchedtxt.firstChild.nodeValue = ""
}
}
function search(term) {
var re = new RegExp(term);
var el = frames.children;
var matches = new Object();
var maxwidth = 0;
for (var i = 0; i < el.length; i++) {
var e = el[i];
// Skip over frames which are either not visible, or below the zoomed-to frame
if (e.classList.contains("hide") || e.classList.contains("parent")) {
continue;
}
var func = g_to_func(e);
var rect = find_child(e, "rect");
if (func == null || rect == null)
continue;
// Save max width. Only works as we have a root frame
var w = parseInt(rect.attributes["fg:w"].value);
if (w > maxwidth)
maxwidth = w;
if (func.match(re)) {
// highlight
var x = parseInt(rect.attributes["fg:x"].value);
orig_save(rect, "fill");
rect.attributes.fill.value = searchcolor;
// remember matches
if (matches[x] == undefined) {
matches[x] = w;
} else {
if (w > matches[x]) {
// overwrite with parent
matches[x] = w;
}
}
searching = 1;
}
}
if (!searching)
return;
var params = get_params();
params.s = term;
history.replaceState(null, null, parse_params(params));
searchbtn.classList.add("show");
searchbtn.firstChild.nodeValue = "Reset Search";
// calculate percent matched, excluding vertical overlap
var count = 0;
var lastx = -1;
var lastw = 0;
var keys = Array();
for (k in matches) {
if (matches.hasOwnProperty(k))
keys.push(k);
}
// sort the matched frames by their x location
// ascending, then width descending
keys.sort(function(a, b){
return a - b;
});
// Step through frames saving only the biggest bottom-up frames
// thanks to the sort order. This relies on the tree property
// where children are always smaller than their parents.
for (var k in keys) {
var x = parseInt(keys[k]);
var w = matches[keys[k]];
if (x >= lastx + lastw) {
count += w;
lastx = x;
lastw = w;
}
}
// display matched percent
matchedtxt.classList.remove("hide");
var pct = 100 * count / maxwidth;
if (pct != 100) pct = pct.toFixed(1);
matchedtxt.firstChild.nodeValue = "Matched: " + pct + "%";
}
function format_percent(n) {
return n.toFixed(4) + "%";
}
]]></script><rect x="0" y="0" width="100%" height="346" fill="url(#background)"/><text id="title" x="50.0000%" y="24.00">py-spy record -o profile.svg -- python test/profile_zoo.py</text><text id="details" x="10" y="40.00"> </text><text id="unzoom" class="hide" x="10" y="24.00">Reset Zoom</text><text id="search" x="1190" y="24.00">Search</text><text id="matched" x="1190" y="335.00"> </text><svg id="frames" x="10" width="1180" total_samples="124"><g><title>workload_multiple_dispatch (test_zoo.py:27) (1 samples, 0.81%)</title><rect x="0.0000%" y="84" width="0.8065%" height="15" fill="rgb(227,0,7)" fg:x="0" fg:w="1"/><text x="0.2500%" y="94.50"></text></g><g><title>__init__ (example_py_multiple_dispatch/zoo.py:53) (1 samples, 0.81%)</title><rect x="4.8387%" y="100" width="0.8065%" height="15" fill="rgb(217,0,24)" fg:x="6" fg:w="1"/><text x="5.0887%" y="110.50"></text></g><g><title>workload_multiple_dispatch (test_zoo.py:28) (7 samples, 5.65%)</title><rect x="0.8065%" y="84" width="5.6452%" height="15" fill="rgb(221,193,54)" fg:x="1" fg:w="7"/><text x="1.0565%" y="94.50">workloa..</text></g><g><title>choice (random.py:378) (1 samples, 0.81%)</title><rect x="5.6452%" y="100" width="0.8065%" height="15" fill="rgb(248,212,6)" fg:x="7" fg:w="1"/><text x="5.8952%" y="110.50"></text></g><g><title>_randbelow_with_getrandbits (random.py:244) (1 samples, 0.81%)</title><rect x="5.6452%" y="116" width="0.8065%" height="15" fill="rgb(208,68,35)" fg:x="7" fg:w="1"/><text x="5.8952%" y="126.50"></text></g><g><title>__call__ (plum/function.py:368) (1 samples, 0.81%)</title><rect x="8.8710%" y="100" width="0.8065%" height="15" fill="rgb(232,128,0)" fg:x="11" fg:w="1"/><text x="9.1210%" y="110.50"></text></g><g><title>_resolve_pending_registrations (plum/function.py:246) (1 samples, 0.81%)</title><rect x="8.8710%" y="116" width="0.8065%" height="15" fill="rgb(207,160,47)" fg:x="11" fg:w="1"/><text x="9.1210%" y="126.50"></text></g><g><title>extract_signature (plum/signature.py:191) (1 samples, 0.81%)</title><rect x="8.8710%" y="132" width="0.8065%" height="15" fill="rgb(228,23,34)" fg:x="11" fg:w="1"/><text x="9.1210%" y="142.50"></text></g><g><title>_inspect_signature (plum/signature.py:170) (1 samples, 0.81%)</title><rect x="8.8710%" y="148" width="0.8065%" height="15" fill="rgb(218,30,26)" fg:x="11" fg:w="1"/><text x="9.1210%" y="158.50"></text></g><g><title>signature (inspect.py:3247) (1 samples, 0.81%)</title><rect x="8.8710%" y="164" width="0.8065%" height="15" fill="rgb(220,122,19)" fg:x="11" fg:w="1"/><text x="9.1210%" y="174.50"></text></g><g><title>from_callable (inspect.py:2995) (1 samples, 0.81%)</title><rect x="8.8710%" y="180" width="0.8065%" height="15" fill="rgb(250,228,42)" fg:x="11" fg:w="1"/><text x="9.1210%" y="190.50"></text></g><g><title>_signature_from_callable (inspect.py:2383) (1 samples, 0.81%)</title><rect x="8.8710%" y="196" width="0.8065%" height="15" fill="rgb(240,193,28)" fg:x="11" fg:w="1"/><text x="9.1210%" y="206.50"></text></g><g><title>__call__ (plum/function.py:371) (1 samples, 0.81%)</title><rect x="9.6774%" y="100" width="0.8065%" height="15" fill="rgb(216,20,37)" fg:x="12" fg:w="1"/><text x="9.9274%" y="110.50"></text></g><g><title>__call__ (plum/function.py:373) (1 samples, 0.81%)</title><rect x="10.4839%" y="100" width="0.8065%" height="15" fill="rgb(206,188,39)" fg:x="13" fg:w="1"/><text x="10.7339%" y="110.50"></text></g><g><title>resolve (plum/resolver.py:134) (1 samples, 0.81%)</title><rect x="12.0968%" y="132" width="0.8065%" height="15" fill="rgb(217,207,13)" fg:x="15" fg:w="1"/><text x="12.3468%" y="142.50"></text></g><g><title>match (plum/signature.py:147) (1 samples, 0.81%)</title><rect x="20.1613%" y="180" width="0.8065%" height="15" fill="rgb(231,73,38)" fg:x="25" fg:w="1"/><text x="20.4113%" y="190.50"></text></g><g><title>match (plum/signature.py:152) (5 samples, 4.03%)</title><rect x="20.9677%" y="180" width="4.0323%" height="15" fill="rgb(225,20,46)" fg:x="26" fg:w="5"/><text x="21.2177%" y="190.50">matc..</text></g><g><title>expand_varargs (plum/signature.py:97) (2 samples, 1.61%)</title><rect x="23.3871%" y="196" width="1.6129%" height="15" fill="rgb(210,31,41)" fg:x="29" fg:w="2"/><text x="23.6371%" y="206.50"></text></g><g><title>has_varargs (plum/signature.py:60) (2 samples, 1.61%)</title><rect x="23.3871%" y="212" width="1.6129%" height="15" fill="rgb(221,200,47)" fg:x="29" fg:w="2"/><text x="23.6371%" y="222.50"></text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:205) (3 samples, 2.42%)</title><rect x="36.2903%" y="228" width="2.4194%" height="15" fill="rgb(226,26,5)" fg:x="45" fg:w="3"/><text x="36.5403%" y="238.50">_c..</text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:245) (9 samples, 7.26%)</title><rect x="38.7097%" y="228" width="7.2581%" height="15" fill="rgb(249,33,26)" fg:x="48" fg:w="9"/><text x="38.9597%" y="238.50">_callable_..</text></g><g><title>__hash__ (beartype/_conf/confcls.py:478) (5 samples, 4.03%)</title><rect x="41.9355%" y="244" width="4.0323%" height="15" fill="rgb(235,183,28)" fg:x="52" fg:w="5"/><text x="42.1855%" y="254.50">__ha..</text></g><g><title>__hash__ (enum.py:784) (2 samples, 1.61%)</title><rect x="44.3548%" y="260" width="1.6129%" height="15" fill="rgb(221,5,38)" fg:x="55" fg:w="2"/><text x="44.6048%" y="270.50"></text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:257) (11 samples, 8.87%)</title><rect x="45.9677%" y="228" width="8.8710%" height="15" fill="rgb(247,18,42)" fg:x="57" fg:w="11"/><text x="46.2177%" y="238.50">_callable_cac..</text></g><g><title>__hash__ (beartype/_conf/confcls.py:478) (4 samples, 3.23%)</title><rect x="51.6129%" y="244" width="3.2258%" height="15" fill="rgb(241,131,45)" fg:x="64" fg:w="4"/><text x="51.8629%" y="254.50">__h..</text></g><g><title>__hash__ (enum.py:784) (1 samples, 0.81%)</title><rect x="54.0323%" y="260" width="0.8065%" height="15" fill="rgb(249,31,29)" fg:x="67" fg:w="1"/><text x="54.2823%" y="270.50"></text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:258) (1 samples, 0.81%)</title><rect x="54.8387%" y="228" width="0.8065%" height="15" fill="rgb(225,111,53)" fg:x="68" fg:w="1"/><text x="55.0887%" y="238.50"></text></g><g><title>is_bearable (beartype/door/_doorcheck.py:317) (29 samples, 23.39%)</title><rect x="33.0645%" y="212" width="23.3871%" height="15" fill="rgb(238,160,17)" fg:x="41" fg:w="29"/><text x="33.3145%" y="222.50">is_bearable (beartype/door/_doorcheck..</text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:263) (1 samples, 0.81%)</title><rect x="55.6452%" y="228" width="0.8065%" height="15" fill="rgb(214,148,48)" fg:x="69" fg:w="1"/><text x="55.8952%" y="238.50"></text></g><g><title>__beartype_tester_0 (&lt;@beartype(__beartype_tester_0) at 0x7fa5018aa4f0&gt;:7) (1 samples, 0.81%)</title><rect x="56.4516%" y="228" width="0.8065%" height="15" fill="rgb(232,36,49)" fg:x="70" fg:w="1"/><text x="56.7016%" y="238.50"></text></g><g><title>__beartype_tester_2 (&lt;@beartype(__beartype_tester_2) at 0x556f4a390a00&gt;:9) (1 samples, 0.81%)</title><rect x="57.2581%" y="228" width="0.8065%" height="15" fill="rgb(209,103,24)" fg:x="71" fg:w="1"/><text x="57.5081%" y="238.50"></text></g><g><title>resolve (plum/resolver.py:145) (57 samples, 45.97%)</title><rect x="12.9032%" y="132" width="45.9677%" height="15" fill="rgb(229,88,8)" fg:x="16" fg:w="57"/><text x="13.1532%" y="142.50">resolve (plum/resolver.py:145)</text></g><g><title>&lt;listcomp&gt; (plum/resolver.py:145) (56 samples, 45.16%)</title><rect x="13.7097%" y="148" width="45.1613%" height="15" fill="rgb(213,181,19)" fg:x="17" fg:w="56"/><text x="13.9597%" y="158.50">&lt;listcomp&gt; (plum/resolver.py:145)</text></g><g><title>check (plum/resolver.py:136) (51 samples, 41.13%)</title><rect x="17.7419%" y="164" width="41.1290%" height="15" fill="rgb(254,191,54)" fg:x="22" fg:w="51"/><text x="17.9919%" y="174.50">check (plum/resolver.py:136)</text></g><g><title>match (plum/signature.py:153) (42 samples, 33.87%)</title><rect x="25.0000%" y="180" width="33.8710%" height="15" fill="rgb(241,83,37)" fg:x="31" fg:w="42"/><text x="25.2500%" y="190.50">match (plum/signature.py:153)</text></g><g><title>&lt;genexpr&gt; (plum/signature.py:153) (32 samples, 25.81%)</title><rect x="33.0645%" y="196" width="25.8065%" height="15" fill="rgb(233,36,39)" fg:x="41" fg:w="32"/><text x="33.3145%" y="206.50">&lt;genexpr&gt; (plum/signature.py:153)</text></g><g><title>is_bearable (beartype/door/_doorcheck.py:328) (3 samples, 2.42%)</title><rect x="56.4516%" y="212" width="2.4194%" height="15" fill="rgb(226,3,54)" fg:x="70" fg:w="3"/><text x="56.7016%" y="222.50">is..</text></g><g><title>__beartype_tester_3 (&lt;@beartype(__beartype_tester_3) at 0x7fa5018aa4f0&gt;:7) (1 samples, 0.81%)</title><rect x="58.0645%" y="228" width="0.8065%" height="15" fill="rgb(245,192,40)" fg:x="72" fg:w="1"/><text x="58.3145%" y="238.50"></text></g><g><title>resolve (plum/resolver.py:148) (1 samples, 0.81%)</title><rect x="58.8710%" y="132" width="0.8065%" height="15" fill="rgb(238,167,29)" fg:x="73" fg:w="1"/><text x="59.1210%" y="142.50"></text></g><g><title>__call__ (plum/function.py:376) (61 samples, 49.19%)</title><rect x="11.2903%" y="100" width="49.1935%" height="15" fill="rgb(232,182,51)" fg:x="14" fg:w="61"/><text x="11.5403%" y="110.50">__call__ (plum/function.py:376)</text></g><g><title>resolve_method (plum/function.py:306) (60 samples, 48.39%)</title><rect x="12.0968%" y="116" width="48.3871%" height="15" fill="rgb(231,60,39)" fg:x="15" fg:w="60"/><text x="12.3468%" y="126.50">resolve_method (plum/function.py:306)</text></g><g><title>resolve (plum/resolver.py:149) (1 samples, 0.81%)</title><rect x="59.6774%" y="132" width="0.8065%" height="15" fill="rgb(208,69,12)" fg:x="74" fg:w="1"/><text x="59.9274%" y="142.50"></text></g><g><title>__call__ (plum/function.py:371) (4 samples, 3.23%)</title><rect x="62.9032%" y="132" width="3.2258%" height="15" fill="rgb(235,93,37)" fg:x="78" fg:w="4"/><text x="63.1532%" y="142.50">__c..</text></g><g><title>__call__ (plum/function.py:373) (1 samples, 0.81%)</title><rect x="66.1290%" y="132" width="0.8065%" height="15" fill="rgb(213,116,39)" fg:x="82" fg:w="1"/><text x="66.3790%" y="142.50"></text></g><g><title>resolve_type_hint (plum/type.py:178) (2 samples, 1.61%)</title><rect x="68.5484%" y="164" width="1.6129%" height="15" fill="rgb(222,207,29)" fg:x="85" fg:w="2"/><text x="68.7984%" y="174.50"></text></g><g><title>_is_hint (plum/type.py:133) (1 samples, 0.81%)</title><rect x="69.3548%" y="180" width="0.8065%" height="15" fill="rgb(206,96,30)" fg:x="86" fg:w="1"/><text x="69.6048%" y="190.50"></text></g><g><title>resolve_type_hint (plum/type.py:216) (1 samples, 0.81%)</title><rect x="70.1613%" y="164" width="0.8065%" height="15" fill="rgb(218,138,4)" fg:x="87" fg:w="1"/><text x="70.4113%" y="174.50"></text></g><g><title>convert (plum/promotion.py:32) (4 samples, 3.23%)</title><rect x="68.5484%" y="148" width="3.2258%" height="15" fill="rgb(250,191,14)" fg:x="85" fg:w="4"/><text x="68.7984%" y="158.50">con..</text></g><g><title>resolve_type_hint (plum/type.py:221) (1 samples, 0.81%)</title><rect x="70.9677%" y="164" width="0.8065%" height="15" fill="rgb(239,60,40)" fg:x="88" fg:w="1"/><text x="71.2177%" y="174.50"></text></g><g><title>invoke (plum/function.py:391) (1 samples, 0.81%)</title><rect x="72.5806%" y="164" width="0.8065%" height="15" fill="rgb(206,27,48)" fg:x="90" fg:w="1"/><text x="72.8306%" y="174.50"></text></g><g><title>_resolve_pending_registrations (plum/function.py:263) (1 samples, 0.81%)</title><rect x="72.5806%" y="180" width="0.8065%" height="15" fill="rgb(225,35,8)" fg:x="90" fg:w="1"/><text x="72.8306%" y="190.50"></text></g><g><title>register (plum/resolver.py:104) (1 samples, 0.81%)</title><rect x="72.5806%" y="196" width="0.8065%" height="15" fill="rgb(250,213,24)" fg:x="90" fg:w="1"/><text x="72.8306%" y="206.50"></text></g><g><title>&lt;listcomp&gt; (plum/resolver.py:104) (1 samples, 0.81%)</title><rect x="72.5806%" y="212" width="0.8065%" height="15" fill="rgb(247,123,22)" fg:x="90" fg:w="1"/><text x="72.8306%" y="222.50"></text></g><g><title>__eq__ (plum/util.py:132) (1 samples, 0.81%)</title><rect x="72.5806%" y="228" width="0.8065%" height="15" fill="rgb(231,138,38)" fg:x="90" fg:w="1"/><text x="72.8306%" y="238.50"></text></g><g><title>__le__ (plum/signature.py:132) (1 samples, 0.81%)</title><rect x="72.5806%" y="244" width="0.8065%" height="15" fill="rgb(231,145,46)" fg:x="90" fg:w="1"/><text x="72.8306%" y="254.50"></text></g><g><title>&lt;listcomp&gt; (plum/signature.py:132) (1 samples, 0.81%)</title><rect x="72.5806%" y="260" width="0.8065%" height="15" fill="rgb(251,118,11)" fg:x="90" fg:w="1"/><text x="72.8306%" y="270.50"></text></g><g><title>__call__ (beartype/door/_cls/doormeta.py:135) (1 samples, 0.81%)</title><rect x="72.5806%" y="276" width="0.8065%" height="15" fill="rgb(217,147,25)" fg:x="90" fg:w="1"/><text x="72.8306%" y="286.50"></text></g><g><title>is_hint_uncached (beartype/_util/hint/utilhinttest.py:244) (1 samples, 0.81%)</title><rect x="72.5806%" y="292" width="0.8065%" height="15" fill="rgb(247,81,37)" fg:x="90" fg:w="1"/><text x="72.8306%" y="302.50"></text></g><g><title>is_hint_pep585_builtin (beartype/_util/hint/pep/proposal/utilpep585.py:79) (1 samples, 0.81%)</title><rect x="72.5806%" y="308" width="0.8065%" height="15" fill="rgb(209,12,38)" fg:x="90" fg:w="1"/><text x="72.8306%" y="318.50"></text></g><g><title>wraps (functools.py:76) (2 samples, 1.61%)</title><rect x="74.1935%" y="180" width="1.6129%" height="15" fill="rgb(227,1,9)" fg:x="92" fg:w="2"/><text x="74.4435%" y="190.50"></text></g><g><title>invoke (plum/function.py:401) (4 samples, 3.23%)</title><rect x="73.3871%" y="164" width="3.2258%" height="15" fill="rgb(248,47,43)" fg:x="91" fg:w="4"/><text x="73.6371%" y="174.50">inv..</text></g><g><title>wraps (functools.py:77) (1 samples, 0.81%)</title><rect x="75.8065%" y="180" width="0.8065%" height="15" fill="rgb(221,10,30)" fg:x="94" fg:w="1"/><text x="76.0565%" y="190.50"></text></g><g><title>update_wrapper (functools.py:50) (2 samples, 1.61%)</title><rect x="80.6452%" y="180" width="1.6129%" height="15" fill="rgb(210,229,1)" fg:x="100" fg:w="2"/><text x="80.8952%" y="190.50"></text></g><g><title>update_wrapper (functools.py:52) (1 samples, 0.81%)</title><rect x="82.2581%" y="180" width="0.8065%" height="15" fill="rgb(222,148,37)" fg:x="102" fg:w="1"/><text x="82.5081%" y="190.50"></text></g><g><title>invoke (plum/function.py:402) (9 samples, 7.26%)</title><rect x="76.6129%" y="164" width="7.2581%" height="15" fill="rgb(234,67,33)" fg:x="95" fg:w="9"/><text x="76.8629%" y="174.50">invoke (pl..</text></g><g><title>update_wrapper (functools.py:58) (1 samples, 0.81%)</title><rect x="83.0645%" y="180" width="0.8065%" height="15" fill="rgb(247,98,35)" fg:x="103" fg:w="1"/><text x="83.3145%" y="190.50"></text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:222) (1 samples, 0.81%)</title><rect x="84.6774%" y="212" width="0.8065%" height="15" fill="rgb(247,138,52)" fg:x="105" fg:w="1"/><text x="84.9274%" y="222.50"></text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:245) (3 samples, 2.42%)</title><rect x="85.4839%" y="212" width="2.4194%" height="15" fill="rgb(213,79,30)" fg:x="106" fg:w="3"/><text x="85.7339%" y="222.50">_c..</text></g><g><title>__hash__ (beartype/_conf/confcls.py:478) (2 samples, 1.61%)</title><rect x="86.2903%" y="228" width="1.6129%" height="15" fill="rgb(246,177,23)" fg:x="107" fg:w="2"/><text x="86.5403%" y="238.50"></text></g><g><title>__hash__ (enum.py:784) (1 samples, 0.81%)</title><rect x="87.0968%" y="244" width="0.8065%" height="15" fill="rgb(230,62,27)" fg:x="108" fg:w="1"/><text x="87.3468%" y="254.50"></text></g><g><title>is_bearable (beartype/door/_doorcheck.py:317) (5 samples, 4.03%)</title><rect x="84.6774%" y="196" width="4.0323%" height="15" fill="rgb(216,154,8)" fg:x="105" fg:w="5"/><text x="84.9274%" y="206.50">is_b..</text></g><g><title>_callable_cached (beartype/_util/cache/utilcachecall.py:258) (1 samples, 0.81%)</title><rect x="87.9032%" y="212" width="0.8065%" height="15" fill="rgb(244,35,45)" fg:x="109" fg:w="1"/><text x="88.1532%" y="222.50"></text></g><g><title>resolve_type_hint (plum/type.py:176) (2 samples, 1.61%)</title><rect x="88.7097%" y="196" width="1.6129%" height="15" fill="rgb(251,115,12)" fg:x="110" fg:w="2"/><text x="88.9597%" y="206.50"></text></g><g><title>_hashable (plum/type.py:156) (1 samples, 0.81%)</title><rect x="89.5161%" y="212" width="0.8065%" height="15" fill="rgb(240,54,50)" fg:x="111" fg:w="1"/><text x="89.7661%" y="222.50"></text></g><g><title>resolve_type_hint (plum/type.py:178) (1 samples, 0.81%)</title><rect x="90.3226%" y="196" width="0.8065%" height="15" fill="rgb(233,84,52)" fg:x="112" fg:w="1"/><text x="90.5726%" y="206.50"></text></g><g><title>_is_hint (plum/type.py:132) (1 samples, 0.81%)</title><rect x="90.3226%" y="212" width="0.8065%" height="15" fill="rgb(207,117,47)" fg:x="112" fg:w="1"/><text x="90.5726%" y="222.50"></text></g><g><title>workload_multiple_dispatch (test_zoo.py:29) (106 samples, 85.48%)</title><rect x="6.4516%" y="84" width="85.4839%" height="15" fill="rgb(249,43,39)" fg:x="8" fg:w="106"/><text x="6.7016%" y="94.50">workload_multiple_dispatch (test_zoo.py:29)</text></g><g><title>__call__ (plum/function.py:378) (39 samples, 31.45%)</title><rect x="60.4839%" y="100" width="31.4516%" height="15" fill="rgb(209,38,44)" fg:x="75" fg:w="39"/><text x="60.7339%" y="110.50">__call__ (plum/function.py:378)</text></g><g><title>_convert (plum/function.py:31) (38 samples, 30.65%)</title><rect x="61.2903%" y="116" width="30.6452%" height="15" fill="rgb(236,212,23)" fg:x="76" fg:w="38"/><text x="61.5403%" y="126.50">_convert (plum/function.py:31)</text></g><g><title>__call__ (plum/function.py:378) (31 samples, 25.00%)</title><rect x="66.9355%" y="132" width="25.0000%" height="15" fill="rgb(242,79,21)" fg:x="83" fg:w="31"/><text x="67.1855%" y="142.50">__call__ (plum/function.py:378)</text></g><g><title>convert (plum/promotion.py:34) (25 samples, 20.16%)</title><rect x="71.7742%" y="148" width="20.1613%" height="15" fill="rgb(211,96,35)" fg:x="89" fg:w="25"/><text x="72.0242%" y="158.50">convert (plum/promotion.py:34)</text></g><g><title>wrapped_method (plum/function.py:403) (10 samples, 8.06%)</title><rect x="83.8710%" y="164" width="8.0645%" height="15" fill="rgb(253,215,40)" fg:x="104" fg:w="10"/><text x="84.1210%" y="174.50">wrapped_met..</text></g><g><title>_convert (plum/promotion.py:43) (10 samples, 8.06%)</title><rect x="83.8710%" y="180" width="8.0645%" height="15" fill="rgb(211,81,21)" fg:x="104" fg:w="10"/><text x="84.1210%" y="190.50">_convert (p..</text></g><g><title>resolve_type_hint (plum/type.py:216) (1 samples, 0.81%)</title><rect x="91.1290%" y="196" width="0.8065%" height="15" fill="rgb(208,190,38)" fg:x="113" fg:w="1"/><text x="91.3790%" y="206.50"></text></g><g><title>&lt;module&gt; (profile_zoo.py:4) (115 samples, 92.74%)</title><rect x="0.0000%" y="68" width="92.7419%" height="15" fill="rgb(235,213,38)" fg:x="0" fg:w="115"/><text x="0.2500%" y="78.50">&lt;module&gt; (profile_zoo.py:4)</text></g><g><title>workload_multiple_dispatch (test_zoo.py:30) (1 samples, 0.81%)</title><rect x="91.9355%" y="84" width="0.8065%" height="15" fill="rgb(237,122,38)" fg:x="114" fg:w="1"/><text x="92.1855%" y="94.50"></text></g><g><title>__init__ (example_py_multiple_dispatch/zoo.py:34) (1 samples, 0.81%)</title><rect x="98.3871%" y="100" width="0.8065%" height="15" fill="rgb(244,218,35)" fg:x="122" fg:w="1"/><text x="98.6371%" y="110.50"></text></g><g><title>all (124 samples, 100%)</title><rect x="0.0000%" y="52" width="100.0000%" height="15" fill="rgb(240,68,47)" fg:x="0" fg:w="124"/><text x="0.2500%" y="62.50"></text></g><g><title>&lt;module&gt; (profile_zoo.py:5) (9 samples, 7.26%)</title><rect x="92.7419%" y="68" width="7.2581%" height="15" fill="rgb(210,16,53)" fg:x="115" fg:w="9"/><text x="92.9919%" y="78.50">&lt;module&gt; (..</text></g><g><title>workload_elif_chain (test_zoo.py:46) (9 samples, 7.26%)</title><rect x="92.7419%" y="84" width="7.2581%" height="15" fill="rgb(235,124,12)" fg:x="115" fg:w="9"/><text x="92.9919%" y="94.50">workload_e..</text></g><g><title>__init__ (example_py_multiple_dispatch/zoo.py:53) (1 samples, 0.81%)</title><rect x="99.1935%" y="100" width="0.8065%" height="15" fill="rgb(224,169,11)" fg:x="123" fg:w="1"/><text x="99.4435%" y="110.50"></text></g></svg></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment