Skip to content

Instantly share code, notes, and snippets.

@andersy005
Created October 27, 2020 23:49
Show Gist options
  • Select an option

  • Save andersy005/329d52f08aaa654527921de609016b77 to your computer and use it in GitHub Desktop.

Select an option

Save andersy005/329d52f08aaa654527921de609016b77 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="582" onload="init(evt)" viewBox="0 0 1200 582" 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 = 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");
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="582" fill="url(#background)"/><text id="title" x="50.0000%" y="24.00">py-spy</text><text id="details" x="10" y="565.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="565.00"> </text><svg id="frames" x="10" width="1180"><g><title>__esmf_meshmod_MOD_esmf_meshcreatefrompointer (libesmf_fullylinked.so) (745 samples, 1.90%)</title><rect x="0.5529%" y="340" width="1.8980%" height="15" fill="rgb(227,0,7)"/><text x="0.8029%" y="350.50">_..</text></g><g><title>c_esmc_meshcreatenodedistgrid_ (libesmf_fullylinked.so) (460 samples, 1.17%)</title><rect x="1.2789%" y="356" width="1.1719%" height="15" fill="rgb(217,0,24)"/><text x="1.5289%" y="366.50"></text></g><g><title>ESMCI::MeshCap::meshcreatenodedistgrid (libesmf_fullylinked.so) (460 samples, 1.17%)</title><rect x="1.2789%" y="372" width="1.1719%" height="15" fill="rgb(221,193,54)"/><text x="1.5289%" y="382.50"></text></g><g><title>ESMCI_meshcreatenodedistgrid (libesmf_fullylinked.so) (460 samples, 1.17%)</title><rect x="1.2789%" y="388" width="1.1719%" height="15" fill="rgb(248,212,6)"/><text x="1.5289%" y="398.50"></text></g><g><title>getNodeGIDS (libesmf_fullylinked.so) (435 samples, 1.11%)</title><rect x="1.3426%" y="404" width="1.1083%" height="15" fill="rgb(208,68,35)"/><text x="1.5926%" y="414.50"></text></g><g><title>ESMCI::GridCellIter::getCornersCellNodeLocalID (libesmf_fullylinked.so) (456 samples, 1.16%)</title><rect x="14.6901%" y="388" width="1.1618%" height="15" fill="rgb(232,128,0)"/><text x="14.9401%" y="398.50"></text></g><g><title>ESMCI::DistGrid::getSequenceIndexTileRecursive&lt;int&gt; (libesmf_fullylinked.so) (407 samples, 1.04%)</title><rect x="16.4454%" y="452" width="1.0369%" height="15" fill="rgb(207,160,47)"/><text x="16.6954%" y="462.50"></text></g><g><title>ESMCI::DistGrid::getSequenceIndexTile&lt;int&gt; (libesmf_fullylinked.so) (582 samples, 1.48%)</title><rect x="16.2926%" y="436" width="1.4828%" height="15" fill="rgb(228,23,34)"/><text x="16.5426%" y="446.50"></text></g><g><title>ESMCI::DistGrid::tGetSequenceIndexLocalDe&lt;int&gt; (libesmf_fullylinked.so) (748 samples, 1.91%)</title><rect x="16.1448%" y="420" width="1.9057%" height="15" fill="rgb(218,30,26)"/><text x="16.3948%" y="430.50">E..</text></g><g><title>ESMCI::DistGrid::getSequenceIndexLocalDe&lt;int&gt; (libesmf_fullylinked.so) (794 samples, 2.02%)</title><rect x="16.0735%" y="404" width="2.0229%" height="15" fill="rgb(220,122,19)"/><text x="16.3235%" y="414.50">E..</text></g><g><title>std::basic_ios&lt;char, std::char_traits&lt;char&gt; &gt;::init (basic_ios.tcc:152) (1,013 samples, 2.58%)</title><rect x="18.3944%" y="404" width="2.5808%" height="15" fill="rgb(250,228,42)"/><text x="18.6444%" y="414.50">st..</text></g><g><title>ESMCI::GridCellIter::getGlobalID (libesmf_fullylinked.so) (2,101 samples, 5.35%)</title><rect x="15.8518%" y="388" width="5.3527%" height="15" fill="rgb(240,193,28)"/><text x="16.1018%" y="398.50">ESMCI::..</text></g><g><title>ESMCI::DistGrid::getSequenceIndexTileRecursive&lt;int&gt; (libesmf_fullylinked.so) (430 samples, 1.10%)</title><rect x="22.6338%" y="452" width="1.0955%" height="15" fill="rgb(216,20,37)"/><text x="22.8838%" y="462.50"></text></g><g><title>ESMCI::DistGrid::getSequenceIndexTile&lt;int&gt; (libesmf_fullylinked.so) (660 samples, 1.68%)</title><rect x="22.4606%" y="436" width="1.6815%" height="15" fill="rgb(206,188,39)"/><text x="22.7106%" y="446.50"></text></g><g><title>ESMCI::DistGrid::tGetSequenceIndexLocalDe&lt;int&gt; (libesmf_fullylinked.so) (784 samples, 2.00%)</title><rect x="22.3663%" y="420" width="1.9974%" height="15" fill="rgb(217,207,13)"/><text x="22.6163%" y="430.50">E..</text></g><g><title>ESMCI::DistGrid::getSequenceIndexLocalDe&lt;int&gt; (libesmf_fullylinked.so) (831 samples, 2.12%)</title><rect x="22.2797%" y="404" width="2.1171%" height="15" fill="rgb(231,73,38)"/><text x="22.5297%" y="414.50">E..</text></g><g><title>ESMCI::GridIter::getGlobalID (libesmf_fullylinked.so) (872 samples, 2.22%)</title><rect x="22.2313%" y="388" width="2.2216%" height="15" fill="rgb(225,20,46)"/><text x="22.4813%" y="398.50">E..</text></g><g><title>ESMCI::GridIter::moveToLocalID (libesmf_fullylinked.so) (775 samples, 1.97%)</title><rect x="24.6847%" y="388" width="1.9745%" height="15" fill="rgb(210,31,41)"/><text x="24.9347%" y="398.50">E..</text></g><g><title>ESMCI::GridIter::setDEBnds (libesmf_fullylinked.so) (723 samples, 1.84%)</title><rect x="24.8172%" y="404" width="1.8420%" height="15" fill="rgb(221,200,47)"/><text x="25.0672%" y="414.50">E..</text></g><g><title>ESMCI::MeshDB::GetContext (libesmf_fullylinked.so) (405 samples, 1.03%)</title><rect x="28.9751%" y="436" width="1.0318%" height="15" fill="rgb(226,26,5)"/><text x="29.2251%" y="446.50"></text></g><g><title>ESMCI::MeshObjConn::find_relation (libesmf_fullylinked.so) (576 samples, 1.47%)</title><rect x="30.3126%" y="436" width="1.4675%" height="15" fill="rgb(249,33,26)"/><text x="30.5626%" y="446.50"></text></g><g><title>_IO_sprintf (libc-2.17.so) (2,366 samples, 6.03%)</title><rect x="31.8310%" y="436" width="6.0279%" height="15" fill="rgb(235,183,28)"/><text x="32.0810%" y="446.50">_IO_spri..</text></g><g><title>__IO_vsprintf (libc-2.17.so) (2,345 samples, 5.97%)</title><rect x="31.8845%" y="452" width="5.9744%" height="15" fill="rgb(221,5,38)"/><text x="32.1345%" y="462.50">__IO_vsp..</text></g><g><title>vfprintf (libc-2.17.so) (2,113 samples, 5.38%)</title><rect x="32.4756%" y="468" width="5.3833%" height="15" fill="rgb(247,18,42)"/><text x="32.7256%" y="478.50">vfprint..</text></g><g><title>ESMCI::MEImprint (libesmf_fullylinked.so) (4,273 samples, 10.89%)</title><rect x="27.1025%" y="420" width="10.8863%" height="15" fill="rgb(241,131,45)"/><text x="27.3525%" y="430.50">ESMCI::MEImprint..</text></g><g><title>ESMCI::FieldReg::Commit (libesmf_fullylinked.so) (4,569 samples, 11.64%)</title><rect x="26.7535%" y="404" width="11.6405%" height="15" fill="rgb(249,31,29)"/><text x="27.0035%" y="414.50">ESMCI::FieldReg::..</text></g><g><title>ESMCI::Kernel::Commit (libesmf_fullylinked.so) (663 samples, 1.69%)</title><rect x="40.6996%" y="420" width="1.6891%" height="15" fill="rgb(225,111,53)"/><text x="40.9496%" y="430.50"></text></g><g><title>ESMCI::Mesh::Commit (libesmf_fullylinked.so) (6,236 samples, 15.89%)</title><rect x="26.7535%" y="388" width="15.8875%" height="15" fill="rgb(238,160,17)"/><text x="27.0035%" y="398.50">ESMCI::Mesh::Commit (lib..</text></g><g><title>ESMCI::MeshDB::Commit (libesmf_fullylinked.so) (1,190 samples, 3.03%)</title><rect x="39.6092%" y="404" width="3.0318%" height="15" fill="rgb(214,148,48)"/><text x="39.8592%" y="414.50">ESM..</text></g><g><title>operator new (new_op.cc:50) (526 samples, 1.34%)</title><rect x="45.2651%" y="468" width="1.3401%" height="15" fill="rgb(232,36,49)"/><text x="45.5151%" y="478.50"></text></g><g><title>__malloc (libc-2.17.so) (524 samples, 1.33%)</title><rect x="45.2702%" y="484" width="1.3350%" height="15" fill="rgb(209,103,24)"/><text x="45.5202%" y="494.50"></text></g><g><title>_int_malloc (libc-2.17.so) (431 samples, 1.10%)</title><rect x="45.5071%" y="500" width="1.0981%" height="15" fill="rgb(229,88,8)"/><text x="45.7571%" y="510.50"></text></g><g><title>ESMCI::MeshDB::element_connect (libesmf_fullylinked.so) (1,483 samples, 3.78%)</title><rect x="42.8371%" y="420" width="3.7782%" height="15" fill="rgb(213,181,19)"/><text x="43.0871%" y="430.50">ESMC..</text></g><g><title>ESMCI::AddMeshObjRelation (libesmf_fullylinked.so) (1,421 samples, 3.62%)</title><rect x="42.9951%" y="436" width="3.6203%" height="15" fill="rgb(254,191,54)"/><text x="43.2451%" y="446.50">ESMC..</text></g><g><title>std::vector&lt;ESMCI::MeshObj::Relation, std::allocator&lt;ESMCI::MeshObj::Relation&gt; &gt;::_M_realloc_insert&lt;ESMCI::MeshObj::Relation const&amp;&gt; (libesmf_fullylinked.so) (773 samples, 1.97%)</title><rect x="44.6460%" y="452" width="1.9694%" height="15" fill="rgb(241,83,37)"/><text x="44.8960%" y="462.50">s..</text></g><g><title>ESMCI::MeshDB::add_element (libesmf_fullylinked.so) (2,545 samples, 6.48%)</title><rect x="42.6410%" y="388" width="6.4839%" height="15" fill="rgb(233,36,39)"/><text x="42.8910%" y="398.50">ESMCI::M..</text></g><g><title>ESMCI::MeshDB::add_element (libesmf_fullylinked.so) (2,500 samples, 6.37%)</title><rect x="42.7556%" y="404" width="6.3693%" height="15" fill="rgb(226,3,54)"/><text x="43.0056%" y="414.50">ESMCI::M..</text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::insert_unique (libesmf_fullylinked.so) (895 samples, 2.28%)</title><rect x="46.8447%" y="420" width="2.2802%" height="15" fill="rgb(245,192,40)"/><text x="47.0947%" y="430.50">E..</text></g><g><title>ESMCI::MeshDB::add_node (libesmf_fullylinked.so) (1,865 samples, 4.75%)</title><rect x="49.2191%" y="404" width="4.7515%" height="15" fill="rgb(238,167,29)"/><text x="49.4691%" y="414.50">ESMCI:..</text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::insert_unique (libesmf_fullylinked.so) (1,778 samples, 4.53%)</title><rect x="49.4408%" y="420" width="4.5298%" height="15" fill="rgb(232,182,51)"/><text x="49.6908%" y="430.50">ESMCI..</text></g><g><title>ESMCI::MeshDB::add_node (libesmf_fullylinked.so) (1,903 samples, 4.85%)</title><rect x="49.1249%" y="388" width="4.8483%" height="15" fill="rgb(231,60,39)"/><text x="49.3749%" y="398.50">ESMCI:..</text></g><g><title>ESMCI::MeshDB::linearize_data_index (libesmf_fullylinked.so) (420 samples, 1.07%)</title><rect x="53.9731%" y="388" width="1.0700%" height="15" fill="rgb(208,69,12)"/><text x="54.2231%" y="398.50"></text></g><g><title>operator new (new_op.cc:50) (812 samples, 2.07%)</title><rect x="55.7514%" y="388" width="2.0687%" height="15" fill="rgb(235,93,37)"/><text x="56.0014%" y="398.50">o..</text></g><g><title>__malloc (libc-2.17.so) (811 samples, 2.07%)</title><rect x="55.7540%" y="404" width="2.0662%" height="15" fill="rgb(213,116,39)"/><text x="56.0040%" y="414.50">_..</text></g><g><title>_int_malloc (libc-2.17.so) (781 samples, 1.99%)</title><rect x="55.8304%" y="420" width="1.9898%" height="15" fill="rgb(222,207,29)"/><text x="56.0804%" y="430.50">_..</text></g><g><title>__esmf_gridutilmod_MOD_esmf_gridtomesh (libesmf_fullylinked.so) (25,531 samples, 65.05%)</title><rect x="0.5529%" y="324" width="65.0455%" height="15" fill="rgb(206,96,30)"/><text x="0.8029%" y="334.50">__esmf_gridutilmod_MOD_esmf_gridtomesh (libesmf_fullylinked.so)</text></g><g><title>c_esmc_gridtomesh_ (libesmf_fullylinked.so) (24,786 samples, 63.15%)</title><rect x="2.4509%" y="340" width="63.1474%" height="15" fill="rgb(218,138,4)"/><text x="2.7009%" y="350.50">c_esmc_gridtomesh_ (libesmf_fullylinked.so)</text></g><g><title>ESMCI::MeshCap::GridToMesh (libesmf_fullylinked.so) (24,786 samples, 63.15%)</title><rect x="2.4509%" y="356" width="63.1474%" height="15" fill="rgb(250,191,14)"/><text x="2.7009%" y="366.50">ESMCI::MeshCap::GridToMesh (libesmf_fullylinked.so)</text></g><g><title>ESMCI::ESMCI_GridToMesh (libesmf_fullylinked.so) (24,786 samples, 63.15%)</title><rect x="2.4509%" y="372" width="63.1474%" height="15" fill="rgb(239,60,40)"/><text x="2.7009%" y="382.50">ESMCI::ESMCI_GridToMesh (libesmf_fullylinked.so)</text></g><g><title>std::_Rb_tree&lt;unsigned int, std::pair&lt;unsigned int const, unsigned int&gt;, std::_Select1st&lt;std::pair&lt;unsigned int const, unsigned int&gt; &gt;, std::less&lt;unsigned int&gt;, std::allocator&lt;std::pair&lt;unsigned int const, unsigned int&gt; &gt; &gt;::_M_lower_bound (libesmf_fullylinked.so) (2,282 samples, 5.81%)</title><rect x="59.7845%" y="388" width="5.8139%" height="15" fill="rgb(206,27,48)"/><text x="60.0345%" y="398.50">std::_R..</text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (418 samples, 1.06%)</title><rect x="66.0442%" y="436" width="1.0649%" height="15" fill="rgb(225,35,8)"/><text x="66.2942%" y="446.50"></text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (418 samples, 1.06%)</title><rect x="66.0442%" y="452" width="1.0649%" height="15" fill="rgb(250,213,24)"/><text x="66.2942%" y="462.50"></text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (418 samples, 1.06%)</title><rect x="66.0442%" y="468" width="1.0649%" height="15" fill="rgb(247,123,22)"/><text x="66.2942%" y="478.50"></text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (418 samples, 1.06%)</title><rect x="66.0442%" y="484" width="1.0649%" height="15" fill="rgb(231,138,38)"/><text x="66.2942%" y="494.50"></text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (418 samples, 1.06%)</title><rect x="66.0442%" y="500" width="1.0649%" height="15" fill="rgb(231,145,46)"/><text x="66.2942%" y="510.50"></text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (408 samples, 1.04%)</title><rect x="66.0697%" y="516" width="1.0395%" height="15" fill="rgb(251,118,11)"/><text x="66.3197%" y="526.50"></text></g><g><title>ESMCI::Tree&lt;long, ESMCI::MeshObj, std::less&lt;long&gt; &gt;::__erase (libesmf_fullylinked.so) (405 samples, 1.03%)</title><rect x="66.0773%" y="532" width="1.0318%" height="15" fill="rgb(217,147,25)"/><text x="66.3273%" y="542.50"></text></g><g><title>_int_free (libc-2.17.so) (416 samples, 1.06%)</title><rect x="67.1091%" y="436" width="1.0598%" height="15" fill="rgb(247,81,37)"/><text x="67.3591%" y="446.50"></text></g><g><title>__esmf_meshmod_MOD_esmf_meshdestroy (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="324" width="2.5987%" height="15" fill="rgb(209,12,38)"/><text x="65.8483%" y="334.50">__..</text></g><g><title>c_esmc_meshdestroy_ (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="340" width="2.5987%" height="15" fill="rgb(227,1,9)"/><text x="65.8483%" y="350.50">c_..</text></g><g><title>ESMCI::MeshCap::destroy (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="356" width="2.5987%" height="15" fill="rgb(248,47,43)"/><text x="65.8483%" y="366.50">ES..</text></g><g><title>ESMCI_meshdestroy (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="372" width="2.5987%" height="15" fill="rgb(221,10,30)"/><text x="65.8483%" y="382.50">ES..</text></g><g><title>ESMCI::Mesh::~Mesh (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="388" width="2.5987%" height="15" fill="rgb(210,229,1)"/><text x="65.8483%" y="398.50">ES..</text></g><g><title>ESMCI::Mesh::~Mesh (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="404" width="2.5987%" height="15" fill="rgb(222,148,37)"/><text x="65.8483%" y="414.50">ES..</text></g><g><title>ESMCI::MeshDB::~MeshDB (libesmf_fullylinked.so) (1,020 samples, 2.60%)</title><rect x="65.5983%" y="420" width="2.5987%" height="15" fill="rgb(234,67,33)"/><text x="65.8483%" y="430.50">ES..</text></g><g><title>ESMCI::GatherElemData&lt;ESMCI::METraits&lt;double, double&gt;, ESMCI::MEField&lt;ESMCI::_field&gt;, double&gt;::GatherElemData (libesmf_fullylinked.so) (657 samples, 1.67%)</title><rect x="69.6237%" y="468" width="1.6738%" height="15" fill="rgb(247,98,35)"/><text x="69.8737%" y="478.50"></text></g><g><title>ESMCI::BBox::BBox (libesmf_fullylinked.so) (1,935 samples, 4.93%)</title><rect x="68.3167%" y="452" width="4.9298%" height="15" fill="rgb(247,138,52)"/><text x="68.5667%" y="462.50">ESMCI:..</text></g><g><title>ESMCI::_add_onode (libesmf_fullylinked.so) (8,856 samples, 22.56%)</title><rect x="74.1408%" y="468" width="22.5625%" height="15" fill="rgb(213,79,30)"/><text x="74.3908%" y="478.50">ESMCI::_add_onode (libesmf_fullylink..</text></g><g><title>ESMCI::OTree::commit (libesmf_fullylinked.so) (9,082 samples, 23.14%)</title><rect x="73.5930%" y="452" width="23.1383%" height="15" fill="rgb(246,177,23)"/><text x="73.8430%" y="462.50">ESMCI::OTree::commit (libesmf_fullyli..</text></g><g><title>ESMCI::Interp::Interp (libesmf_fullylinked.so) (11,681 samples, 29.76%)</title><rect x="68.2301%" y="420" width="29.7598%" height="15" fill="rgb(230,62,27)"/><text x="68.4801%" y="430.50">ESMCI::Interp::Interp (libesmf_fullylinked.so)</text></g><g><title>ESMCI::OctSearch (libesmf_fullylinked.so) (11,679 samples, 29.75%)</title><rect x="68.2352%" y="436" width="29.7547%" height="15" fill="rgb(216,154,8)"/><text x="68.4852%" y="446.50">ESMCI::OctSearch (libesmf_fullylinked.so)</text></g><g><title>ESMCI::online_regrid (libesmf_fullylinked.so) (11,736 samples, 29.90%)</title><rect x="68.2301%" y="388" width="29.8999%" height="15" fill="rgb(244,35,45)"/><text x="68.4801%" y="398.50">ESMCI::online_regrid (libesmf_fullylinked.so)</text></g><g><title>ESMCI::regrid (libesmf_fullylinked.so) (11,736 samples, 29.90%)</title><rect x="68.2301%" y="404" width="29.8999%" height="15" fill="rgb(251,115,12)"/><text x="68.4801%" y="414.50">ESMCI::regrid (libesmf_fullylinked.so)</text></g><g><title>ESMCI::sparseMatMulStoreLinSeqVect&lt;int, int&gt; (libesmf_fullylinked.so) (465 samples, 1.18%)</title><rect x="98.2548%" y="436" width="1.1847%" height="15" fill="rgb(240,54,50)"/><text x="98.5048%" y="446.50"></text></g><g><title>__esmf_fieldregridmod_MOD_esmf_fieldregridstorenx (libesmf_fullylinked.so) (38,855 samples, 98.99%)</title><rect x="0.5529%" y="308" width="98.9911%" height="15" fill="rgb(233,84,52)"/><text x="0.8029%" y="318.50">__esmf_fieldregridmod_MOD_esmf_fieldregridstorenx (libesmf_fullylinked.so)</text></g><g><title>__esmf_regridmod_MOD_esmf_regridstore (libesmf_fullylinked.so) (12,296 samples, 31.33%)</title><rect x="68.2174%" y="324" width="31.3266%" height="15" fill="rgb(207,117,47)"/><text x="68.4674%" y="334.50">__esmf_regridmod_MOD_esmf_regridstore (libesmf_full..</text></g><g><title>c_esmc_regrid_create_ (libesmf_fullylinked.so) (12,294 samples, 31.32%)</title><rect x="68.2225%" y="340" width="31.3215%" height="15" fill="rgb(249,43,39)"/><text x="68.4725%" y="350.50">c_esmc_regrid_create_ (libesmf_fullylinked.so)</text></g><g><title>ESMCI::MeshCap::regrid_create (libesmf_fullylinked.so) (12,294 samples, 31.32%)</title><rect x="68.2225%" y="356" width="31.3215%" height="15" fill="rgb(209,38,44)"/><text x="68.4725%" y="366.50">ESMCI::MeshCap::regrid_create (libesmf_fullylinked...</text></g><g><title>ESMCI_regrid_create (libesmf_fullylinked.so) (12,294 samples, 31.32%)</title><rect x="68.2225%" y="372" width="31.3215%" height="15" fill="rgb(236,212,23)"/><text x="68.4725%" y="382.50">ESMCI_regrid_create (libesmf_fullylinked.so)</text></g><g><title>c_esmc_arraysmmstoreind4_ (libesmf_fullylinked.so) (555 samples, 1.41%)</title><rect x="98.1300%" y="388" width="1.4140%" height="15" fill="rgb(242,79,21)"/><text x="98.3800%" y="398.50"></text></g><g><title>ESMCI::Array::sparseMatMulStore&lt;int, int&gt; (libesmf_fullylinked.so) (555 samples, 1.41%)</title><rect x="98.1300%" y="404" width="1.4140%" height="15" fill="rgb(211,96,35)"/><text x="98.3800%" y="414.50"></text></g><g><title>ESMCI::Array::tSparseMatMulStore&lt;int, int&gt; (libesmf_fullylinked.so) (555 samples, 1.41%)</title><rect x="98.1300%" y="420" width="1.4140%" height="15" fill="rgb(253,215,40)"/><text x="98.3800%" y="430.50"></text></g><g><title>__init__ (xesmf/frontend.py:235) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="68" width="99.3478%" height="15" fill="rgb(211,81,21)"/><text x="0.8029%" y="78.50">__init__ (xesmf/frontend.py:235)</text></g><g><title>_write_weight_file (xesmf/frontend.py:279) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="84" width="99.3478%" height="15" fill="rgb(208,190,38)"/><text x="0.8029%" y="94.50">_write_weight_file (xesmf/frontend.py:279)</text></g><g><title>esmf_regrid_build (xesmf/backend.py:280) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="100" width="99.3478%" height="15" fill="rgb(235,213,38)"/><text x="0.8029%" y="110.50">esmf_regrid_build (xesmf/backend.py:280)</text></g><g><title>new_func (ESMF/util/decorators.py:64) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="116" width="99.3478%" height="15" fill="rgb(237,122,38)"/><text x="0.8029%" y="126.50">new_func (ESMF/util/decorators.py:64)</text></g><g><title>__init__ (ESMF/api/regrid.py:153) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="132" width="99.3478%" height="15" fill="rgb(244,218,35)"/><text x="0.8029%" y="142.50">__init__ (ESMF/api/regrid.py:153)</text></g><g><title>new_func (ESMF/util/decorators.py:52) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="148" width="99.3478%" height="15" fill="rgb(240,68,47)"/><text x="0.8029%" y="158.50">new_func (ESMF/util/decorators.py:52)</text></g><g><title>ESMP_FieldRegridStoreFile (ESMF/interface/cbindings.py:2203) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="164" width="99.3478%" height="15" fill="rgb(210,16,53)"/><text x="0.8029%" y="174.50">ESMP_FieldRegridStoreFile (ESMF/interface/cbindings.py:2203)</text></g><g><title>PyCFuncPtr_call (_ctypes.c:4036) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="180" width="99.3478%" height="15" fill="rgb(235,124,12)"/><text x="0.8029%" y="190.50">PyCFuncPtr_call (_ctypes.c:4036)</text></g><g><title>_ctypes_callproc (callproc.c:1201) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="196" width="99.3478%" height="15" fill="rgb(224,169,11)"/><text x="0.8029%" y="206.50">_ctypes_callproc (callproc.c:1201)</text></g><g><title>_call_function_pointer (callproc.c:850) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="212" width="99.3478%" height="15" fill="rgb(250,166,2)"/><text x="0.8029%" y="222.50">_call_function_pointer (callproc.c:850)</text></g><g><title>ffi_call (libffi.so.6.0.4) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="228" width="99.3478%" height="15" fill="rgb(242,216,29)"/><text x="0.8029%" y="238.50">ffi_call (libffi.so.6.0.4)</text></g><g><title>ffi_call_unix64 (libffi.so.6.0.4) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="244" width="99.3478%" height="15" fill="rgb(230,116,27)"/><text x="0.8029%" y="254.50">ffi_call_unix64 (libffi.so.6.0.4)</text></g><g><title>ESMC_FieldRegridStoreFile (libesmf_fullylinked.so) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="260" width="99.3478%" height="15" fill="rgb(228,99,48)"/><text x="0.8029%" y="270.50">ESMC_FieldRegridStoreFile (libesmf_fullylinked.so)</text></g><g><title>ESMCI::Field::regridstorefile (libesmf_fullylinked.so) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="276" width="99.3478%" height="15" fill="rgb(253,11,6)"/><text x="0.8029%" y="286.50">ESMCI::Field::regridstorefile (libesmf_fullylinked.so)</text></g><g><title>f_esmf_regridstorefile_ (libesmf_fullylinked.so) (38,995 samples, 99.35%)</title><rect x="0.5529%" y="292" width="99.3478%" height="15" fill="rgb(247,143,39)"/><text x="0.8029%" y="302.50">f_esmf_regridstorefile_ (libesmf_fullylinked.so)</text></g><g><title>&lt;module&gt; (xesmf-profiling.py:15) (39,061 samples, 99.52%)</title><rect x="0.3873%" y="52" width="99.5159%" height="15" fill="rgb(236,97,10)"/><text x="0.6373%" y="62.50">&lt;module&gt; (xesmf-profiling.py:15)</text></g><g><title>all (39,251 samples, 100%)</title><rect x="0.0000%" y="36" width="100.0000%" height="15" fill="rgb(233,208,19)"/><text x="0.2500%" y="46.50"></text></g></svg></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment