Project

Profile

Help

Issue #6111 ยป migration_perf2.svg

dalley, 02/07/2020 06:10 PM

 
<?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="614" onload="init(evt)" viewBox="0 0 1200 614" 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;]]><![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;
for (var x = txt.length - 2; x > 0; x--) {
if (t.getSubStringLength(0, x + 2) <= w) {
t.textContent = txt.substring(0, x) + "..";
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="614" fill="url(#background)"/><text id="title" x="50.0000%" y="24.00">py-spy</text><text id="details" x="10" y="597.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="597.00"> </text><svg id="frames" x="10" width="1180"><g><title>run (pulp_2to3_migration/app/plugin/content.py:298) (165 samples, 1.74%)</title><rect x="0.8334%" y="436" width="1.7407%" height="15" fill="rgb(227,0,7)"/><text x="1.0834%" y="446.50"></text></g><g><title>manager_method (django/db/models/manager.py:82) (165 samples, 1.74%)</title><rect x="0.8334%" y="452" width="1.7407%" height="15" fill="rgb(217,0,24)"/><text x="1.0834%" y="462.50"></text></g><g><title>bulk_update (django/db/models/query.py:525) (152 samples, 1.60%)</title><rect x="0.9706%" y="468" width="1.6035%" height="15" fill="rgb(221,193,54)"/><text x="1.2206%" y="478.50"></text></g><g><title>execute_sql (django/db/models/sql/compiler.py:1367) (96 samples, 1.01%)</title><rect x="2.6796%" y="532" width="1.0128%" height="15" fill="rgb(248,212,6)"/><text x="2.9296%" y="542.50"></text></g><g><title>run (pulpcore/plugin/stages/artifact_stages.py:196) (117 samples, 1.23%)</title><rect x="2.6691%" y="436" width="1.2343%" height="15" fill="rgb(208,68,35)"/><text x="2.9191%" y="446.50"></text></g><g><title>bulk_get_or_create (pulpcore/app/models/content.py:42) (117 samples, 1.23%)</title><rect x="2.6691%" y="452" width="1.2343%" height="15" fill="rgb(232,128,0)"/><text x="2.9191%" y="462.50"></text></g><g><title>manager_method (django/db/models/manager.py:82) (117 samples, 1.23%)</title><rect x="2.6691%" y="468" width="1.2343%" height="15" fill="rgb(207,160,47)"/><text x="2.9191%" y="478.50"></text></g><g><title>bulk_create (django/db/models/query.py:468) (116 samples, 1.22%)</title><rect x="2.6796%" y="484" width="1.2238%" height="15" fill="rgb(228,23,34)"/><text x="2.9296%" y="494.50"></text></g><g><title>_batched_insert (django/db/models/query.py:1204) (116 samples, 1.22%)</title><rect x="2.6796%" y="500" width="1.2238%" height="15" fill="rgb(218,30,26)"/><text x="2.9296%" y="510.50"></text></g><g><title>_insert (django/db/models/query.py:1186) (116 samples, 1.22%)</title><rect x="2.6796%" y="516" width="1.2238%" height="15" fill="rgb(220,122,19)"/><text x="2.9296%" y="526.50"></text></g><g><title>add (django/utils/tree.py:93) (100 samples, 1.05%)</title><rect x="5.1588%" y="484" width="1.0550%" height="15" fill="rgb(250,228,42)"/><text x="5.4088%" y="494.50"></text></g><g><title>run (pulpcore/plugin/stages/artifact_stages.py:50) (113 samples, 1.19%)</title><rect x="5.0427%" y="436" width="1.1921%" height="15" fill="rgb(240,193,28)"/><text x="5.2927%" y="446.50"></text></g><g><title>__or__ (django/db/models/query_utils.py:79) (110 samples, 1.16%)</title><rect x="5.0744%" y="452" width="1.1605%" height="15" fill="rgb(216,20,37)"/><text x="5.3244%" y="462.50"></text></g><g><title>_combine (django/db/models/query_utils.py:75) (104 samples, 1.10%)</title><rect x="5.1377%" y="468" width="1.0972%" height="15" fill="rgb(206,188,39)"/><text x="5.3877%" y="478.50"></text></g><g><title>__iter__ (django/db/models/query.py:55) (232 samples, 2.45%)</title><rect x="6.2454%" y="468" width="2.4475%" height="15" fill="rgb(217,207,13)"/><text x="6.4954%" y="478.50">__..</text></g><g><title>execute_sql (django/db/models/sql/compiler.py:1133) (215 samples, 2.27%)</title><rect x="6.4247%" y="484" width="2.2682%" height="15" fill="rgb(231,73,38)"/><text x="6.6747%" y="494.50">e..</text></g><g><title>execute (django/db/backends/utils.py:67) (215 samples, 2.27%)</title><rect x="6.4247%" y="500" width="2.2682%" height="15" fill="rgb(225,20,46)"/><text x="6.6747%" y="510.50">e..</text></g><g><title>_execute_with_wrappers (django/db/backends/utils.py:76) (215 samples, 2.27%)</title><rect x="6.4247%" y="516" width="2.2682%" height="15" fill="rgb(210,31,41)"/><text x="6.6747%" y="526.50">_..</text></g><g><title>_execute (django/db/backends/utils.py:84) (215 samples, 2.27%)</title><rect x="6.4247%" y="532" width="2.2682%" height="15" fill="rgb(221,200,47)"/><text x="6.6747%" y="542.50">_..</text></g><g><title>_iterator (django/db/models/query.py:341) (255 samples, 2.69%)</title><rect x="6.2454%" y="452" width="2.6902%" height="15" fill="rgb(226,26,5)"/><text x="6.4954%" y="462.50">_i..</text></g><g><title>run (pulpcore/plugin/stages/artifact_stages.py:52) (376 samples, 3.97%)</title><rect x="6.2348%" y="436" width="3.9667%" height="15" fill="rgb(249,33,26)"/><text x="6.4848%" y="446.50">run ..</text></g><g><title>manager_method (django/db/models/manager.py:82) (120 samples, 1.27%)</title><rect x="8.9355%" y="452" width="1.2660%" height="15" fill="rgb(235,183,28)"/><text x="9.1855%" y="462.50"></text></g><g><title>filter (django/db/models/query.py:892) (120 samples, 1.27%)</title><rect x="8.9355%" y="468" width="1.2660%" height="15" fill="rgb(221,5,38)"/><text x="9.1855%" y="478.50"></text></g><g><title>_filter_or_exclude (django/db/models/query.py:910) (120 samples, 1.27%)</title><rect x="8.9355%" y="484" width="1.2660%" height="15" fill="rgb(247,18,42)"/><text x="9.1855%" y="494.50"></text></g><g><title>add_q (django/db/models/sql/query.py:1290) (120 samples, 1.27%)</title><rect x="8.9355%" y="500" width="1.2660%" height="15" fill="rgb(241,131,45)"/><text x="9.1855%" y="510.50"></text></g><g><title>_add_q (django/db/models/sql/query.py:1312) (120 samples, 1.27%)</title><rect x="8.9355%" y="516" width="1.2660%" height="15" fill="rgb(249,31,29)"/><text x="9.1855%" y="526.50"></text></g><g><title>run (pulpcore/plugin/stages/artifact_stages.py:56) (489 samples, 5.16%)</title><rect x="11.6995%" y="436" width="5.1588%" height="15" fill="rgb(225,111,53)"/><text x="11.9495%" y="446.50">run (p..</text></g><g><title>run (pulpcore/plugin/stages/artifact_stages.py:57) (405 samples, 4.27%)</title><rect x="16.8583%" y="436" width="4.2726%" height="15" fill="rgb(238,160,17)"/><text x="17.1083%" y="446.50">run (..</text></g><g><title>_save_table (django/db/models/base.py:851) (121 samples, 1.28%)</title><rect x="22.1753%" y="516" width="1.2765%" height="15" fill="rgb(214,148,48)"/><text x="22.4253%" y="526.50"></text></g><g><title>save_base (django/db/models/base.py:776) (220 samples, 2.32%)</title><rect x="21.9749%" y="484" width="2.3209%" height="15" fill="rgb(232,36,49)"/><text x="22.2249%" y="494.50">s..</text></g><g><title>_save_parents (django/db/models/base.py:807) (217 samples, 2.29%)</title><rect x="22.0065%" y="500" width="2.2893%" height="15" fill="rgb(209,103,24)"/><text x="22.2565%" y="510.50">_..</text></g><g><title>run (pulpcore/plugin/stages/content_stages.py:101) (338 samples, 3.57%)</title><rect x="21.5424%" y="436" width="3.5658%" height="15" fill="rgb(229,88,8)"/><text x="21.7924%" y="446.50">run ..</text></g><g><title>save (pulpcore/app/models/base.py:107) (304 samples, 3.21%)</title><rect x="21.9010%" y="452" width="3.2071%" height="15" fill="rgb(213,181,19)"/><text x="22.1510%" y="462.50">sav..</text></g><g><title>save (django/db/models/base.py:741) (300 samples, 3.16%)</title><rect x="21.9432%" y="468" width="3.1649%" height="15" fill="rgb(254,191,54)"/><text x="22.1932%" y="478.50">sav..</text></g><g><title>run (pulpcore/plugin/stages/content_stages.py:45) (248 samples, 2.62%)</title><rect x="25.8572%" y="436" width="2.6163%" height="15" fill="rgb(241,83,37)"/><text x="26.1072%" y="446.50">ru..</text></g><g><title>__or__ (django/db/models/query_utils.py:79) (244 samples, 2.57%)</title><rect x="25.8994%" y="452" width="2.5741%" height="15" fill="rgb(233,36,39)"/><text x="26.1494%" y="462.50">__..</text></g><g><title>_combine (django/db/models/query_utils.py:75) (234 samples, 2.47%)</title><rect x="26.0049%" y="468" width="2.4686%" height="15" fill="rgb(226,3,54)"/><text x="26.2549%" y="478.50">_c..</text></g><g><title>add (django/utils/tree.py:93) (232 samples, 2.45%)</title><rect x="26.0260%" y="484" width="2.4475%" height="15" fill="rgb(245,192,40)"/><text x="26.2760%" y="494.50">ad..</text></g><g><title>__iter__ (django/db/models/query.py:55) (516 samples, 5.44%)</title><rect x="28.4840%" y="468" width="5.4436%" height="15" fill="rgb(238,167,29)"/><text x="28.7340%" y="478.50">__iter_..</text></g><g><title>execute_sql (django/db/models/sql/compiler.py:1133) (432 samples, 4.56%)</title><rect x="29.3702%" y="484" width="4.5574%" height="15" fill="rgb(232,182,51)"/><text x="29.6202%" y="494.50">execu..</text></g><g><title>execute (django/db/backends/utils.py:67) (432 samples, 4.56%)</title><rect x="29.3702%" y="500" width="4.5574%" height="15" fill="rgb(231,60,39)"/><text x="29.6202%" y="510.50">execu..</text></g><g><title>_execute_with_wrappers (django/db/backends/utils.py:76) (432 samples, 4.56%)</title><rect x="29.3702%" y="516" width="4.5574%" height="15" fill="rgb(208,69,12)"/><text x="29.6202%" y="526.50">_exec..</text></g><g><title>_execute (django/db/backends/utils.py:84) (432 samples, 4.56%)</title><rect x="29.3702%" y="532" width="4.5574%" height="15" fill="rgb(235,93,37)"/><text x="29.6202%" y="542.50">_exec..</text></g><g><title>_iterator (django/db/models/query.py:341) (579 samples, 6.11%)</title><rect x="28.4840%" y="452" width="6.1082%" height="15" fill="rgb(213,116,39)"/><text x="28.7340%" y="462.50">_iterato..</text></g><g><title>_add_q (django/db/models/sql/query.py:1318) (104 samples, 1.10%)</title><rect x="34.6978%" y="548" width="1.0972%" height="15" fill="rgb(222,207,29)"/><text x="34.9478%" y="558.50"></text></g><g><title>_add_q (django/db/models/sql/query.py:1312) (127 samples, 1.34%)</title><rect x="34.5923%" y="532" width="1.3398%" height="15" fill="rgb(206,96,30)"/><text x="34.8423%" y="542.50"></text></g><g><title>__eq__ (django/utils/tree.py:71) (118 samples, 1.24%)</title><rect x="37.0820%" y="564" width="1.2449%" height="15" fill="rgb(218,138,4)"/><text x="37.3320%" y="574.50"></text></g><g><title>run (pulpcore/plugin/stages/content_stages.py:48) (999 samples, 10.54%)</title><rect x="28.4735%" y="436" width="10.5391%" height="15" fill="rgb(250,191,14)"/><text x="28.7235%" y="446.50">run (pulpcore/p..</text></g><g><title>manager_method (django/db/models/manager.py:82) (419 samples, 4.42%)</title><rect x="34.5923%" y="452" width="4.4203%" height="15" fill="rgb(239,60,40)"/><text x="34.8423%" y="462.50">manag..</text></g><g><title>filter (django/db/models/query.py:892) (419 samples, 4.42%)</title><rect x="34.5923%" y="468" width="4.4203%" height="15" fill="rgb(206,27,48)"/><text x="34.8423%" y="478.50">filte..</text></g><g><title>_filter_or_exclude (django/db/models/query.py:910) (419 samples, 4.42%)</title><rect x="34.5923%" y="484" width="4.4203%" height="15" fill="rgb(225,35,8)"/><text x="34.8423%" y="494.50">_filt..</text></g><g><title>add_q (django/db/models/sql/query.py:1290) (419 samples, 4.42%)</title><rect x="34.5923%" y="500" width="4.4203%" height="15" fill="rgb(250,213,24)"/><text x="34.8423%" y="510.50">add_q..</text></g><g><title>_add_q (django/db/models/sql/query.py:1312) (419 samples, 4.42%)</title><rect x="34.5923%" y="516" width="4.4203%" height="15" fill="rgb(247,123,22)"/><text x="34.8423%" y="526.50">_add_..</text></g><g><title>_add_q (django/db/models/sql/query.py:1322) (289 samples, 3.05%)</title><rect x="35.9637%" y="532" width="3.0488%" height="15" fill="rgb(231,138,38)"/><text x="36.2137%" y="542.50">_ad..</text></g><g><title>add (django/utils/tree.py:93) (285 samples, 3.01%)</title><rect x="36.0059%" y="548" width="3.0066%" height="15" fill="rgb(231,145,46)"/><text x="36.2559%" y="558.50">add..</text></g><g><title>run (pulpcore/plugin/stages/content_stages.py:53) (346 samples, 3.65%)</title><rect x="40.0464%" y="436" width="3.6502%" height="15" fill="rgb(251,118,11)"/><text x="40.2964%" y="446.50">run ..</text></g><g><title>natural_key_fields (pulpcore/app/models/content.py:262) (255 samples, 2.69%)</title><rect x="41.0064%" y="452" width="2.6902%" height="15" fill="rgb(217,147,25)"/><text x="41.2564%" y="462.50">na..</text></g><g><title>run (pulpcore/plugin/stages/content_stages.py:54) (146 samples, 1.54%)</title><rect x="43.6966%" y="436" width="1.5402%" height="15" fill="rgb(247,81,37)"/><text x="43.9466%" y="446.50"></text></g><g><title>__call__ (pulpcore/plugin/stages/api.py:43) (4,362 samples, 46.02%)</title><rect x="0.4114%" y="420" width="46.0175%" height="15" fill="rgb(209,12,38)"/><text x="0.6614%" y="430.50">__call__ (pulpcore/plugin/stages/api.py:43)</text></g><g><title>execute_sql (django/db/models/sql/compiler.py:1120) (164 samples, 1.73%)</title><rect x="47.4101%" y="532" width="1.7301%" height="15" fill="rgb(227,1,9)"/><text x="47.6601%" y="542.50"></text></g><g><title>__iter__ (django/db/models/query.py:55) (292 samples, 3.08%)</title><rect x="47.3995%" y="516" width="3.0805%" height="15" fill="rgb(248,47,43)"/><text x="47.6495%" y="526.50">__i..</text></g><g><title>_fetch_all (django/db/models/query.py:1242) (344 samples, 3.63%)</title><rect x="47.2518%" y="500" width="3.6291%" height="15" fill="rgb(221,10,30)"/><text x="47.5018%" y="510.50">_fet..</text></g><g><title>__len__ (django/db/models/query.py:256) (346 samples, 3.65%)</title><rect x="47.2413%" y="484" width="3.6502%" height="15" fill="rgb(210,229,1)"/><text x="47.4913%" y="494.50">__le..</text></g><g><title>get (django/db/models/query.py:402) (347 samples, 3.66%)</title><rect x="47.2413%" y="468" width="3.6607%" height="15" fill="rgb(222,148,37)"/><text x="47.4913%" y="478.50">get ..</text></g><g><title>_add_q (django/db/models/sql/query.py:1318) (111 samples, 1.17%)</title><rect x="51.4928%" y="548" width="1.1710%" height="15" fill="rgb(234,67,33)"/><text x="51.7428%" y="558.50"></text></g><g><title>add_q (django/db/models/sql/query.py:1290) (132 samples, 1.39%)</title><rect x="51.3873%" y="532" width="1.3926%" height="15" fill="rgb(247,98,35)"/><text x="51.6373%" y="542.50"></text></g><g><title>_apply_rel_filters (django/db/models/fields/related_descriptors.py:575) (155 samples, 1.64%)</title><rect x="51.1552%" y="484" width="1.6352%" height="15" fill="rgb(247,138,52)"/><text x="51.4052%" y="494.50"></text></g><g><title>filter (django/db/models/query.py:892) (154 samples, 1.62%)</title><rect x="51.1657%" y="500" width="1.6246%" height="15" fill="rgb(213,79,30)"/><text x="51.4157%" y="510.50"></text></g><g><title>_filter_or_exclude (django/db/models/query.py:910) (139 samples, 1.47%)</title><rect x="51.3240%" y="516" width="1.4664%" height="15" fill="rgb(246,177,23)"/><text x="51.5740%" y="526.50"></text></g><g><title>migrate_to_pulp3 (pulp_2to3_migration/app/plugin/content.py:218) (610 samples, 6.44%)</title><rect x="46.4395%" y="420" width="6.4353%" height="15" fill="rgb(230,62,27)"/><text x="46.6895%" y="430.50">migrate_..</text></g><g><title>detail_model (pulp_2to3_migration/app/models/content.py:36) (608 samples, 6.41%)</title><rect x="46.4606%" y="436" width="6.4142%" height="15" fill="rgb(216,154,8)"/><text x="46.7106%" y="446.50">detail_m..</text></g><g><title>manager_method (django/db/models/manager.py:82) (586 samples, 6.18%)</title><rect x="46.6927%" y="452" width="6.1821%" height="15" fill="rgb(244,35,45)"/><text x="46.9427%" y="462.50">manager_..</text></g><g><title>get_queryset (django/db/models/fields/related_descriptors.py:610) (171 samples, 1.80%)</title><rect x="51.0708%" y="468" width="1.8040%" height="15" fill="rgb(251,115,12)"/><text x="51.3208%" y="478.50">g..</text></g><g><title>filter (django/db/models/query.py:892) (102 samples, 1.08%)</title><rect x="52.9592%" y="452" width="1.0761%" height="15" fill="rgb(240,54,50)"/><text x="53.2092%" y="462.50"></text></g><g><title>migrate_to_pulp3 (pulp_2to3_migration/app/plugin/content.py:222) (118 samples, 1.24%)</title><rect x="52.8959%" y="420" width="1.2449%" height="15" fill="rgb(233,84,52)"/><text x="53.1459%" y="430.50"></text></g><g><title>manager_method (django/db/models/manager.py:82) (113 samples, 1.19%)</title><rect x="52.9486%" y="436" width="1.1921%" height="15" fill="rgb(207,117,47)"/><text x="53.1986%" y="446.50"></text></g><g><title>execute_sql (django/db/models/sql/compiler.py:1120) (132 samples, 1.39%)</title><rect x="54.2673%" y="484" width="1.3926%" height="15" fill="rgb(249,43,39)"/><text x="54.5173%" y="494.50"></text></g><g><title>__iter__ (django/db/models/query.py:55) (241 samples, 2.54%)</title><rect x="54.2357%" y="468" width="2.5425%" height="15" fill="rgb(209,38,44)"/><text x="54.4857%" y="478.50">__..</text></g><g><title>migrate_to_pulp3 (pulp_2to3_migration/app/plugin/content.py:224) (271 samples, 2.86%)</title><rect x="54.1407%" y="420" width="2.8590%" height="15" fill="rgb(236,212,23)"/><text x="54.3907%" y="430.50">mi..</text></g><g><title>__bool__ (django/db/models/query.py:278) (271 samples, 2.86%)</title><rect x="54.1407%" y="436" width="2.8590%" height="15" fill="rgb(242,79,21)"/><text x="54.3907%" y="446.50">__..</text></g><g><title>_fetch_all (django/db/models/query.py:1242) (270 samples, 2.85%)</title><rect x="54.1513%" y="452" width="2.8484%" height="15" fill="rgb(211,96,35)"/><text x="54.4013%" y="462.50">_f..</text></g><g><title>create_artifact (pulp_2to3_migration/app/plugin/content.py:120) (168 samples, 1.77%)</title><rect x="57.4006%" y="436" width="1.7723%" height="15" fill="rgb(253,215,40)"/><text x="57.6506%" y="446.50">c..</text></g><g><title>create_artifact (pulp_2to3_migration/app/plugin/content.py:133) (99 samples, 1.04%)</title><rect x="60.0169%" y="436" width="1.0444%" height="15" fill="rgb(211,81,21)"/><text x="60.2669%" y="446.50"></text></g><g><title>migrate_to_pulp3 (pulp_2to3_migration/app/plugin/content.py:235) (395 samples, 4.17%)</title><rect x="57.3689%" y="420" width="4.1671%" height="15" fill="rgb(208,190,38)"/><text x="57.6189%" y="430.50">migra..</text></g><g><title>&lt;module&gt; (rq:11) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="52" width="62.1268%" height="15" fill="rgb(235,213,38)"/><text x="0.2500%" y="62.50">&lt;module&gt; (rq:11)</text></g><g><title>__call__ (click/core.py:764) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="68" width="62.1268%" height="15" fill="rgb(237,122,38)"/><text x="0.2500%" y="78.50">__call__ (click/core.py:764)</text></g><g><title>main (click/core.py:717) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="84" width="62.1268%" height="15" fill="rgb(244,218,35)"/><text x="0.2500%" y="94.50">main (click/core.py:717)</text></g><g><title>invoke (click/core.py:1137) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="100" width="62.1268%" height="15" fill="rgb(240,68,47)"/><text x="0.2500%" y="110.50">invoke (click/core.py:1137)</text></g><g><title>invoke (click/core.py:956) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="116" width="62.1268%" height="15" fill="rgb(210,16,53)"/><text x="0.2500%" y="126.50">invoke (click/core.py:956)</text></g><g><title>invoke (click/core.py:555) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="132" width="62.1268%" height="15" fill="rgb(235,124,12)"/><text x="0.2500%" y="142.50">invoke (click/core.py:555)</text></g><g><title>wrapper (rq/cli/cli.py:78) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="148" width="62.1268%" height="15" fill="rgb(224,169,11)"/><text x="0.2500%" y="158.50">wrapper (rq/cli/cli.py:78)</text></g><g><title>invoke (click/core.py:555) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="164" width="62.1268%" height="15" fill="rgb(250,166,2)"/><text x="0.2500%" y="174.50">invoke (click/core.py:555)</text></g><g><title>worker (rq/cli/cli.py:252) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="180" width="62.1268%" height="15" fill="rgb(242,216,29)"/><text x="0.2500%" y="190.50">worker (rq/cli/cli.py:252)</text></g><g><title>work (rq/worker.py:477) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="196" width="62.1268%" height="15" fill="rgb(230,116,27)"/><text x="0.2500%" y="206.50">work (rq/worker.py:477)</text></g><g><title>execute_job (pulpcore/tasking/worker.py:72) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="212" width="62.1268%" height="15" fill="rgb(228,99,48)"/><text x="0.2500%" y="222.50">execute_job (pulpcore/tasking/worker.py:72)</text></g><g><title>execute_job (rq/worker.py:670) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="228" width="62.1268%" height="15" fill="rgb(253,11,6)"/><text x="0.2500%" y="238.50">execute_job (rq/worker.py:670)</text></g><g><title>fork_work_horse (rq/worker.py:610) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="244" width="62.1268%" height="15" fill="rgb(247,143,39)"/><text x="0.2500%" y="254.50">fork_work_horse (rq/worker.py:610)</text></g><g><title>main_work_horse (rq/worker.py:684) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="260" width="62.1268%" height="15" fill="rgb(236,97,10)"/><text x="0.2500%" y="270.50">main_work_horse (rq/worker.py:684)</text></g><g><title>perform_job (pulpcore/tasking/worker.py:103) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="276" width="62.1268%" height="15" fill="rgb(233,208,19)"/><text x="0.2500%" y="286.50">perform_job (pulpcore/tasking/worker.py:103)</text></g><g><title>perform_job (rq/worker.py:822) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="292" width="62.1268%" height="15" fill="rgb(216,164,2)"/><text x="0.2500%" y="302.50">perform_job (rq/worker.py:822)</text></g><g><title>perform (rq/job.py:605) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="308" width="62.1268%" height="15" fill="rgb(220,129,5)"/><text x="0.2500%" y="318.50">perform (rq/job.py:605)</text></g><g><title>_execute (rq/job.py:611) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="324" width="62.1268%" height="15" fill="rgb(242,17,10)"/><text x="0.2500%" y="334.50">_execute (rq/job.py:611)</text></g><g><title>migrate_from_pulp2 (pulp_2to3_migration/app/tasks/migrate.py:120) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="340" width="62.1268%" height="15" fill="rgb(242,107,0)"/><text x="0.2500%" y="350.50">migrate_from_pulp2 (pulp_2to3_migration/app/tasks/migrate.py:120)</text></g><g><title>run_until_complete (asyncio/base_events.py:471) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="356" width="62.1268%" height="15" fill="rgb(251,28,31)"/><text x="0.2500%" y="366.50">run_until_complete (asyncio/base_events.py:471)</text></g><g><title>run_forever (asyncio/base_events.py:438) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="372" width="62.1268%" height="15" fill="rgb(233,223,10)"/><text x="0.2500%" y="382.50">run_forever (asyncio/base_events.py:438)</text></g><g><title>_run_once (asyncio/base_events.py:1451) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="388" width="62.1268%" height="15" fill="rgb(215,21,27)"/><text x="0.2500%" y="398.50">_run_once (asyncio/base_events.py:1451)</text></g><g><title>_run (asyncio/events.py:145) (5,889 samples, 62.13%)</title><rect x="0.0000%" y="404" width="62.1268%" height="15" fill="rgb(232,23,21)"/><text x="0.2500%" y="414.50">_run (asyncio/events.py:145)</text></g><g><title>_run (pymongo/periodic_executor.py:131) (2,416 samples, 25.49%)</title><rect x="62.1268%" y="100" width="25.4879%" height="15" fill="rgb(244,5,23)"/><text x="62.3768%" y="110.50">_run (pymongo/periodic_executor.py:131)</text></g><g><title>all (9,479 samples, 100%)</title><rect x="0.0000%" y="36" width="100.0000%" height="15" fill="rgb(226,81,46)"/><text x="0.2500%" y="46.50"></text></g><g><title>_bootstrap (threading.py:884) (3,590 samples, 37.87%)</title><rect x="62.1268%" y="52" width="37.8732%" height="15" fill="rgb(247,70,30)"/><text x="62.3768%" y="62.50">_bootstrap (threading.py:884)</text></g><g><title>_bootstrap_inner (threading.py:916) (3,590 samples, 37.87%)</title><rect x="62.1268%" y="68" width="37.8732%" height="15" fill="rgb(212,68,19)"/><text x="62.3768%" y="78.50">_bootstrap_inner (threading.py:916)</text></g><g><title>run (threading.py:864) (3,590 samples, 37.87%)</title><rect x="62.1268%" y="84" width="37.8732%" height="15" fill="rgb(240,187,13)"/><text x="62.3768%" y="94.50">run (threading.py:864)</text></g><g><title>check_kill (pulpcore/tasking/worker.py:98) (1,171 samples, 12.35%)</title><rect x="87.6464%" y="100" width="12.3536%" height="15" fill="rgb(223,113,26)"/><text x="87.8964%" y="110.50">check_kill (pulpco..</text></g></svg></svg>
    (1-1/1)