Skip to content

Instantly share code, notes, and snippets.

@indiv0
Created October 10, 2020 03:33
Show Gist options
  • Save indiv0/1751e3de783b0fc82d956f1369efdad2 to your computer and use it in GitHub Desktop.
Save indiv0/1751e3de783b0fc82d956f1369efdad2 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<?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="262" onload="init(evt)" viewBox="0 0 1200 262" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!--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; }
#search { 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 = false;
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");
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);
if (!isEdge) {
svg.removeAttribute("viewBox");
}
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 - 100;
matchedtxt.attributes.x.value = svgWidth - xpad - 100;
};
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();
}, 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._orig_x) {
var params = get_params()
params.x = el.attributes._orig_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["_orig_" + attr] != undefined) return;
if (e.attributes[attr] == undefined) return;
if (val == undefined) val = e.attributes[attr].value;
e.setAttribute("_orig_" + attr, val);
}
function orig_load(e, attr) {
if (e.attributes["_orig_"+attr] == undefined) return;
e.attributes[attr].value = e.attributes["_orig_" + attr].value;
e.removeAttribute("_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.attributes != undefined) {
orig_load(e, "x");
orig_load(e, "width");
}
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, ratio) {
if (e.attributes != undefined) {
if (e.attributes.x != undefined) {
orig_save(e, "x");
e.attributes.x.value = format_percent((parseFloat(e.attributes.x.value) - x) * ratio);
if (e.tagName == "text") {
e.attributes.x.value = format_percent(parseFloat(find_child(e.parentNode, "rect[x]").attributes.x.value) + (100 * 3 / frames.attributes.width.value));
}
}
if (e.attributes.width != undefined) {
orig_save(e, "width");
e.attributes.width.value = format_percent(parseFloat(e.attributes.width.value) * ratio);
}
}
if (e.childNodes == undefined) return;
for(var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_child(c[i], x, ratio);
}
}
function zoom_parent(e) {
if (e.attributes) {
if (e.attributes.x != undefined) {
orig_save(e, "x");
e.attributes.x.value = "0.0%";
}
if (e.attributes.width != undefined) {
orig_save(e, "width");
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 = parseFloat(attr.width.value);
var xmin = parseFloat(attr.x.value);
var xmax = xmin + width;
var ymin = parseFloat(attr.y.value);
var ratio = 100 / width;
// XXX: Workaround for JavaScript float issues (fix me)
var fudge = 0.001;
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 = parseFloat(a.x.value);
var ew = parseFloat(a.width.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+fudge) >= 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 + fudge >= xmax) {
e.classList.add("hide");
}
else {
zoom_child(e, xmin, ratio);
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];
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 = parseFloat(rect.attributes.width.value);
if (w > maxwidth)
maxwidth = w;
if (func.match(re)) {
// highlight
var x = parseFloat(rect.attributes.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.
var fudge = 0.0001; // JavaScript floating point
for (var k in keys) {
var x = parseFloat(keys[k]);
var w = matches[keys[k]];
if (x >= lastx + lastw - fudge) {
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="262" fill="url(#background)"/><text id="title" x="50.0000%" y="24.00">Flame Graph</text><text id="details" x="10" y="245.00"> </text><text id="unzoom" class="hide" x="10" y="24.00">Reset Zoom</text><text id="search" x="1090" y="24.00">Search</text><text id="matched" x="1090" y="245.00"> </text><svg id="frames" x="10" width="1180"><g><title>LLVM_passes (3,092,671,699 samples, 14.77%)</title><rect x="0.0008%" y="181" width="14.7737%" height="15" fill="rgb(227,0,7)"/><text x="0.2508%" y="191.50">LLVM_passes</text></g><g><title>type_of (22,733,886 samples, 0.11%)</title><rect x="14.8173%" y="117" width="0.1086%" height="15" fill="rgb(217,0,24)"/><text x="15.0673%" y="127.50"></text></g><g><title>mir_borrowck (21,395,545 samples, 0.10%)</title><rect x="14.8237%" y="101" width="0.1022%" height="15" fill="rgb(221,193,54)"/><text x="15.0737%" y="111.50"></text></g><g><title>item_types_checking (24,007,647 samples, 0.11%)</title><rect x="14.8132%" y="149" width="0.1147%" height="15" fill="rgb(248,212,6)"/><text x="15.0632%" y="159.50"></text></g><g><title>check_mod_item_types (24,005,394 samples, 0.11%)</title><rect x="14.8132%" y="133" width="0.1147%" height="15" fill="rgb(208,68,35)"/><text x="15.0632%" y="143.50"></text></g><g><title>analysis (32,864,828 samples, 0.16%)</title><rect x="14.7744%" y="181" width="0.1570%" height="15" fill="rgb(232,128,0)"/><text x="15.0244%" y="191.50"></text></g><g><title>type_check_crate (29,670,069 samples, 0.14%)</title><rect x="14.7897%" y="165" width="0.1417%" height="15" fill="rgb(207,160,47)"/><text x="15.0397%" y="175.50"></text></g><g><title>is_freeze_raw (318,677,130 samples, 1.52%)</title><rect x="24.3359%" y="149" width="1.5223%" height="15" fill="rgb(228,23,34)"/><text x="24.5859%" y="159.50"></text></g><g><title>evaluate_obligation (312,842,266 samples, 1.49%)</title><rect x="24.3638%" y="133" width="1.4944%" height="15" fill="rgb(218,30,26)"/><text x="24.6138%" y="143.50"></text></g><g><title>is_sized_raw (108,886,383 samples, 0.52%)</title><rect x="25.9883%" y="133" width="0.5201%" height="15" fill="rgb(220,122,19)"/><text x="26.2383%" y="143.50"></text></g><g><title>evaluate_obligation (108,484,969 samples, 0.52%)</title><rect x="25.9902%" y="117" width="0.5182%" height="15" fill="rgb(250,228,42)"/><text x="26.2402%" y="127.50"></text></g><g><title>is_sized_raw (58,232,653 samples, 0.28%)</title><rect x="26.5254%" y="117" width="0.2782%" height="15" fill="rgb(240,193,28)"/><text x="26.7754%" y="127.50"></text></g><g><title>evaluate_obligation (57,824,897 samples, 0.28%)</title><rect x="26.5273%" y="101" width="0.2762%" height="15" fill="rgb(216,20,37)"/><text x="26.7773%" y="111.50"></text></g><g><title>layout_raw (71,446,623 samples, 0.34%)</title><rect x="26.5085%" y="133" width="0.3413%" height="15" fill="rgb(206,188,39)"/><text x="26.7585%" y="143.50"></text></g><g><title>layout_raw (214,492,808 samples, 1.02%)</title><rect x="25.8615%" y="149" width="1.0246%" height="15" fill="rgb(217,207,13)"/><text x="26.1115%" y="159.50"></text></g><g><title>normalize_projection_ty (480,015,302 samples, 2.29%)</title><rect x="27.1923%" y="133" width="2.2930%" height="15" fill="rgb(231,73,38)"/><text x="27.4423%" y="143.50">n..</text></g><g><title>normalize_generic_arg_after_erasing_regions (544,167,911 samples, 2.60%)</title><rect x="26.8861%" y="149" width="2.5995%" height="15" fill="rgb(225,20,46)"/><text x="27.1361%" y="159.50">no..</text></g><g><title>predicates_of (34,659,235 samples, 0.17%)</title><rect x="29.6852%" y="133" width="0.1656%" height="15" fill="rgb(210,31,41)"/><text x="29.9352%" y="143.50"></text></g><g><title>predicates_defined_on (24,293,218 samples, 0.12%)</title><rect x="29.7347%" y="117" width="0.1160%" height="15" fill="rgb(221,200,47)"/><text x="29.9847%" y="127.50"></text></g><g><title>param_env (76,705,749 samples, 0.37%)</title><rect x="29.4856%" y="149" width="0.3664%" height="15" fill="rgb(226,26,5)"/><text x="29.7356%" y="159.50"></text></g><g><title>codegen_module (3,130,626,269 samples, 14.95%)</title><rect x="14.9785%" y="165" width="14.9550%" height="15" fill="rgb(249,33,26)"/><text x="15.2285%" y="175.50">codegen_module</text></g><g><title>codegen_fn_attrs (23,574,774 samples, 0.11%)</title><rect x="30.4241%" y="117" width="0.1126%" height="15" fill="rgb(235,183,28)"/><text x="30.6741%" y="127.50"></text></g><g><title>evaluate_obligation (120,570,977 samples, 0.58%)</title><rect x="31.4912%" y="101" width="0.5760%" height="15" fill="rgb(221,5,38)"/><text x="31.7412%" y="111.50"></text></g><g><title>codegen_fulfill_obligation (320,398,485 samples, 1.53%)</title><rect x="30.5367%" y="117" width="1.5305%" height="15" fill="rgb(247,18,42)"/><text x="30.7867%" y="127.50"></text></g><g><title>needs_drop_raw (366,032,316 samples, 1.75%)</title><rect x="32.2029%" y="101" width="1.7485%" height="15" fill="rgb(241,131,45)"/><text x="32.4529%" y="111.50"></text></g><g><title>normalize_generic_arg_after_erasing_regions (347,533,170 samples, 1.66%)</title><rect x="32.2913%" y="85" width="1.6602%" height="15" fill="rgb(249,31,29)"/><text x="32.5413%" y="95.50"></text></g><g><title>normalize_projection_ty (343,947,379 samples, 1.64%)</title><rect x="32.3084%" y="69" width="1.6430%" height="15" fill="rgb(225,111,53)"/><text x="32.5584%" y="79.50"></text></g><g><title>normalize_generic_arg_after_erasing_regions (181,724,646 samples, 0.87%)</title><rect x="33.9515%" y="101" width="0.8681%" height="15" fill="rgb(238,160,17)"/><text x="34.2015%" y="111.50"></text></g><g><title>normalize_projection_ty (180,324,711 samples, 0.86%)</title><rect x="33.9581%" y="85" width="0.8614%" height="15" fill="rgb(214,148,48)"/><text x="34.2081%" y="95.50"></text></g><g><title>mir_shims (568,232,817 samples, 2.71%)</title><rect x="32.1282%" y="117" width="2.7144%" height="15" fill="rgb(232,36,49)"/><text x="32.3782%" y="127.50">mi..</text></g><g><title>promoted_mir (22,333,310 samples, 0.11%)</title><rect x="35.3834%" y="53" width="0.1067%" height="15" fill="rgb(209,103,24)"/><text x="35.6334%" y="63.50"></text></g><g><title>eval_to_const_value_raw (74,441,738 samples, 0.36%)</title><rect x="35.1789%" y="101" width="0.3556%" height="15" fill="rgb(229,88,8)"/><text x="35.4289%" y="111.50"></text></g><g><title>eval_to_const_value_raw (71,080,747 samples, 0.34%)</title><rect x="35.1949%" y="85" width="0.3396%" height="15" fill="rgb(213,181,19)"/><text x="35.4449%" y="95.50"></text></g><g><title>eval_to_allocation_raw (66,713,049 samples, 0.32%)</title><rect x="35.2158%" y="69" width="0.3187%" height="15" fill="rgb(254,191,54)"/><text x="35.4658%" y="79.50"></text></g><g><title>normalize_projection_ty (1,250,184,163 samples, 5.97%)</title><rect x="35.5345%" y="101" width="5.9721%" height="15" fill="rgb(241,83,37)"/><text x="35.7845%" y="111.50">normaliz..</text></g><g><title>normalize_generic_arg_after_erasing_regions (1,396,477,825 samples, 6.67%)</title><rect x="34.8427%" y="117" width="6.6710%" height="15" fill="rgb(233,36,39)"/><text x="35.0927%" y="127.50">normalize..</text></g><g><title>metadata_decode_entry_optimized_mir (53,982,868 samples, 0.26%)</title><rect x="41.8316%" y="101" width="0.2579%" height="15" fill="rgb(226,3,54)"/><text x="42.0816%" y="111.50"></text></g><g><title>optimized_mir (128,736,560 samples, 0.61%)</title><rect x="41.5137%" y="117" width="0.6150%" height="15" fill="rgb(245,192,40)"/><text x="41.7637%" y="127.50"></text></g><g><title>evaluate_obligation (526,755,306 samples, 2.52%)</title><rect x="62.5653%" y="85" width="2.5163%" height="15" fill="rgb(238,167,29)"/><text x="62.8153%" y="95.50">ev..</text></g><g><title>trait_impls_of (32,939,163 samples, 0.16%)</title><rect x="65.1205%" y="85" width="0.1574%" height="15" fill="rgb(232,182,51)"/><text x="65.3705%" y="95.50"></text></g><g><title>codegen_fulfill_obligation (4,809,672,662 samples, 22.98%)</title><rect x="42.3043%" y="101" width="22.9758%" height="15" fill="rgb(231,60,39)"/><text x="42.5543%" y="111.50">codegen_fulfill_obligation</text></g><g><title>needs_drop_raw (136,553,107 samples, 0.65%)</title><rect x="65.3049%" y="101" width="0.6523%" height="15" fill="rgb(208,69,12)"/><text x="65.5549%" y="111.50"></text></g><g><title>normalize_generic_arg_after_erasing_regions (112,416,098 samples, 0.54%)</title><rect x="65.4202%" y="85" width="0.5370%" height="15" fill="rgb(235,93,37)"/><text x="65.6702%" y="95.50"></text></g><g><title>normalize_projection_ty (112,251,605 samples, 0.54%)</title><rect x="65.4210%" y="69" width="0.5362%" height="15" fill="rgb(213,116,39)"/><text x="65.6710%" y="79.50"></text></g><g><title>impl_trait_ref (55,361,717 samples, 0.26%)</title><rect x="66.1154%" y="85" width="0.2645%" height="15" fill="rgb(222,207,29)"/><text x="66.3654%" y="95.50"></text></g><g><title>metadata_decode_entry_impl_trait_ref (44,431,390 samples, 0.21%)</title><rect x="66.1676%" y="69" width="0.2122%" height="15" fill="rgb(206,96,30)"/><text x="66.4176%" y="79.50"></text></g><g><title>adt_def (33,448,639 samples, 0.16%)</title><rect x="66.2201%" y="53" width="0.1598%" height="15" fill="rgb(218,138,4)"/><text x="66.4701%" y="63.50"></text></g><g><title>metadata_decode_entry_adt_def (26,623,870 samples, 0.13%)</title><rect x="66.2527%" y="37" width="0.1272%" height="15" fill="rgb(250,191,14)"/><text x="66.5027%" y="47.50"></text></g><g><title>specialization_graph_of (88,492,769 samples, 0.42%)</title><rect x="65.9572%" y="101" width="0.4227%" height="15" fill="rgb(239,60,40)"/><text x="66.2072%" y="111.50"></text></g><g><title>resolve_instance (5,083,088,802 samples, 24.28%)</title><rect x="42.1286%" y="117" width="24.2819%" height="15" fill="rgb(206,27,48)"/><text x="42.3786%" y="127.50">resolve_instance</text></g><g><title>monomorphization_collector_graph_walk (7,649,327,236 samples, 36.54%)</title><rect x="29.9491%" y="133" width="36.5408%" height="15" fill="rgb(225,35,8)"/><text x="30.1991%" y="143.50">monomorphization_collector_graph_walk</text></g><g><title>monomorphization_collector (7,649,453,855 samples, 36.54%)</title><rect x="29.9491%" y="149" width="36.5414%" height="15" fill="rgb(250,213,24)"/><text x="30.1991%" y="159.50">monomorphization_collector</text></g><g><title>assert_symbols_are_distinct (31,786,334 samples, 0.15%)</title><rect x="66.4905%" y="133" width="0.1518%" height="15" fill="rgb(247,123,22)"/><text x="66.7405%" y="143.50"></text></g><g><title>symbol_name (26,080,412 samples, 0.12%)</title><rect x="66.5178%" y="117" width="0.1246%" height="15" fill="rgb(231,138,38)"/><text x="66.7678%" y="127.50"></text></g><g><title>collect_and_partition_mono_items (7,699,836,597 samples, 36.78%)</title><rect x="29.9402%" y="165" width="36.7821%" height="15" fill="rgb(231,145,46)"/><text x="30.1902%" y="175.50">collect_and_partition_mono_items</text></g><g><title>partition_and_assert_distinct_symbols (48,527,675 samples, 0.23%)</title><rect x="66.4905%" y="149" width="0.2318%" height="15" fill="rgb(251,118,11)"/><text x="66.7405%" y="159.50"></text></g><g><title>incr_comp_persist_dep_graph (34,448,390 samples, 0.16%)</title><rect x="66.7435%" y="149" width="0.1646%" height="15" fill="rgb(217,147,25)"/><text x="66.9935%" y="159.50"></text></g><g><title>incr_comp_encode_dep_graph (28,003,403 samples, 0.13%)</title><rect x="66.7743%" y="133" width="0.1338%" height="15" fill="rgb(247,81,37)"/><text x="67.0243%" y="143.50"></text></g><g><title>serialize_dep_graph (44,222,894 samples, 0.21%)</title><rect x="66.7435%" y="165" width="0.2113%" height="15" fill="rgb(209,12,38)"/><text x="66.9935%" y="175.50"></text></g><g><title>codegen_crate (10,890,407,012 samples, 52.02%)</title><rect x="14.9315%" y="181" width="52.0234%" height="15" fill="rgb(227,1,9)"/><text x="15.1815%" y="191.50">codegen_crate</text></g><g><title>LLVM_module_codegen (4,248,573,890 samples, 20.30%)</title><rect x="66.9623%" y="165" width="20.2954%" height="15" fill="rgb(248,47,43)"/><text x="67.2123%" y="175.50">LLVM_module_codegen</text></g><g><title>LLVM_module_codegen_emit_obj (4,108,095,970 samples, 19.62%)</title><rect x="67.6333%" y="149" width="19.6244%" height="15" fill="rgb(221,10,30)"/><text x="67.8833%" y="159.50">LLVM_module_codegen_emit_obj</text></g><g><title>codegen_module_optimize (4,376,660,156 samples, 20.91%)</title><rect x="66.9550%" y="181" width="20.9073%" height="15" fill="rgb(210,229,1)"/><text x="67.2050%" y="191.50">codegen_module_optimize</text></g><g><title>LLVM_module_optimize (126,553,280 samples, 0.60%)</title><rect x="87.2577%" y="165" width="0.6045%" height="15" fill="rgb(222,148,37)"/><text x="87.5077%" y="175.50"></text></g><g><title>LLVM_module_optimize_module_passes (108,358,211 samples, 0.52%)</title><rect x="87.3446%" y="149" width="0.5176%" height="15" fill="rgb(234,67,33)"/><text x="87.5946%" y="159.50"></text></g><g><title>macro_expand_crate (23,981,476 samples, 0.11%)</title><rect x="87.8629%" y="165" width="0.1146%" height="15" fill="rgb(247,98,35)"/><text x="88.1129%" y="175.50"></text></g><g><title>expand_crate (23,979,491 samples, 0.11%)</title><rect x="87.8629%" y="149" width="0.1145%" height="15" fill="rgb(247,138,52)"/><text x="88.1129%" y="159.50"></text></g><g><title>configure_and_expand (25,981,284 samples, 0.12%)</title><rect x="87.8622%" y="181" width="0.1241%" height="15" fill="rgb(213,79,30)"/><text x="88.1122%" y="191.50"></text></g><g><title>create_global_ctxt (22,767,010 samples, 0.11%)</title><rect x="87.9864%" y="181" width="0.1088%" height="15" fill="rgb(246,177,23)"/><text x="88.2364%" y="191.50"></text></g><g><title>setup_global_ctxt (22,639,146 samples, 0.11%)</title><rect x="87.9870%" y="165" width="0.1081%" height="15" fill="rgb(230,62,27)"/><text x="88.2370%" y="175.50"></text></g><g><title>link_crate (2,473,316,327 samples, 11.82%)</title><rect x="88.1832%" y="165" width="11.8150%" height="15" fill="rgb(216,154,8)"/><text x="88.4332%" y="175.50">link_crate</text></g><g><title>link_binary (2,473,315,001 samples, 11.82%)</title><rect x="88.1832%" y="149" width="11.8150%" height="15" fill="rgb(244,35,45)"/><text x="88.4332%" y="159.50">link_binary</text></g><g><title>run_linker (2,469,697,918 samples, 11.80%)</title><rect x="88.2005%" y="133" width="11.7977%" height="15" fill="rgb(251,115,12)"/><text x="88.4505%" y="143.50">run_linker</text></g><g><title>link (2,478,601,483 samples, 11.84%)</title><rect x="88.1586%" y="181" width="11.8403%" height="15" fill="rgb(240,54,50)"/><text x="88.4086%" y="191.50">link</text></g><g><title>all (20,933,655,564 samples, 100%)</title><rect x="0.0000%" y="213" width="100.0000%" height="15" fill="rgb(233,84,52)"/><text x="0.2500%" y="223.50"></text></g><g><title>rustc (20,933,655,564 samples, 100.00%)</title><rect x="0.0000%" y="197" width="100.0000%" height="15" fill="rgb(207,117,47)"/><text x="0.2500%" y="207.50">rustc</text></g></svg></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment