Skip to content

Instantly share code, notes, and snippets.

@avocadosalsa
Created August 10, 2020 20:49
Show Gist options
  • Save avocadosalsa/7e0c9681638324cb5f5a68e3adc4fbe0 to your computer and use it in GitHub Desktop.
Save avocadosalsa/7e0c9681638324cb5f5a68e3adc4fbe0 to your computer and use it in GitHub Desktop.
Home Assistant High CPU Usage
Process 207: python3 -m homeassistant --config /config
Python v3.8.3 (/usr/local/bin/python3.8)
Thread 207 (active): "MainThread"
datagram_received (aiocoap/transports/tinydtls.py:262)
_read_ready (asyncio/selector_events.py:1019)
_run (asyncio/events.py:81)
_run_once (asyncio/base_events.py:1859)
run_forever (asyncio/base_events.py:570)
run_until_complete (asyncio/base_events.py:603)
run (asyncio/runners.py:43)
run (homeassistant/runner.py:119)
main (homeassistant/__main__.py:312)
<module> (homeassistant/__main__.py:320)
_run_code (runpy.py:87)
_run_module_as_main (runpy.py:194)
Thread 229 (idle): "Thread-1"
dequeue (logging/handlers.py:1427)
_monitor (logging/handlers.py:1478)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 230 (idle): "SyncWorker_0"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 233 (idle): "SyncWorker_1"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 234 (idle): "SyncWorker_2"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 235 (idle): "SyncWorker_3"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 236 (idle): "SyncWorker_4"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 237 (idle): "SyncWorker_5"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 238 (idle): "SyncWorker_6"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 239 (idle): "SyncWorker_7"
_worker (concurrent/futures/thread.py:78)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 240 (idle): "Recorder"
wait (threading.py:302)
get (queue.py:170)
run (homeassistant/components/recorder/__init__.py:340)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 243 (idle): "zeroconf-Engine-243"
run (zeroconf/__init__.py:1304)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 244 (idle): "zeroconf-Reaper_244"
wait (threading.py:306)
wait (zeroconf/__init__.py:2326)
run (zeroconf/__init__.py:1417)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 245 (idle): "Wemo HTTP Thread"
select (selectors.py:415)
serve_forever (socketserver.py:232)
_run_http_server (pywemo/subscribe.py:261)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
Thread 246 (idle): "Wemo Events Thread"
wait (threading.py:306)
sleep (pywemo/subscribe.py:92)
run (sched.py:149)
_run_event_loop (pywemo/subscribe.py:269)
run (threading.py:870)
_bootstrap_inner (threading.py:932)
_bootstrap (threading.py:890)
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="438" onload="init(evt)" viewBox="0 0 1200 438" 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="438" fill="url(#background)"/><text id="title" x="50.0000%" y="24.00">py-spy</text><text id="details" x="10" y="421.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="421.00"> </text><svg id="frames" x="10" width="1180"><g><title>_monitor (logging/handlers.py:1478) (1,102 samples, 10.76%)</title><rect x="0.0098%" y="100" width="10.7554%" height="15" fill="rgb(227,0,7)"/><text x="0.2598%" y="110.50">_monitor (loggin..</text></g><g><title>dequeue (logging/handlers.py:1427) (1,095 samples, 10.69%)</title><rect x="0.0781%" y="116" width="10.6871%" height="15" fill="rgb(217,0,24)"/><text x="0.3281%" y="126.50">dequeue (logging..</text></g><g><title>handle (logging/__init__.py:950) (314 samples, 3.06%)</title><rect x="10.8725%" y="132" width="3.0646%" height="15" fill="rgb(221,193,54)"/><text x="11.1225%" y="142.50">han..</text></g><g><title>emit (logging/__init__.py:1183) (174 samples, 1.70%)</title><rect x="12.2389%" y="148" width="1.6982%" height="15" fill="rgb(248,212,6)"/><text x="12.4889%" y="158.50"></text></g><g><title>emit (logging/__init__.py:1085) (108 samples, 1.05%)</title><rect x="12.8831%" y="164" width="1.0541%" height="15" fill="rgb(208,68,35)"/><text x="13.1331%" y="174.50"></text></g><g><title>_monitor (logging/handlers.py:1483) (333 samples, 3.25%)</title><rect x="10.7652%" y="100" width="3.2500%" height="15" fill="rgb(232,128,0)"/><text x="11.0152%" y="110.50">_mo..</text></g><g><title>handle (logging/handlers.py:1464) (331 samples, 3.23%)</title><rect x="10.7847%" y="116" width="3.2305%" height="15" fill="rgb(207,160,47)"/><text x="11.0347%" y="126.50">han..</text></g><g><title>run (threading.py:870) (1,549 samples, 15.12%)</title><rect x="0.0098%" y="84" width="15.1181%" height="15" fill="rgb(228,23,34)"/><text x="0.2598%" y="94.50">run (threading.py:870)</text></g><g><title>_bootstrap (threading.py:890) (1,558 samples, 15.21%)</title><rect x="0.0000%" y="52" width="15.2059%" height="15" fill="rgb(218,30,26)"/><text x="0.2500%" y="62.50">_bootstrap (threading.p..</text></g><g><title>_bootstrap_inner (threading.py:932) (1,558 samples, 15.21%)</title><rect x="0.0000%" y="68" width="15.2059%" height="15" fill="rgb(220,122,19)"/><text x="0.2500%" y="78.50">_bootstrap_inner (threa..</text></g><g><title>_run_once (asyncio/base_events.py:1824) (122 samples, 1.19%)</title><rect x="17.5386%" y="180" width="1.1907%" height="15" fill="rgb(250,228,42)"/><text x="17.7886%" y="190.50"></text></g><g><title>_run_once (asyncio/base_events.py:1827) (122 samples, 1.19%)</title><rect x="18.7293%" y="180" width="1.1907%" height="15" fill="rgb(240,193,28)"/><text x="18.9793%" y="190.50"></text></g><g><title>_add_reader (asyncio/selector_events.py:744) (163 samples, 1.59%)</title><rect x="26.5860%" y="212" width="1.5909%" height="15" fill="rgb(216,20,37)"/><text x="26.8360%" y="222.50"></text></g><g><title>_read_ready (asyncio/selector_events.py:1009) (243 samples, 2.37%)</title><rect x="28.9869%" y="212" width="2.3717%" height="15" fill="rgb(206,188,39)"/><text x="29.2369%" y="222.50">_r..</text></g><g><title>_log (logging/__init__.py:1575) (178 samples, 1.74%)</title><rect x="38.9615%" y="276" width="1.7373%" height="15" fill="rgb(217,207,13)"/><text x="39.2115%" y="286.50"></text></g><g><title>makeRecord (logging/__init__.py:1544) (173 samples, 1.69%)</title><rect x="39.0103%" y="292" width="1.6885%" height="15" fill="rgb(231,73,38)"/><text x="39.2603%" y="302.50"></text></g><g><title>extract (traceback.py:359) (184 samples, 1.80%)</title><rect x="45.4324%" y="372" width="1.7958%" height="15" fill="rgb(225,20,46)"/><text x="45.6824%" y="382.50">e..</text></g><g><title>checkcache (linecache.py:74) (1,336 samples, 13.04%)</title><rect x="47.9992%" y="388" width="13.0392%" height="15" fill="rgb(210,31,41)"/><text x="48.2492%" y="398.50">checkcache (linecach..</text></g><g><title>extract (traceback.py:362) (1,426 samples, 13.92%)</title><rect x="47.2867%" y="372" width="13.9176%" height="15" fill="rgb(221,200,47)"/><text x="47.5367%" y="382.50">extract (traceback.py..</text></g><g><title>line (traceback.py:288) (164 samples, 1.60%)</title><rect x="61.3898%" y="388" width="1.6006%" height="15" fill="rgb(226,26,5)"/><text x="61.6398%" y="398.50"></text></g><g><title>emit (homeassistant/components/system_log/__init__.py:178) (2,178 samples, 21.26%)</title><rect x="41.7724%" y="340" width="21.2571%" height="15" fill="rgb(249,33,26)"/><text x="42.0224%" y="350.50">emit (homeassistant/components/sys..</text></g><g><title>extract_stack (traceback.py:211) (2,058 samples, 20.09%)</title><rect x="42.9436%" y="356" width="20.0859%" height="15" fill="rgb(235,183,28)"/><text x="43.1936%" y="366.50">extract_stack (traceback.py:211)</text></g><g><title>extract (traceback.py:366) (184 samples, 1.80%)</title><rect x="61.2337%" y="372" width="1.7958%" height="15" fill="rgb(221,5,38)"/><text x="61.4837%" y="382.50">e..</text></g><g><title>_figure_out_source (homeassistant/components/system_log/__init__.py:82) (139 samples, 1.36%)</title><rect x="64.8643%" y="356" width="1.3566%" height="15" fill="rgb(247,18,42)"/><text x="65.1143%" y="366.50"></text></g><g><title>match (re.py:191) (109 samples, 1.06%)</title><rect x="65.1571%" y="372" width="1.0638%" height="15" fill="rgb(241,131,45)"/><text x="65.4071%" y="382.50"></text></g><g><title>emit (homeassistant/components/system_log/__init__.py:181) (260 samples, 2.54%)</title><rect x="63.7712%" y="340" width="2.5376%" height="15" fill="rgb(249,31,29)"/><text x="64.0212%" y="350.50">em..</text></g><g><title>handle (logging/__init__.py:950) (2,570 samples, 25.08%)</title><rect x="41.5772%" y="324" width="25.0830%" height="15" fill="rgb(225,111,53)"/><text x="41.8272%" y="334.50">handle (logging/__init__.py:950)</text></g><g><title>callHandlers (logging/__init__.py:1649) (2,642 samples, 25.79%)</title><rect x="41.0209%" y="308" width="25.7857%" height="15" fill="rgb(238,160,17)"/><text x="41.2709%" y="318.50">callHandlers (logging/__init__.py:1649)</text></g><g><title>_event (aiocoap/transports/tinydtls.py:236) (2,996 samples, 29.24%)</title><rect x="37.6440%" y="244" width="29.2407%" height="15" fill="rgb(214,148,48)"/><text x="37.8940%" y="254.50">_event (aiocoap/transports/tinydtls.py:236)</text></g><g><title>error (logging/__init__.py:1463) (2,949 samples, 28.78%)</title><rect x="38.1027%" y="260" width="28.7820%" height="15" fill="rgb(232,36,49)"/><text x="38.3527%" y="270.50">error (logging/__init__.py:1463)</text></g><g><title>_log (logging/__init__.py:1577) (2,683 samples, 26.19%)</title><rect x="40.6988%" y="276" width="26.1858%" height="15" fill="rgb(209,103,24)"/><text x="40.9488%" y="286.50">_log (logging/__init__.py:1577)</text></g><g><title>handle (logging/__init__.py:1587) (2,673 samples, 26.09%)</title><rect x="40.7964%" y="292" width="26.0882%" height="15" fill="rgb(229,88,8)"/><text x="41.0464%" y="302.50">handle (logging/__init__.py:1587)</text></g><g><title>_event (aiocoap/transports/tinydtls.py:237) (187 samples, 1.83%)</title><rect x="66.8846%" y="244" width="1.8251%" height="15" fill="rgb(213,181,19)"/><text x="67.1346%" y="254.50">_..</text></g><g><title>_cancelled (aiocoap/transports/tinydtls.py:197) (125 samples, 1.22%)</title><rect x="67.4898%" y="260" width="1.2200%" height="15" fill="rgb(254,191,54)"/><text x="67.7398%" y="270.50"></text></g><g><title>_write (aiocoap/transports/tinydtls.py:225) (204 samples, 1.99%)</title><rect x="68.7585%" y="244" width="1.9910%" height="15" fill="rgb(241,83,37)"/><text x="69.0085%" y="254.50">_..</text></g><g><title>sendto (asyncio/selector_events.py:1044) (168 samples, 1.64%)</title><rect x="69.1099%" y="260" width="1.6397%" height="15" fill="rgb(233,36,39)"/><text x="69.3599%" y="270.50"></text></g><g><title>_read_ready (asyncio/selector_events.py:1019) (4,038 samples, 39.41%)</title><rect x="31.3586%" y="212" width="39.4105%" height="15" fill="rgb(226,3,54)"/><text x="31.6086%" y="222.50">_read_ready (asyncio/selector_events.py:1019)</text></g><g><title>datagram_received (aiocoap/transports/tinydtls.py:262) (4,019 samples, 39.23%)</title><rect x="31.5440%" y="228" width="39.2251%" height="15" fill="rgb(245,192,40)"/><text x="31.7940%" y="238.50">datagram_received (aiocoap/transports/tinydtls.py:262)</text></g><g><title>create_datagram_endpoint (asyncio/base_events.py:1319) (237 samples, 2.31%)</title><rect x="74.4095%" y="228" width="2.3131%" height="15" fill="rgb(238,167,29)"/><text x="74.6595%" y="238.50">c..</text></g><g><title>__init__ (asyncio/selector_events.py:991) (151 samples, 1.47%)</title><rect x="77.2009%" y="276" width="1.4737%" height="15" fill="rgb(232,182,51)"/><text x="77.4509%" y="286.50"></text></g><g><title>create_datagram_endpoint (asyncio/base_events.py:1336) (230 samples, 2.24%)</title><rect x="76.9569%" y="228" width="2.2448%" height="15" fill="rgb(231,60,39)"/><text x="77.2069%" y="238.50">c..</text></g><g><title>_new_mdt (aiocoap/util/asyncio.py:173) (221 samples, 2.16%)</title><rect x="77.0447%" y="244" width="2.1569%" height="15" fill="rgb(208,69,12)"/><text x="77.2947%" y="254.50">_..</text></g><g><title>_make_datagram_transport (asyncio/selector_events.py:84) (209 samples, 2.04%)</title><rect x="77.1618%" y="260" width="2.0398%" height="15" fill="rgb(235,93,37)"/><text x="77.4118%" y="270.50">_..</text></g><g><title>_run (aiocoap/transports/tinydtls.py:139) (758 samples, 7.40%)</title><rect x="72.0086%" y="212" width="7.3980%" height="15" fill="rgb(213,116,39)"/><text x="72.2586%" y="222.50">_run (aioc..</text></g><g><title>_run (aiocoap/transports/tinydtls.py:144) (394 samples, 3.85%)</title><rect x="79.7092%" y="212" width="3.8454%" height="15" fill="rgb(222,207,29)"/><text x="79.9592%" y="222.50">_run..</text></g><g><title>sendto (asyncio/selector_events.py:1044) (196 samples, 1.91%)</title><rect x="85.3504%" y="244" width="1.9129%" height="15" fill="rgb(206,96,30)"/><text x="85.6004%" y="254.50">s..</text></g><g><title>_write (aiocoap/transports/tinydtls.py:225) (211 samples, 2.06%)</title><rect x="85.2137%" y="228" width="2.0593%" height="15" fill="rgb(218,138,4)"/><text x="85.4637%" y="238.50">_..</text></g><g><title>_run (aiocoap/transports/tinydtls.py:151) (374 samples, 3.65%)</title><rect x="83.6326%" y="212" width="3.6502%" height="15" fill="rgb(250,191,14)"/><text x="83.8826%" y="222.50">_run..</text></g><g><title>write (colorama/ansitowin32.py:162) (288 samples, 2.81%)</title><rect x="89.3031%" y="244" width="2.8109%" height="15" fill="rgb(239,60,40)"/><text x="89.5531%" y="254.50">wr..</text></g><g><title>write_and_convert (colorama/ansitowin32.py:190) (193 samples, 1.88%)</title><rect x="90.2303%" y="260" width="1.8837%" height="15" fill="rgb(206,27,48)"/><text x="90.4803%" y="270.50">w..</text></g><g><title>write_plain_text (colorama/ansitowin32.py:196) (150 samples, 1.46%)</title><rect x="90.6500%" y="276" width="1.4640%" height="15" fill="rgb(225,35,8)"/><text x="90.9000%" y="286.50"></text></g><g><title>_run (aiocoap/transports/tinydtls.py:173) (386 samples, 3.77%)</title><rect x="88.3955%" y="212" width="3.7673%" height="15" fill="rgb(250,213,24)"/><text x="88.6455%" y="222.50">_run..</text></g><g><title>write (colorama/ansitowin32.py:41) (310 samples, 3.03%)</title><rect x="89.1372%" y="228" width="3.0256%" height="15" fill="rgb(247,123,22)"/><text x="89.3872%" y="238.50">wri..</text></g><g><title>close (asyncio/selector_events.py:686) (114 samples, 1.11%)</title><rect x="92.2702%" y="228" width="1.1126%" height="15" fill="rgb(231,138,38)"/><text x="92.5202%" y="238.50"></text></g><g><title>_run (aiocoap/transports/tinydtls.py:180) (237 samples, 2.31%)</title><rect x="92.2116%" y="212" width="2.3131%" height="15" fill="rgb(231,145,46)"/><text x="92.4616%" y="222.50">_..</text></g><g><title>_run_retransmissions (aiocoap/transports/tinydtls.py:189) (142 samples, 1.39%)</title><rect x="95.5983%" y="212" width="1.3859%" height="15" fill="rgb(251,118,11)"/><text x="95.8483%" y="222.50"></text></g><g><title>_call_soon (asyncio/base_events.py:739) (109 samples, 1.06%)</title><rect x="97.8333%" y="228" width="1.0638%" height="15" fill="rgb(217,147,25)"/><text x="98.0833%" y="238.50"></text></g><g><title>call_soon (asyncio/base_events.py:723) (143 samples, 1.40%)</title><rect x="97.6967%" y="212" width="1.3957%" height="15" fill="rgb(247,81,37)"/><text x="97.9467%" y="222.50"></text></g><g><title>_run (asyncio/events.py:81) (7,811 samples, 76.23%)</title><rect x="23.2871%" y="196" width="76.2346%" height="15" fill="rgb(209,12,38)"/><text x="23.5371%" y="206.50">_run (asyncio/events.py:81)</text></g><g><title>_run_once (asyncio/base_events.py:1859) (7,874 samples, 76.85%)</title><rect x="22.7308%" y="180" width="76.8495%" height="15" fill="rgb(227,1,9)"/><text x="22.9808%" y="190.50">_run_once (asyncio/base_events.py:1859)</text></g><g><title>run_forever (asyncio/base_events.py:570) (8,675 samples, 84.67%)</title><rect x="15.2059%" y="164" width="84.6672%" height="15" fill="rgb(248,47,43)"/><text x="15.4559%" y="174.50">run_forever (asyncio/base_events.py:570)</text></g><g><title>all (10,246 samples, 100%)</title><rect x="0.0000%" y="36" width="100.0000%" height="15" fill="rgb(221,10,30)"/><text x="0.2500%" y="46.50"></text></g><g><title>_run_module_as_main (runpy.py:194) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="52" width="84.7941%" height="15" fill="rgb(210,229,1)"/><text x="15.4559%" y="62.50">_run_module_as_main (runpy.py:194)</text></g><g><title>_run_code (runpy.py:87) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="68" width="84.7941%" height="15" fill="rgb(222,148,37)"/><text x="15.4559%" y="78.50">_run_code (runpy.py:87)</text></g><g><title>&lt;module&gt; (homeassistant/__main__.py:320) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="84" width="84.7941%" height="15" fill="rgb(234,67,33)"/><text x="15.4559%" y="94.50">&lt;module&gt; (homeassistant/__main__.py:320)</text></g><g><title>main (homeassistant/__main__.py:312) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="100" width="84.7941%" height="15" fill="rgb(247,98,35)"/><text x="15.4559%" y="110.50">main (homeassistant/__main__.py:312)</text></g><g><title>run (homeassistant/runner.py:119) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="116" width="84.7941%" height="15" fill="rgb(247,138,52)"/><text x="15.4559%" y="126.50">run (homeassistant/runner.py:119)</text></g><g><title>run (asyncio/runners.py:43) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="132" width="84.7941%" height="15" fill="rgb(213,79,30)"/><text x="15.4559%" y="142.50">run (asyncio/runners.py:43)</text></g><g><title>run_until_complete (asyncio/base_events.py:603) (8,688 samples, 84.79%)</title><rect x="15.2059%" y="148" width="84.7941%" height="15" fill="rgb(246,177,23)"/><text x="15.4559%" y="158.50">run_until_complete (asyncio/base_events.py:603)</text></g></svg></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment